/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | PackageStatusStorageTest.java | 94 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()
|
D | PackageTrackerTest.java | 499 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/services/tests/wmtests/src/com/android/server/wm/ |
D | UnknownAppVisibilityControllerTest.java | 58 final AppWindowToken token2 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple() local 61 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(token2); in testMultiple() 63 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(token2); in testMultiple() 64 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(token2); in testMultiple()
|
D | AppWindowTokenTests.java | 415 final WindowTestUtils.TestAppWindowToken token2 = createIsolatedTestAppWindowToken(); in testTransferStartingWindow() local 420 token2.addStartingWindow(mPackageName, in testTransferStartingWindow() 425 assertHasStartingWindow(token2); in testTransferStartingWindow() 431 final WindowTestUtils.TestAppWindowToken token2 = createIsolatedTestAppWindowToken(); in testTransferStartingWindowWhileCreating() local 435 token2.addStartingWindow(mPackageName, in testTransferStartingWindowWhileCreating() 445 assertHasStartingWindow(token2); in testTransferStartingWindowWhileCreating()
|
D | AppTransitionTests.java | 128 final WindowTestUtils.TestAppWindowToken token2 = createTestAppWindowToken(dc2, in testAppTransitionStateForMultiDisplay() local 146 token2.setVisibility(false, false); in testAppTransitionStateForMultiDisplay()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 151 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/ |
D | ProtoOutputStream_test.cpp | 198 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/ |
D | AppStateTracker.java | 1346 final long token2 = proto.start( in dumpProto() local 1352 proto.end(token2); in dumpProto() 1357 final long token2 = proto.start( in dumpProto() local 1362 proto.end(token2); in dumpProto()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 4659 private final Comparator<WindowToken> mWindowComparator = (token1, token2) -> 4663 < mWmService.mPolicy.getWindowLayerFromTypeLw(token2.windowType, 4664 token2.mOwnerCanManageAppTokens) ? -1 : 1;
|