diff options
author | Sudheer Shanka <sudheersai@google.com> | 2019-08-07 16:15:23 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2019-08-07 22:59:11 -0700 |
commit | 5269e50235b4e5df89e6735449fc2dd4b4064709 (patch) | |
tree | 28c24c95ba36d62c08574be0ea12206b4aec3197 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0b31d6c0000af13403d4258bef91ca861369fc93 (diff) |
Don't return null in the default ActivityManagerService.Injector.
Usually with injectors like these, we are expected to use methods
provided by these instead of directly accessing the fields, so just
returning "null" in Injector.getContext() is counterintuitive and
ideally other callsites which are directly accessing mContext should
be updated to use injector provided one instead.
Bug: 138952436
Test: atest services/tests/servicestests/src/com/android/server/am/ActivityManagerServiceTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/am/AppCompactorTest.java
Test: atest services/tests/servicestests/src/com/android/server/am/AppErrorDialogTest.java
Change-Id: Idb7cb9a5b7c4c0d237ece9716932a260956a0109
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions