/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediatorTest.java | 45 import android.testing.TestableLooper; 99 @TestableLooper.RunWithLooper 177 @TestableLooper.RunWithLooper(setAsMainLooper = true) 182 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 185 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 190 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 197 @TestableLooper.RunWithLooper(setAsMainLooper = true) 202 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard() 205 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard() 210 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsTestBase.java | 24 import android.testing.TestableLooper; 43 protected List<TestableLooper> mTestableLoopers = new ArrayList<>(); 44 protected TestableLooper mTestableLooper; 54 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp() 60 for (TestableLooper looper : mTestableLoopers) { in tearDown() 63 TestableLooper.remove(ImsTestBase.this); in tearDown() 86 public void monitorTestableLooper(TestableLooper looper) { in monitorTestableLooper() 96 public void unmonitorTestableLooper(TestableLooper looper) { in unmonitorTestableLooper() 110 for (TestableLooper looper : mTestableLoopers) looper.processAllMessages(); in processAllMessages() 121 for (TestableLooper looper : mTestableLoopers) { in areAllTestableLoopersIdle()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | LifecycleFragmentTest.java | 31 import android.testing.TestableLooper; 32 import android.testing.TestableLooper.RunWithLooper; 58 TestableLooper.get(this).processAllMessages(); in testCreateLifecycle() 70 TestableLooper.get(this).processAllMessages(); in testResumeLifecycle() 82 TestableLooper.get(this).processAllMessages(); in testStartLifecycle() 94 TestableLooper.get(this).processAllMessages(); in testStopLifecycle() 96 TestableLooper.get(this).processAllMessages(); in testStopLifecycle() 108 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle() 110 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle() 122 TestableLooper.get(this).processAllMessages(); in testDestroyLifecycle() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileRequestDialogTest.kt | 21 import android.testing.TestableLooper 37 @TestableLooper.RunWithLooper 50 TestableLooper.get(this).runWithLooper { in setUp() 98 TestableLooper.get(this).processAllMessages() in setTileData_hasCorrectLabel() 113 TestableLooper.get(this).processAllMessages() in setTileData_hasIcon() 127 TestableLooper.get(this).processAllMessages() in setTileData_nullIcon_hasIcon() 142 TestableLooper.get(this).processAllMessages() in setTileData_hasNoStateDescription() 158 TestableLooper.get(this).processAllMessages() in setTileData_tileNotClickable() 175 TestableLooper.get(this).processAllMessages() in setTileData_tileHasCorrectContentDescription()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | AuthBiometricFingerprintAndFaceViewTest.kt | 22 import android.testing.TestableLooper 23 import android.testing.TestableLooper.RunWithLooper 72 TestableLooper.get(this).moveTimeForward(1000) in fingerprintSuccessDoesNotRequireExplicitConfirmation() 92 TestableLooper.get(this).moveTimeForward(1000) in faceSuccessRequiresExplicitConfirmation() 109 TestableLooper.get(this).moveTimeForward(1000) in ignoresFaceErrors() 115 override fun waitForIdleSync() = TestableLooper.get(this).processAllMessages()
|
D | AuthBiometricFingerprintViewTest.kt | 21 import android.testing.TestableLooper 22 import android.testing.TestableLooper.RunWithLooper 79 TestableLooper.get(this).moveTimeForward(1000) in testOnAuthenticationSucceeded_noConfirmationRequired_sendsActionAuthenticated() 90 TestableLooper.get(this).moveTimeForward(1000) in testOnAuthenticationSucceeded_confirmationRequired_updatesDialogContents() 112 TestableLooper.get(this).moveTimeForward(1000) in testPositiveButton_sendsActionAuthenticated() 123 TestableLooper.get(this).moveTimeForward(1000) in testNegativeButton_beforeAuthentication_sendsActionButtonNegative() 136 TestableLooper.get(this).moveTimeForward(1000) in testCancelButton_whenPendingConfirmation_sendsActionUserCanceled() 145 TestableLooper.get(this).moveTimeForward(1000) in testTryAgainButton_sendsActionTryAgain() 156 TestableLooper.get(this).moveTimeForward(1000) in testOnErrorSendsActionError() 169 TestableLooper.get(this).moveTimeForward(1000) in testOnErrorShowsMessage() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipelineTest.java | 24 import android.testing.TestableLooper; 48 @TestableLooper.RunWithLooper 65 TestableLooper.get(this).getLooper()); in setUp() 84 TestableLooper.get(this).processAllMessages(); in testCallbackCalled() 101 TestableLooper.get(this).processAllMessages(); in testCallbackCancelled() 121 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks() 126 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this).getLooper(), sliceDir); in testGrant() 80 TestableLooper.get(this).getLooper(), sliceDir); in testBackup() 90 TestableLooper.get(this).processAllMessages(); in testBackup() 99 TestableLooper.get(this).getLooper()); in testBackup() 124 TestableLooper.get(this).getLooper(), sliceDir); in testInvalid()
|
D | PinnedSliceStateTest.java | 33 import android.testing.TestableLooper; 34 import android.testing.TestableLooper.RunWithLooper; 79 new Handler(TestableLooper.get(this).getLooper())); in setUp() 107 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 111 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 174 TestableLooper.get(this).processAllMessages(); in testPinFailed() 178 TestableLooper.get(this).processAllMessages(); in testPinFailed()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 42 public class TestableLooper { class 74 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper 78 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper 83 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper 259 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>(); 265 public static TestableLooper get(Object test) { in get() 276 private final TestableLooper mTestableLooper; 284 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 295 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod() 361 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
|
D | BaseFragmentTest.java | 77 TestableLooper.get(this)); in setupFragment() 78 TestableLooper.get(this).runWithLooper(() -> { in setupFragment() 102 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown() 175 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow() 180 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow() 190 TestableLooper.get(this).processAllMessages(); in processAllMessages()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceHibernationTests.kt | 26 import android.testing.TestableLooper 27 import android.testing.TestableLooper.RunWithLooper 75 .thenReturn(Handler(TestableLooper.get(this).looper)) in setup() 105 TestableLooper.get(this).processAllMessages() in testExitForceStopExitsHibernation() 112 TestableLooper.get(this).processAllMessages() in testExitForceStopExitsHibernation() 130 TestableLooper.get(this).processAllMessages() in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException() 138 TestableLooper.get(this).processAllMessages() in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DockObserverTest.java | 26 import android.testing.TestableLooper; 41 @TestableLooper.RunWithLooper 57 TestableLooper.get(this).processAllMessages(); in updateExtconDockState() 99 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_onlyAfterBootReady() 151 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_deviceNotProvisioned() 157 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_deviceNotProvisioned()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QuickQSPanelTest.kt | 4 import android.testing.TestableLooper 20 @TestableLooper.RunWithLooper 26 private lateinit var testableLooper: TestableLooper 35 testableLooper = TestableLooper.get(this) in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 41 import android.testing.TestableLooper; 42 import android.testing.TestableLooper.RunWithLooper; 127 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical() 140 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency() 153 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical() 165 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency() 177 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning() 190 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm() 203 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning() 216 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 40 import android.testing.TestableLooper.MessageHandler; 41 import android.testing.TestableLooper.RunWithLooper; 48 private TestableLooper mTestableLooper; 52 mTestableLooper = TestableLooper.get(this); in setup() 139 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() 174 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | KeyguardStatusBarViewTest.java | 22 import android.testing.TestableLooper; 37 @TestableLooper.RunWithLooper 45 TestableLooper.get(this).runWithLooper(() -> { in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | OneHandedModeTileTest.java | 26 import android.testing.TestableLooper; 48 @TestableLooper.RunWithLooper(setAsMainLooper = true) 69 private TestableLooper mTestableLooper; 75 mTestableLooper = TestableLooper.get(this); in setUp()
|
D | NfcTileTest.java | 28 import android.testing.TestableLooper; 50 @TestableLooper.RunWithLooper(setAsMainLooper = true) 74 private TestableLooper mTestableLooper; 80 mTestableLooper = TestableLooper.get(this); in setUp()
|
D | DataSaverTileTest.kt | 21 import android.testing.TestableLooper 46 @TestableLooper.RunWithLooper(setAsMainLooper = true) 62 private lateinit var testableLooper: TestableLooper 68 testableLooper = TestableLooper.get(this) in setUp()
|
D | MicrophoneToggleTileTest.kt | 21 import android.testing.TestableLooper 47 @TestableLooper.RunWithLooper(setAsMainLooper = true) 71 private lateinit var testableLooper: TestableLooper 78 testableLooper = TestableLooper.get(this) in setUp()
|
D | ColorCorrectionTileTest.java | 30 import android.testing.TestableLooper; 55 @TestableLooper.RunWithLooper(setAsMainLooper = true) 74 private TestableLooper mTestableLooper; 83 mTestableLooper = TestableLooper.get(this); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/ |
D | ScrimViewTest.java | 26 import android.testing.TestableLooper; 27 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 61 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileAdapterTest.java | 21 import android.testing.TestableLooper; 22 import android.testing.TestableLooper.RunWithLooper; 51 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationCustomViewWrapperTest.java | 20 import android.testing.TestableLooper; 21 import android.testing.TestableLooper.RunWithLooper; 50 TestableLooper.get(this)); in setUp()
|