/frameworks/native/services/inputflinger/tests/ |
D | AnrTracker_test.cpp | 43 sp<IBinder> token1 = new BBinder(); 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 = new BBinder(); in TEST() local 96 tracker.insert(2, token1); in TEST() 107 sp<IBinder> token1 = new BBinder(); in TEST() local 110 tracker.insert(2, token1); in TEST() 116 ASSERT_TRUE(token1 == tracker.firstToken() || token2 == tracker.firstToken()); in TEST() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | PackageStatusStorageTest.java | 83 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in resetCheckState() local 97 assertFalse(token1.equals(token2)); in resetCheckState() 116 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in generateCheckToken_missingFileBehavior() local 117 assertNotNull(token1); in generateCheckToken_missingFileBehavior() 134 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in getPackageStatus_missingFileBehavior() local 135 assertNotNull(token1); in getPackageStatus_missingFileBehavior() 149 CheckToken token1 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in markChecked_missingFileBehavior() local 150 assertNotNull(token1); in markChecked_missingFileBehavior() 159 assertFalse(mPackageStatusStorage.markChecked(token1, true /* succeeded */)); in markChecked_missingFileBehavior() 172 CheckToken token1 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique() local [all …]
|
D | PackageTrackerTest.java | 489 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress() local 490 assertEquals(packageVersions, token1.mPackageVersions); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress() 501 assertEquals(token1.mPackageVersions, token2.mPackageVersions); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress() 502 assertTrue(token1.mOptimisticLockId != token2.mOptimisticLockId); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress() 584 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_afterFailure() local 585 assertEquals(packageVersions, token1.mPackageVersions); in trackingEnabled_packageUpdate_afterFailure() 588 mPackageTracker.recordCheckResult(token1, false /* success */); in trackingEnabled_packageUpdate_afterFailure() 605 assertTrue(token1.mOptimisticLockId != token2.mOptimisticLockId); in trackingEnabled_packageUpdate_afterFailure() 644 CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess() local 645 assertEquals(packageVersions1, token1.mPackageVersions); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 165 Object token1 = looperStats.messageDispatchStarting(); in testMultipleMessagesDispatched() local 168 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testMultipleMessagesDispatched() 252 Object token1 = looperStats.messageDispatchStarting(); in testDispatchDelayIsRecorded() local 254 looperStats.messageDispatched(token1, message1); in testDispatchDelayIsRecorded() 299 Object token1 = looperStats.messageDispatchStarting(); in testDataNotCollectedBeforeDeviceStateSet() local 300 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataNotCollectedBeforeDeviceStateSet() 314 Object token1 = looperStats.messageDispatchStarting(); in testDataNotCollectedOnCharger() local 315 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataNotCollectedOnCharger() 330 Object token1 = looperStats.messageDispatchStarting(); in testDataCollectedIfIgnoreBatteryStatusFlagSet() local 331 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testDataCollectedIfIgnoreBatteryStatusFlagSet() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTokenTests.java | 98 final TestWindowToken token1 = createTestWindowToken(0, mDisplayContent); in testAddWindow_assignsLayers() local 100 final WindowState window1 = createWindow(null, TYPE_STATUS_BAR, token1, "window1"); in testAddWindow_assignsLayers() 103 token1.addWindow(window1); in testAddWindow_assignsLayers() 106 assertEquals(token1.getLastLayer(), 0); in testAddWindow_assignsLayers() 235 final WindowToken token1 = new WindowToken.Builder(mDisplayContent.mWmService, in testWindowAttachedWithOptions() local 242 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 | 916 final IBinder token1 = new Binder(); in testApplyTransaction_requestFocusOnTaskFragment() local 919 .setFragmentToken(token1) in testApplyTransaction_requestFocusOnTaskFragment() 924 mWindowOrganizerController.mLaunchTaskFragments.put(token1, tf1); in testApplyTransaction_requestFocusOnTaskFragment()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VsyncModulatorTest.cpp | 179 const auto token1 = sp<BBinder>::make(); in TEST_F() local 181 EXPECT_EQ(kEarly, mVsyncModulator->setTransactionSchedule(Schedule::EarlyStart, token1)); in TEST_F() 191 EXPECT_EQ(kEarly, mVsyncModulator->setTransactionSchedule(Schedule::EarlyEnd, token1)); in TEST_F()
|
D | FrameTimelineTest.cpp | 183 int64_t token1 = mTokenManager->generateTokenForPredictions({0, 0, 0}); in TEST_F() local 187 std::optional<TimelineItem> predictions = mTokenManager->getPredictionsForToken(token1); in TEST_F() 218 int64_t token1 = mTokenManager->generateTokenForPredictions({0, 0, 0}); in TEST_F() local 221 mFrameTimeline->createSurfaceFrameForToken({token1, sInputEventId}, sPidOne, sUidOne, in TEST_F() 229 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 231 mFrameTimeline->createSurfaceFrameForToken({token1, sInputEventId}, sPidOne, sUidOne, in TEST_F() 240 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 243 mFrameTimeline->createSurfaceFrameForToken({token1, inputEventId}, sPidOne, sUidOne, in TEST_F() 252 int64_t token1 = mTokenManager->generateTokenForPredictions({10, 20, 30}); in TEST_F() local 254 mFrameTimeline->createSurfaceFrameForToken({token1, sInputEventId}, sPidOne, sUidOne, in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/ |
D | MediaSessionBasedFilterTest.kt | 78 private lateinit var token1: MediaSession.Token variable in com.android.systemui.media.controls.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/services/tests/servicestests/src/com/android/server/locksettings/ |
D | WeakEscrowTokenTests.java | 135 byte[] token1 = "some-high-entropy-secure-token-1".getBytes(); in testWeakTokenRemovedListenerUnregistered() 137 long handle1 = mService.addWeakEscrowToken(token1, PRIMARY_USER_ID, mockActivateListener); in testWeakTokenRemovedListenerUnregistered()
|
D | SyntheticPasswordTests.java | 381 byte[] token1 = "some-high-entropy-secure-token-1".getBytes(); in testActivateMultipleEscrowTokens() 389 long handle1 = mLocalService.addEscrowToken(token1, PRIMARY_USER_ID, null); in testActivateMultipleEscrowTokens() 402 pattern, handle1, token1, PRIMARY_USER_ID)); in testActivateMultipleEscrowTokens()
|
/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/models/player/ |
D | SeekBarViewModelTest.kt | 77 private val token1 = MediaSession.Token(1, null) constant in com.android.systemui.media.controls.models.player.SeekBarViewModelTest 87 whenever(mockController.sessionToken).thenReturn(token1) in setUp()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 6654 Binder token1 = new Binder(); in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground() local 6660 nmService.enqueueToast(testPackage, token1, callback1, 2000, 0); in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground()
|