Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/service/controls/templates/
DControlTemplateTest.java44 private static final String TEST_ID = "TEST_ID"; field in ControlTemplateTest
67 ControlTemplate toParcel = new ToggleTemplate(TEST_ID, mControlButton); in testUnparcelingCorrectClass_toggle()
77 ControlTemplate toParcel = new RangeTemplate(TEST_ID, 0, 2, 1, 1, "%f"); in testUnparcelingCorrectClass_range()
87 new RangeTemplate(TEST_ID, 2, 0, 1, 1, "%f"); in testRangeParameters_minMax()
92 new RangeTemplate(TEST_ID, 0, 2, -1, 1, "%f"); in testRangeParameters_minCurrent()
97 new RangeTemplate(TEST_ID, 0, 2, 3, 1, "%f"); in testRangeParameters_maxCurrent()
102 new RangeTemplate(TEST_ID, 0, 2, 1, -1, "%f"); in testRangeParameters_negativeStep()
107 ControlTemplate toParcel = new ToggleRangeTemplate(TEST_ID, mControlButton, in testUnparcelingCorrectClass_toggleRange()
108 new RangeTemplate(TEST_ID, 0, 2, 1, 1, "%f")); in testUnparcelingCorrectClass_toggleRange()
118 ControlTemplate toParcel = new StatelessTemplate(TEST_ID); in testUnparcelingCorrectClass_stateless()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java62 private static final String TEST_ID = "test_id"; field in InfoMediaManagerTest
93 selectedRoutes.add(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
98 when(info.getId()).thenReturn(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
105 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
111 assertThat(infoDevice.getId()).isEqualTo(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
119 when(info.getId()).thenReturn(TEST_ID); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
127 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
134 assertThat(infoDevice.getId()).isEqualTo(TEST_ID); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
144 selectedRoutes.add(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
149 when(info.getId()).thenReturn(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
[all …]
DMediaManagerTest.java38 private static final String TEST_ID = "test_id"; field in MediaManagerTest
53 when(mDevice.getId()).thenReturn(TEST_ID); in setUp()
108 mMediaManager.dispatchConnectedDeviceChanged(TEST_ID); in dispatchActiveDeviceChanged_registerCallback_shouldDispatchCallback()
110 verify(mCallback).onConnectedDeviceChanged(TEST_ID); in dispatchActiveDeviceChanged_registerCallback_shouldDispatchCallback()
126 final MediaDevice device = mMediaManager.findMediaDevice(TEST_ID); in findMediaDevice_idExist_shouldReturnMediaDevice()
DInfoMediaDeviceTest.java50 private static final String TEST_ID = "test_id"; field in InfoMediaDeviceTest
94 when(mRouteInfo.getId()).thenReturn(TEST_ID); in getId_shouldReturnId()
96 assertThat(mInfoMediaDevice.getId()).isEqualTo(TEST_ID); in getId_shouldReturnId()
/frameworks/base/core/tests/coretests/src/android/service/controls/actions/
DControlActionTest.java36 private static final String TEST_ID = "TEST_ID"; field in ControlActionTest
40 ControlAction toParcel = new BooleanAction(TEST_ID, true); in testUnparcelingCorrectClass_boolean()
50 ControlAction toParcel = new FloatAction(TEST_ID, 1); in testUnparcelingCorrectClass_float()
60 ControlAction toParcel = new ModeAction(TEST_ID, 1); in testUnparcelingCorrectClass_mode()
70 ControlAction toParcel = new CommandAction(TEST_ID); in testUnparcelingCorrectClass_command()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java39 private static final String TEST_ID = "id"; field in SuggestionTest
57 final Suggestion suggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_allFieldsShouldBeSet()
64 assertThat(suggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_allFieldsShouldBeSet()
85 final Suggestion oldSuggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_fromParcelable()
97 assertThat(newSuggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_fromParcelable()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DRoutingSessionInfoTest.java35 public static final String TEST_ID = "test_id"; field in RoutingSessionInfoTest
51 TEST_ID, TEST_CLIENT_PACKAGE_NAME) in testProviderId()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java139 final int TEST_ID = 100; in testGetUserName() local
140 userInfo.id = TEST_ID; in testGetUserName()
142 assertTrue("Test user name must be set", mUserManagerService.isUserNameSet(TEST_ID)); in testGetUserName()
143 assertEquals("A Name", mUserManagerService.getUserInfo(TEST_ID).name); in testGetUserName()