Home
last modified time | relevance | path

Searched refs:token1 (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageStatusStorageTest.java83 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 …]
DPackageTrackerTest.java489 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/services/tests/wmtests/src/com/android/server/wm/
DAppTransitionTests.java126 final WindowTestUtils.TestAppWindowToken token1 = createTestAppWindowToken(dc1, in testAppTransitionStateForMultiDisplay() local
131 token1.allDrawn = true; in testAppTransitionStateForMultiDisplay()
132 token1.startingDisplayed = true; in testAppTransitionStateForMultiDisplay()
133 token1.startingMoved = true; in testAppTransitionStateForMultiDisplay()
145 token1.setVisibility(true, false); in testAppTransitionStateForMultiDisplay()
163 final WindowTestUtils.TestAppWindowToken token1 = in testCleanAppTransitionWhenTaskStackReparent() local
165 task1.addChild(token1, 0); in testCleanAppTransitionWhenTaskStackReparent()
168 dc1.mClosingApps.add(token1); in testCleanAppTransitionWhenTaskStackReparent()
176 dc1.mOpeningApps.add(token1); in testCleanAppTransitionWhenTaskStackReparent()
183 assertFalse(dc1.mOpeningApps.contains(token1)); in testCleanAppTransitionWhenTaskStackReparent()
[all …]
DUnknownAppVisibilityControllerTest.java57 final AppWindowToken token1 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple() local
59 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(token1); in testMultiple()
60 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(token1); in testMultiple()
62 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(token1); in testMultiple()
DAppWindowTokenTests.java414 final WindowTestUtils.TestAppWindowToken token1 = createIsolatedTestAppWindowToken(); in testTransferStartingWindow() local
416 token1.addStartingWindow(mPackageName, in testTransferStartingWindow()
421 android.R.style.Theme, null, "Test", 0, 0, 0, 0, token1.appToken.asBinder(), in testTransferStartingWindow()
424 assertNoStartingWindow(token1); in testTransferStartingWindow()
430 final WindowTestUtils.TestAppWindowToken token1 = createIsolatedTestAppWindowToken(); in testTransferStartingWindowWhileCreating() local
432 ((TestWindowManagerPolicy) token1.mWmService.mPolicy).setRunnableWhenAddingSplashScreen( in testTransferStartingWindowWhileCreating()
437 token1.appToken.asBinder(), true, true, false, in testTransferStartingWindowWhileCreating()
440 token1.addStartingWindow(mPackageName, in testTransferStartingWindowWhileCreating()
444 assertNoStartingWindow(token1); in testTransferStartingWindowWhileCreating()
DDisplayContentTests.java324 final WindowTestUtils.TestAppWindowToken token1 = in testInputEventBringsCorrectDisplayInFocus() local
326 task1.addChild(token1, 0); in testInputEventBringsCorrectDisplayInFocus()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java165 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()
329 Object token1 = looperStats.messageDispatchStarting(); in testScreenStateCollected() local
330 looperStats.messageDispatched(token1, mHandlerFirst.obtainMessage(1000)); in testScreenStateCollected()
[all …]
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp192 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/services/core/java/com/android/server/wm/
DDisplayContent.java4673 private final Comparator<WindowToken> mWindowComparator = (token1, token2) ->
4675 mWmService.mPolicy.getWindowLayerFromTypeLw(token1.windowType,
4676 token1.mOwnerCanManageAppTokens)