/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceBatteryListenerTest.kt | 57 private lateinit var testLooper: TestLooper in <lambda>() variable in android.hardware.input.InputDeviceBatteryListenerTest 71 testLooper = TestLooper() in <lambda>() 72 executor = HandlerExecutor(Handler(testLooper.looper)) in <lambda>() 158 testLooper.dispatchAll() in <lambda>() 164 testLooper.dispatchNext() in <lambda>() 189 testLooper.dispatchNext() in <lambda>() 194 testLooper.dispatchNext() in <lambda>() 199 testLooper.dispatchNext() in <lambda>() 200 testLooper.dispatchNext() in <lambda>() 212 testLooper.dispatchNext() in <lambda>() [all …]
|
D | KeyboardBacklightListenerTest.kt | 56 private lateinit var testLooper: TestLooper in <lambda>() variable in android.hardware.input.KeyboardBacklightListenerTest 70 testLooper = TestLooper() in <lambda>() 71 executor = HandlerExecutor(Handler(testLooper.looper)) in <lambda>() 141 testLooper.dispatchNext() in <lambda>() 162 testLooper.dispatchAll() in <lambda>() 169 testLooper.dispatchAll() in <lambda>()
|
D | StickyModifierStateListenerTest.kt | 63 private val testLooper = TestLooper() in <lambda>() constant 64 private val executor = HandlerExecutor(Handler(testLooper.looper)) in <lambda>() 127 testLooper.dispatchNext() in <lambda>() 154 testLooper.dispatchNext() in <lambda>() 205 testLooper.dispatchAll() in <lambda>() 212 testLooper.dispatchAll() in <lambda>()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 199 private lateinit var testLooper: TestLooper variable in com.android.server.input.BatteryControllerTests 207 testLooper = TestLooper() in setup() 217 batteryController = BatteryController(context, native, testLooper.looper, uEventManager, in setup() 223 testLooper.dispatchAll() in setup() 370 testLooper.dispatchNext() in testBatteryPresenceChanged() 377 testLooper.dispatchNext() in testBatteryPresenceChanged() 395 testLooper.moveTimeForward(1) in testStartPollingWhenListenerIsRegistered() 396 testLooper.dispatchAll() in testStartPollingWhenListenerIsRegistered() 401 testLooper.moveTimeForward(POLLING_PERIOD_MILLIS - 1) in testStartPollingWhenListenerIsRegistered() 402 assertTrue("There should be a polling callbacks posted to the handler", testLooper.isIdle) in testStartPollingWhenListenerIsRegistered() [all …]
|
D | AmbientKeyboardBacklightControllerTests.kt | 73 private lateinit var testLooper: TestLooper in <lambda>() variable in com.android.server.input.AmbientKeyboardBacklightControllerTests 100 testLooper = TestLooper() in <lambda>() 101 ambientController = AmbientKeyboardBacklightController(context, testLooper.looper) in <lambda>() 103 testLooper.dispatchAll() in <lambda>() 174 testLooper.dispatchAll() in <lambda>() 196 testLooper.dispatchAll() in <lambda>() 213 testLooper.dispatchAll() in <lambda>() 289 testLooper.dispatchAll() in <lambda>() 305 testLooper.dispatchAll() in <lambda>() 324 testLooper.dispatchAll() in <lambda>() [all …]
|
D | KeyRemapperTests.kt | 83 private lateinit var testLooper: TestLooper in createKeyboard() variable in com.android.server.input.KeyRemapperTests 100 testLooper = TestLooper() in createKeyboard() 105 testLooper.looper in createKeyboard() 131 testLooper.dispatchNext() in createKeyboard() 149 testLooper.dispatchNext() in createKeyboard() 166 testLooper.dispatchAll() in createKeyboard()
|
D | KeyboardBacklightControllerTests.kt | 113 private lateinit var testLooper: TestLooper in createKeyboard() variable in com.android.server.input.KeyboardBacklightControllerTests 134 testLooper = TestLooper() in createKeyboard() 136 testLooper.looper, FakeAnimatorFactory(), uEventManager) in createKeyboard() 245 testLooper.dispatchNext() in createKeyboard() 275 testLooper.dispatchNext() in createKeyboard() 284 testLooper.dispatchNext() in createKeyboard() 313 testLooper.dispatchNext() in createKeyboard() 365 testLooper.dispatchNext() in createKeyboard() 372 testLooper.moveTimeForward(USER_INACTIVITY_THRESHOLD_MILLIS + 1000) in createKeyboard() 373 testLooper.dispatchNext() in createKeyboard() [all …]
|
D | InputManagerServiceTests.kt | 93 private lateinit var testLooper: TestLooper variable in com.android.server.input.InputManagerServiceTests 103 testLooper = TestLooper() in setup() 106 context, testLooper.looper, uEventManager) { in setup()
|
D | KeyboardLayoutManagerTests.kt | 139 private lateinit var testLooper: TestLooper in createKeyboard() variable in com.android.server.input.KeyboardLayoutManagerTests 163 testLooper = TestLooper() in createKeyboard() 165 KeyboardLayoutManager(context, native, dataStore, testLooper.looper) in createKeyboard()
|
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/util/ |
D | Assert.java | 31 public static void setTestableLooper(Looper testLooper) { in setTestableLooper() argument 32 setTestThread(testLooper == null ? null : testLooper.getThread()); in setTestableLooper()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
D | TvPipBoundsControllerTest.kt | 68 lateinit var testLooper: TestLooper variable in com.android.wm.shell.pip.tv.TvPipBoundsControllerTest 95 testLooper = TestLooper { time } in setUp() 96 mainHandler = Handler(testLooper.getLooper()) in setUp() 279 testLooper.dispatchAll() in advanceTimeTo()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 146 Looper testLooper = Looper.myLooper(); in testCreateChoreographer() local 162 assertThrows(IllegalStateException.class, () -> sc1.getChoreographer(testLooper)); in testCreateChoreographer() 172 assertThrows(IllegalStateException.class, () -> sc2.getChoreographer(testLooper)); in testCreateChoreographer() 182 assertThrows(IllegalStateException.class, () -> sc3.getChoreographer(testLooper)); in testCreateChoreographer() 199 () -> surfaceControl.getChoreographer(testLooper)); in testCreateChoreographer()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationTestHelper.java | 167 @Nullable TestableLooper testLooper) { in NotificationTestHelper() argument 168 this(context, dependency, testLooper, new FakeFeatureFlags()); in NotificationTestHelper() 174 @Nullable TestableLooper testLooper, in NotificationTestHelper() argument 227 if (testLooper == null) { in NotificationTestHelper() 234 Looper looper = testLooper.getLooper(); in NotificationTestHelper() 236 runWithCurrentThreadAsMainThread(testLooper::processAllMessages); in NotificationTestHelper()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorControlServiceTest.java | 93 TestLooper testLooper = new TestLooper(); in setUp() local 95 ApplicationProvider.getApplicationContext(), new Handler(testLooper.getLooper())); in setUp()
|
D | VibrationThreadTest.java | 1886 TestLooperAutoDispatcher(TestLooper testLooper) { in TestLooperAutoDispatcher() argument 1887 mTestLooper = testLooper; in TestLooperAutoDispatcher()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | UtilsTest.java | 163 TestLooper testLooper = new TestLooper(); in setUp() local 164 mTestHandler = new Handler(testLooper.getLooper()); in setUp()
|
/frameworks/base/services/tests/VpnTests/java/com/android/server/connectivity/ |
D | VpnTest.java | 3234 final TestLooper testLooper = new TestLooper(); in createVpn() local 3235 final Vpn vpn = new Vpn(testLooper.getLooper(), mContext, mTestDeps, mNetService, in createVpn()
|