Home
last modified time | relevance | path

Searched refs:TEST_COMPONENT (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DStatefulControlSubscriberTest.kt58 private val TEST_COMPONENT = ComponentName("TEST_PKG", "TEST_CLS_1") constant
68 `when`(provider.componentName).thenReturn(TEST_COMPONENT) in setUp()
95 verify(controller).refreshStatus(TEST_COMPONENT, control) in testOnNext()
106 verify(controller, times(3)).refreshStatus(TEST_COMPONENT, control) in testOnNext_multiple()
114 verify(controller, never()).refreshStatus(TEST_COMPONENT, control) in testOnNext_noRefreshBeforeSubscribe()
126 verify(controller, never()).refreshStatus(TEST_COMPONENT, control) in testOnNext_noRefreshAfterCancel()
136 verify(controller, never()).refreshStatus(TEST_COMPONENT, control) in testOnNext_noRefreshAfterError()
146 verify(controller, never()).refreshStatus(TEST_COMPONENT, control) in testOnNext_noRefreshAfterComplete()
DAuxiliaryPersistenceWrapperTest.kt45 private val TEST_COMPONENT = ComponentName.unflattenFromString("test_pkg/.test_cls")!! in any() constant
65 `when`(structure1.componentName).thenReturn(TEST_COMPONENT) in any()
67 `when`(structure3.componentName).thenReturn(TEST_COMPONENT) in any()
91 val cached = auxiliaryFileWrapper.getCachedFavoritesAndRemoveFor(TEST_COMPONENT) in testGetCachedValues_component()
107 auxiliaryFileWrapper.getCachedFavoritesAndRemoveFor(TEST_COMPONENT) in testGetCachedValues_component_removed()
125 auxiliaryFileWrapper.getCachedFavoritesAndRemoveFor(TEST_COMPONENT)) in testFileRemoved()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java71 private static final ComponentName TEST_COMPONENT = field in LaunchParamsPersisterTests
119 mTestTask = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).setStack(stack) in setUp()
129 mTaskWithDifferentUser = new TaskBuilder(mSupervisor).setComponent(TEST_COMPONENT).build(); in setUp()
138 Collections.singletonList(TEST_COMPONENT.getPackageName()), /* observer */ null)); in setUp()
175 final ActivityRecord activity = new ActivityBuilder(mService).setComponent(TEST_COMPONENT) in testFetchesSameResultWithActivity()
355 .setComponent(TEST_COMPONENT) in testClearsRecordsOfTheUserOnUserCleanUp()
370 assertTrue("Should have cleaned record for " + TEST_COMPONENT, mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
380 mTarget.removeRecordForPackage(TEST_COMPONENT.getPackageName()); in testClearsRecordInMemory()
391 mTarget.removeRecordForPackage(TEST_COMPONENT.getPackageName()); in testClearsWriteQueueItem()
408 mTarget.removeRecordForPackage(TEST_COMPONENT.getPackageName()); in testClearsFile()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DFavoritesModelTest.kt49 private val TEST_COMPONENT = ComponentName.unflattenFromString("test_pkg/.test_cls")!! in <lambda>() constant
67 model = FavoritesModel(TEST_COMPONENT, INITIAL_FAVORITES, callback) in <lambda>()
92 ControlInfoWrapper(TEST_COMPONENT, it, true) in <lambda>()
121 TEST_COMPONENT, INITIAL_FAVORITES[4], false), model.elements.last()) in <lambda>()
185 ControlInfoWrapper(TEST_COMPONENT, INITIAL_FAVORITES[removedFirst], false), in <lambda>()
186 ControlInfoWrapper(TEST_COMPONENT, INITIAL_FAVORITES[removedSecond], false) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java83 private static final String TEST_COMPONENT = "test_pkg/test_cls"; field in AutoTileManagerTest
84 private static final String TEST_CUSTOM_SPEC = "custom(" + TEST_COMPONENT + ")";
302 verify(mQsTileHost).addTile(ComponentName.unflattenFromString(TEST_COMPONENT) in testSettingTileAddedComponentAtEnd_onChanged()
/frameworks/base/core/tests/coretests/src/android/service/controls/
DControlProviderServiceTest.java68 private static final ComponentName TEST_COMPONENT = field in ControlProviderServiceTest
248 ControlsProviderService.requestAddControl(mContext, TEST_COMPONENT, control); in testRequestAdd()
255 assertEquals(TEST_COMPONENT, intent.getParcelableExtra(Intent.EXTRA_COMPONENT_NAME)); in testRequestAdd()