Home
last modified time | relevance | path

Searched refs:token2 (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DAnrTracker_test.cpp44 sp<IBinder> token2 = new BBinder(); in TEST() local
47 tracker.insert(2, token2); in TEST()
49 tracker.insert(4, token2); in TEST()
94 sp<IBinder> token2 = new BBinder(); in TEST() local
97 tracker.insert(5, token2); in TEST()
98 tracker.insert(0, token2); in TEST()
101 ASSERT_EQ(token2, tracker.firstToken()); in TEST()
108 sp<IBinder> token2 = new BBinder(); in TEST() local
111 tracker.insert(2, token2); in TEST()
112 tracker.insert(10, token2); in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageStatusStorageTest.java94 CheckToken token2 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in resetCheckState() local
97 assertFalse(token1.equals(token2)); in resetCheckState()
108 assertFalse(token2.equals(token3)); in resetCheckState()
162 CheckToken token2 = mPackageStatusStorage.generateCheckToken(VALID_PACKAGE_VERSIONS); in markChecked_missingFileBehavior() local
163 assertTrue(mPackageStatusStorage.markChecked(token2, true /* succeeded */)); in markChecked_missingFileBehavior()
178 CheckToken token2 = mPackageStatusStorage.generateCheckToken(packageVersions); in checkToken_tokenIsUnique() local
180 assertFalse(token1.mOptimisticLockId == token2.mOptimisticLockId); in checkToken_tokenIsUnique()
181 assertFalse(token1.equals(token2)); in checkToken_tokenIsUnique()
214 CheckToken token2 = mPackageStatusStorage.generateCheckToken(packageVersions); in markChecked_optimisticLocking_multipleToken() local
223 boolean writeOk2 = mPackageStatusStorage.markChecked(token2, true /* succeeded */); in markChecked_optimisticLocking_multipleToken()
DPackageTrackerTest.java499 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksNoPackageChange_secondWhileFirstInProgress() local
500 assertEquals(packageVersions, token2.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()
601 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_afterFailure() local
604 assertEquals(packageVersions, token2.mPackageVersions); in trackingEnabled_packageUpdate_afterFailure()
605 assertTrue(token1.mOptimisticLockId != token2.mOptimisticLockId); in trackingEnabled_packageUpdate_afterFailure()
608 mPackageTracker.recordCheckResult(token2, true /* success */); in trackingEnabled_packageUpdate_afterFailure()
657 CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken(); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess() local
658 assertEquals(packageVersions2, token2.mPackageVersions); in trackingEnabled_packageUpdate_twoChecksWithPackageChange_firstCheckInProcess()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java151 Object token2 = looperStats.messageDispatchStarting(); in testThrewException_notSampled() local
155 token2, mHandlerSecond.obtainMessage(7), new ArithmeticException()); in testThrewException_notSampled()
171 Object token2 = looperStats.messageDispatchStarting(); in testMultipleMessagesDispatched() local
174 looperStats.messageDispatched(token2, mHandlerFirst.obtainMessage(1000)); in testMultipleMessagesDispatched()
259 Object token2 = looperStats.messageDispatchStarting(); in testDispatchDelayIsRecorded() local
261 looperStats.messageDispatched(token2, message2); in testDispatchDelayIsRecorded()
301 Object token2 = looperStats.messageDispatchStarting(); in testDataNotCollectedBeforeDeviceStateSet() local
302 looperStats.dispatchingThrewException(token2, mHandlerFirst.obtainMessage(1000), in testDataNotCollectedBeforeDeviceStateSet()
316 Object token2 = looperStats.messageDispatchStarting(); in testDataNotCollectedOnCharger() local
317 looperStats.dispatchingThrewException(token2, mHandlerFirst.obtainMessage(1000), in testDataNotCollectedOnCharger()
[all …]
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp198 uint64_t token2 = proto.start(FIELD_TYPE_MESSAGE | ComplexProto::kLogsFieldNumber); in TEST() local
202 proto.end(token2); in TEST()
237 uint64_t token2 = proto.start(FIELD_TYPE_MESSAGE | ComplexProto::kLogsFieldNumber); in TEST() local
241 proto.end(token2); in TEST()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java1353 final long token2 = proto.start(AppStateTrackerProto.EXEMPTED_PACKAGES); in dumpProto() local
1358 proto.end(token2); in dumpProto()
1363 final long token2 = proto.start( in dumpProto() local
1368 proto.end(token2); in dumpProto()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DSeekBarViewModelTest.kt71 private val token2 = MediaSession.Token(2, null) constant
114 whenever(controller2.sessionToken).thenReturn(token2) in updateDifferentControllerRegistersCallback()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayContent.java4407 private final Comparator<WindowToken> mWindowComparator = (token1, token2) ->
4411 < mWmService.mPolicy.getWindowLayerFromTypeLw(token2.windowType,
4412 token2.mOwnerCanManageAppTokens) ? -1 : 1;