/frameworks/native/services/inputflinger/tests/ |
D | AnrTracker_test.cpp | 43 sp<IBinder> token1 = sp<BBinder>::make(); in TEST() local 46 tracker.insert(1, token1); in TEST() 48 tracker.insert(3, token1); in TEST() 50 tracker.insert(5, token1); in TEST() 52 tracker.eraseToken(token1); in TEST() 93 sp<IBinder> token1 = sp<BBinder>::make(); in TEST() local 96 tracker.insert(2, token1); in TEST() 107 sp<IBinder> token1 = sp<BBinder>::make(); in TEST() local 110 tracker.insert(2, token1); in TEST() 116 ASSERT_TRUE(token1 == tracker.firstToken() || token2 == tracker.firstToken()); in TEST() [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | InputTransferToken.h | 45 static inline bool operator==(const sp<InputTransferToken>& token1, 47 if (token1.get() == token2.get()) { 50 return token1->mToken == token2->mToken;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 170 Object token1 = looperStats.messageDispatchStarting(); in testMultipleMessagesDispatched() local 173 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testMultipleMessagesDispatched() 257 Object token1 = looperStats.messageDispatchStarting(); in testDispatchDelayIsRecorded() local 259 looperStats.messageDispatched(token1, message1); in testDispatchDelayIsRecorded() 304 Object token1 = looperStats.messageDispatchStarting(); in testDataNotCollectedBeforeDeviceStateSet() local 305 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataNotCollectedBeforeDeviceStateSet() 319 Object token1 = looperStats.messageDispatchStarting(); in testDataNotCollectedOnCharger() local 320 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataNotCollectedOnCharger() 335 Object token1 = looperStats.messageDispatchStarting(); in testDataCollectedIfIgnoreBatteryStatusFlagSet() local 336 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataCollectedIfIgnoreBatteryStatusFlagSet() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/util/ |
D | ChoreographerCallbacksTest.java | 113 Object token1 = new Object(); in testRemoveNullAction() local 115 callbacks.add((Runnable) () -> order.add(2), token1, 200); in testRemoveNullAction() 116 callbacks.add((FrameCallback) frameTimeNanos -> order.add(1), token1, 100); in testRemoveNullAction() 119 callbacks.remove(null, token1); in testRemoveNullAction()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTokenTests.java | 99 final TestWindowToken token1 = createTestWindowToken(0, mDisplayContent); in testAddWindow_assignsLayers() local 101 final WindowState window1 = createWindow(null, TYPE_STATUS_BAR, token1, "window1"); in testAddWindow_assignsLayers() 104 token1.addWindow(window1); in testAddWindow_assignsLayers() 107 assertEquals(token1.getLastLayer(), 0); in testAddWindow_assignsLayers() 236 final WindowToken token1 = new WindowToken.Builder(mDisplayContent.mWmService, in testWindowAttachedWithOptions() local 243 verify(selectFunc).apply(token1.windowType, null); in testWindowAttachedWithOptions()
|
D | DisplayAreaPolicyBuilderTest.java | 626 final WindowToken token1 = new WindowToken.Builder(mWms, mock(IBinder.class), in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnType() local 638 policy.addWindow(token1); in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnType() 641 assertThat(token1.isDescendantOf(mGroupRoot1)).isTrue(); in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnType() 687 final WindowToken token1 = new WindowToken.Builder(mWms, mock(IBinder.class), in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnOptions() local 703 policy.addWindow(token1); in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnOptions() 707 assertThat(token1.isDescendantOf(mGroupRoot1)).isTrue(); in testBuilder_addWindow_selectContainerForWindowFunc_selectBasedOnOptions()
|
D | TaskFragmentOrganizerControllerTest.java | 1125 final IBinder token1 = new Binder(); in testApplyTransaction_requestFocusOnTaskFragment() local 1128 .setFragmentToken(token1) in testApplyTransaction_requestFocusOnTaskFragment() 1133 mWindowOrganizerController.mLaunchTaskFragments.put(token1, tf1); in testApplyTransaction_requestFocusOnTaskFragment() 1791 final IBinder token1 = new Binder(); in testApplyTransaction_reorderTaskFragmentToFront() local 1794 .setFragmentToken(token1) in testApplyTransaction_reorderTaskFragmentToFront() 1803 mWindowOrganizerController.mLaunchTaskFragments.put(token1, tf1); in testApplyTransaction_reorderTaskFragmentToFront()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VsyncModulatorTest.cpp | 176 const auto token1 = sp<BBinder>::make(); in TEST_F() local 178 EXPECT_EQ(kEarly, mVsyncModulator->setTransactionSchedule(Schedule::EarlyStart, token1)); in TEST_F() 188 EXPECT_EQ(kEarly, mVsyncModulator->setTransactionSchedule(Schedule::EarlyEnd, token1)); in TEST_F()
|
D | FrameTimelineTest.cpp | 195 int64_t token1 = mTokenManager->generateTokenForPredictions({0, 0, 0}); in TEST_F() local 199 std::optional<TimelineItem> predictions = mTokenManager->getPredictionsForToken(token1); in TEST_F() 230 int64_t token1 = mTokenManager->generateTokenForPredictions({0, 0, 0}); in TEST_F() local 233 ftInfo.vsyncId = token1; in TEST_F() 244 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 246 ftInfo.vsyncId = token1; in TEST_F() 258 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 261 ftInfo.vsyncId = token1; in TEST_F() 273 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 275 ftInfo.vsyncId = token1; in TEST_F() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | WeakEscrowTokenTests.java | 141 byte[] token1 = "some-high-entropy-secure-token-1".getBytes(); in testWeakTokenRemovedListenerUnregistered() 143 long handle1 = mService.addWeakEscrowToken(token1, PRIMARY_USER_ID, mockActivateListener); in testWeakTokenRemovedListenerUnregistered()
|
D | SyntheticPasswordTests.java | 453 byte[] token1 = "some-high-entropy-secure-token-1".getBytes(); in testActivateMultipleEscrowTokens() 461 long handle1 = mLocalService.addEscrowToken(token1, PRIMARY_USER_ID, null); in testActivateMultipleEscrowTokens() 474 pattern, handle1, token1, PRIMARY_USER_ID)); in testActivateMultipleEscrowTokens()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaSessionBasedFilterTest.kt | 78 private lateinit var token1: MediaSession.Token variable in com.android.systemui.media.controls.domain.pipeline.MediaSessionBasedFilterTest 110 token1 = session1.sessionToken in setUp() 115 whenever(controller1.getSessionToken()).thenReturn(token1) in setUp() 125 mediaData1 = info.copy(token = token1) in setUp()
|
/frameworks/base/libs/protoutil/tests/ |
D | ProtoOutputStream_test.cpp | 192 uint64_t token1 = proto.start(FIELD_TYPE_MESSAGE | ComplexProto::kLogsFieldNumber); in TEST() local 197 proto.end(token1); in TEST() 231 uint64_t token1 = proto.start(FIELD_TYPE_MESSAGE | ComplexProto::kLogsFieldNumber); in TEST() local 236 proto.end(token1); in TEST()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | SeekBarViewModelTest.kt | 78 private val token1 = MediaSession.Token(1, null) constant in com.android.systemui.media.controls.ui.viewmodel.SeekBarViewModelTest 88 whenever(mockController.sessionToken).thenReturn(token1) in setUp()
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 3137 final IBinder token1 = new Binder(); in testScreenTimeoutOverrideWakeLockFullWakeLock() local 3139 mService.getBinderServiceInstance().acquireWakeLock(token1, flags, tag1, packageName1, in testScreenTimeoutOverrideWakeLockFullWakeLock() 3158 assertThat(mService.findWakeLockLocked(token1)).isEqualTo(null); in testScreenTimeoutOverrideWakeLockFullWakeLock() 3161 mService.getBinderServiceInstance().releaseWakeLock(token1, 0 /* flags */); in testScreenTimeoutOverrideWakeLockFullWakeLock() 3181 final IBinder token1 = new Binder(); in testScreenTimeoutOverrideWakeLockMultiClients() local 3183 mService.getBinderServiceInstance().acquireWakeLock(token1, flags, tag1, packageName1, in testScreenTimeoutOverrideWakeLockMultiClients() 3198 mService.getBinderServiceInstance().releaseWakeLock(token1, 0 /* flags */); in testScreenTimeoutOverrideWakeLockMultiClients()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionManagerServiceImpl.java | 750 (token1, detectorType1) -> { in initAndVerifyDetectorLocked() 752 mService.detectorRemoteExceptionOccurred(token1, detectorType1); in initAndVerifyDetectorLocked()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 8182 Binder token1 = new Binder(); in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground() local 8188 enqueueToast(nmService, testPackage, token1, callback1); in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground()
|