summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-08-25 10:05:58 -0700
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-09-07 17:19:11 +0000
commit900ba5ae14126990360f8264564bc13a4253c2e8 (patch)
tree383bb7fe5c2fbe0cf1388f4d342c666342c14722 /libs/androidfw/ObbFile.cpp
parentf7b11f271ead86ecd3d1ceeb9d5ece030882b2a5 (diff)
Fix runtime kotlin nullable error in ScreenshotDetectionControllerTest
Fix a kotlin nullable error that shows up at runtime due to changes in where kotlin puts implicit null checks when the @NonNull and @Nullable annotations are fixed to be class retention: java.lang.NullPointerException: Parameter specified as non-null is null: method com.android.systemui.screenshot.ScreenshotDetectionControllerTest$ComponentInfoFlagMatcher.matches, parameter flags at com.android.systemui.screenshot.ScreenshotDetectionControllerTest$ComponentInfoFlagMatcher.matches(Unknown Source:2) at com.android.systemui.screenshot.ScreenshotDetectionControllerTest$ComponentInfoFlagMatcher.matches(ScreenshotDetectionControllerTest.kt:170) at org.mockito.internal.invocation.TypeSafeMatching.apply(TypeSafeMatching.java:24) at org.mockito.internal.invocation.MatcherApplicationStrategy.forEachMatcherAndArgument(MatcherApplicationStrategy.java:83) at org.mockito.internal.invocation.InvocationMatcher.argumentsMatch(InvocationMatcher.java:152) at org.mockito.internal.invocation.InvocationMatcher.matches(InvocationMatcher.java:81) at org.mockito.internal.stubbing.InvocationContainerImpl.findAnswerFor(InvocationContainerImpl.java:91) at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:87) at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:35) at com.android.dx.mockito.inline.InvocationHandlerAdapter.interceptEntryHook(InvocationHandlerAdapter.java:75) at com.android.dx.mockito.inline.MockMethodAdvice.handle(MockMethodAdvice.java:201) at java.lang.reflect.Method.invoke(Native Method) at com.android.dx.mockito.inline.MockMethodDispatcher.handle(MockMethodDispatcher.java:79) at android.content.pm.PackageManager.getActivityInfo(Unknown Source:41) at com.android.systemui.screenshot.ScreenshotDetectionControllerTest.testMaybeNotifyOfScreenshot_disabledApp(ScreenshotDetectionControllerTest.kt:199) Bug: 294110802 Test: atest SystemUITests (cherry picked from commit e6fb02cee287e2020482e27411faff6461e6a0a3) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b6aaf84246a082ce8680fc28a126b3e3b39efe97) Merged-In: I4b68fdbc779ec8c0bcbd4e9efbdffbd5edcdf427 Change-Id: I4b68fdbc779ec8c0bcbd4e9efbdffbd5edcdf427
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions