/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartInterceptorTest.java | 130 private ActivityStartInterceptor mInterceptor; field in ActivityStartInterceptorTest 141 mInterceptor = new ActivityStartInterceptor(mService, mSupervisor, mContext); in setUp() 142 mInterceptor.setStates(TEST_USER_ID, TEST_REAL_CALLING_PID, TEST_REAL_CALLING_UID, in setUp() 202 assertTrue(mInterceptor.intercept(null, null, mAInfo, null, null, null, 0, 0, null, null)); in testSuspendedByAdminPackage() 205 assertEquals(ADMIN_SUPPORT_INTENT, mInterceptor.mIntent); in testSuspendedByAdminPackage() 213 assertTrue(mInterceptor.intercept(null, null, mAInfo, null, null, null, 0, 0, null, null)); in testSuspendedPackage() 217 mInterceptor.mIntent.getParcelableExtra(SuspendedAppActivity.EXTRA_DIALOG_INFO)); in testSuspendedPackage() 219 mInterceptor.mIntent.getStringExtra(SuspendedAppActivity.EXTRA_SUSPENDING_PACKAGE)); in testSuspendedPackage() 221 mInterceptor.mIntent.getStringExtra(SuspendedAppActivity.EXTRA_SUSPENDED_PACKAGE)); in testSuspendedPackage() 222 assertEquals(TEST_USER_ID, mInterceptor.mIntent.getIntExtra(Intent.EXTRA_USER_ID, -1000)); in testSuspendedPackage() [all …]
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/ |
D | CarActivityInterceptorUpdatableTest.java | 57 private CarActivityInterceptorUpdatableImpl mInterceptor; field in CarActivityInterceptorUpdatableTest 124 mInterceptor = new CarActivityInterceptorUpdatableImpl(mCarActivityInterceptorInterface); in setUp() 191 mInterceptor.onInterceptActivityLaunch(info); in interceptActivityLaunch_nullIntent_returnsNull() 202 mInterceptor.setPersistentActivityOnRootTask(activities, mRootTaskToken1); in interceptActivityLaunch_unknownActivity_returnsNull() 208 mInterceptor.onInterceptActivityLaunch(info); in interceptActivityLaunch_unknownActivity_returnsNull() 219 mInterceptor.setPersistentActivityOnRootTask(activities, mRootTaskToken1); in interceptActivityLaunch_nullOptions_persistedActivity_setsLaunchRootTask() 225 mInterceptor.onInterceptActivityLaunch(info); in interceptActivityLaunch_nullOptions_persistedActivity_setsLaunchRootTask() 238 mInterceptor.setPersistentActivityOnRootTask(activities, mRootTaskToken2); in interceptActivityLaunch_persistedActivity_differentLaunchDisplayId_returnsNull() 247 mInterceptor.onInterceptActivityLaunch(info); in interceptActivityLaunch_persistedActivity_differentLaunchDisplayId_returnsNull() 257 mInterceptor.setPersistentActivityOnRootTask(activities, mRootTaskToken1); in interceptActivityLaunch_persistedActivity_setsLaunchRootTask() [all …]
|
D | CarLaunchOnPrivateDisplayActivityInterceptorTest.java | 89 private CarLaunchOnPrivateDisplayActivityInterceptor mInterceptor; field in CarLaunchOnPrivateDisplayActivityInterceptorTest 118 mInterceptor = new CarLaunchOnPrivateDisplayActivityInterceptor(mMockContext); in setUp() 135 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnPhysicalPrivateDisplay_noLaunchOnPrivateDisplayKey_returnsNull() 145 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnPhysicalPrivateDisplay_invalidDisplay_returnsNull() 156 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnPhysicalPrivateDisplay_notAllowlisted_returnsNull() 167 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnVirtualPrivateDisplay_notAllowlisted_returnsNull() 178 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnPhysicalPrivateDisplay_isAllowlisted_returnsNotNull() 189 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnVirtualPrivateDisplay_isAllowlisted_returnsNotNull() 201 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnPhysicalPrivateDisplay_noPermission_returnsNull() 213 mInterceptor.onInterceptActivityLaunch(mMockInfo); in launchOnVirtualPrivateDisplay_noPermission_returnsNull() [all …]
|
D | CarDisplayCompatActivityInterceptorTest.java | 80 private CarDisplayCompatActivityInterceptor mInterceptor; field in CarDisplayCompatActivityInterceptorTest 102 mInterceptor = new CarDisplayCompatActivityInterceptor(mMockContext, in setUp() 122 mInterceptor.onInterceptActivityLaunch(mMockInfo); in hostActivity_isIgnored() 133 mInterceptor.onInterceptActivityLaunch(mMockInfo); in nonDisplayCompatActivity_isIgnored() 152 mInterceptor.onInterceptActivityLaunch(mMockInfo); in displayCompatActivity_launchedFromHost_isIgnored() 163 mInterceptor.onInterceptActivityLaunch(mMockInfo); in displayCompatActivity_returnsHost() 186 mInterceptor.onInterceptActivityLaunch(mMockInfo); in displayCompatActivity_launchedFromDisplayCompatApp_returnsHost() 214 mInterceptor.onInterceptActivityLaunch(mMockInfo); in displayCompatActivity_noPermission_returnsHost() 237 mInterceptor.onInterceptActivityLaunch(mMockInfo); in hostActivity_whenNoLaunchDisplayId_launchesOnDefaultDisplay() 255 mInterceptor.onInterceptActivityLaunch(mMockInfo); in hostActivity_withLaunchDisplayId_launchesOnCorrectDisplay()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 55 private KeyboardInterceptor mInterceptor; field in KeyboardInterceptorTest 57 msg -> mInterceptor.handleMessage(msg)); 66 mInterceptor = new KeyboardInterceptor(mMockAms, mMockPolicy, mHandler); in setUp() 78 mInterceptor.onKeyEvent(event, 0); in whenNonspecialKeyArrives_withNothingInQueue_eventGoesToAms() 87 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms() 96 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 106 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 123 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 149 mInterceptor.onKeyEvent(event, 0); in whenSomeEventsGetDelayed_allEventsStillInOrder() 179 mInterceptor.onKeyEvent(event, 0); in whenSomeEventsGetDropped_otherEventsStillInOrder()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStarter.java | 188 private final ActivityStartInterceptor mInterceptor; field in ActivityStarter 328 private ActivityStartInterceptor mInterceptor; field in ActivityStarter.DefaultFactory 337 mInterceptor = interceptor; in DefaultFactory() 353 starter = new ActivityStarter(mController, mService, mSupervisor, mInterceptor); in obtain() 650 mInterceptor = interceptor; in ActivityStarter() 1201 mInterceptor.setStates(userId, realCallingPid, realCallingUid, startFlags, callingPackage, in executeRequest() 1203 if (mInterceptor.intercept(intent, rInfo, aInfo, resolvedType, inTask, inTaskFragment, in executeRequest() 1207 intent = mInterceptor.mIntent; in executeRequest() 1208 rInfo = mInterceptor.mRInfo; in executeRequest() 1209 aInfo = mInterceptor.mAInfo; in executeRequest() [all …]
|