/frameworks/base/core/tests/coretests/src/android/service/controls/templates/ |
D | ControlTemplateTest.java | 44 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 ThumbnailTemplate(TEST_ID, false, mIcon, in testUnparcelingCorrectClass_thumbnail() 118 ControlTemplate toParcel = new ToggleRangeTemplate(TEST_ID, mControlButton, in testUnparcelingCorrectClass_toggleRange() 119 new RangeTemplate(TEST_ID, 0, 2, 1, 1, "%f")); in testUnparcelingCorrectClass_toggleRange() [all …]
|
/frameworks/base/core/tests/coretests/src/android/service/controls/actions/ |
D | ControlActionTest.java | 36 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | InfoMediaManagerTest.java | 79 private static final String TEST_ID = "test_id"; field in InfoMediaManagerTest 188 selectedRoutes.add(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 193 when(info.getId()).thenReturn(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 201 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 207 assertThat(infoDevice.getId()).isEqualTo(TEST_ID); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 243 selectedRoutes.add(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 248 when(info.getId()).thenReturn(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 256 final MediaDevice mediaDevice = mInfoMediaManager.findMediaDevice(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 262 assertThat(infoDevice.getId()).isEqualTo(TEST_ID); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 280 selectedRoutes.add(TEST_ID); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() [all …]
|
D | InfoMediaDeviceTest.java | 52 private static final String TEST_ID = "test_id"; field in InfoMediaDeviceTest 95 when(mRouteInfo.getId()).thenReturn(TEST_ID); in getId_shouldReturnId() 97 assertThat(mInfoMediaDevice.getId()).isEqualTo(TEST_ID); in getId_shouldReturnId()
|
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
D | SuggestionTest.java | 39 private static final String TEST_ID = "id"; field in SuggestionTest 58 final Suggestion suggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_allFieldsShouldBeSet() 65 assertThat(suggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_allFieldsShouldBeSet() 86 final Suggestion oldSuggestion = new Suggestion.Builder(TEST_ID) in buildSuggestion_fromParcelable() 98 assertThat(newSuggestion.getId()).isEqualTo(TEST_ID); in buildSuggestion_fromParcelable()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | RoutingSessionInfoTest.java | 37 public static final String TEST_ID = "test_id"; field in RoutingSessionInfoTest 53 TEST_ID, TEST_CLIENT_PACKAGE_NAME) in testProviderId() 102 TEST_ID, TEST_CLIENT_PACKAGE_NAME) in testGetVolumeHandlingGroupSession()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | ConvertTest.java | 64 private static final int TEST_ID = 1; field in ConvertTest 94 .that(MODULE_PROPERTIES.getId()).isEqualTo(TEST_ID); in propertiesFromHalProperties_idsMatch() 285 return Convert.propertiesFromHal(TEST_ID, TEST_SERVICE_NAME, properties, in convertToModuleProperties()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 217 final int TEST_ID = 100; in testGetUserName() local 218 userInfo.id = TEST_ID; in testGetUserName() 220 assertTrue("Test user name must be set", mUserManagerService.isUserNameSet(TEST_ID)); in testGetUserName() 221 assertEquals("A Name", mUserManagerService.getUserInfo(TEST_ID).name); in testGetUserName()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | ConversionUtilsTest.java | 83 private static final int TEST_ID = 1; field in ConversionUtilsTest 260 .that(MODULE_PROPERTIES.getId()).isEqualTo(TEST_ID); in propertiesFromHalProperties_idsMatch() 961 return ConversionUtils.propertiesFromHalProperties(TEST_ID, TEST_SERVICE_NAME, properties, in createModuleProperties()
|