/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | TimeoutTest.java | 39 private static final String NAME = "TIME, Y U NO OUT?"; field in TimeoutTest 53 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, -1, 2, 2)); in testInvalidConstructor() 54 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 0, 2, 2)); in testInvalidConstructor() 56 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, -1, 2)); in testInvalidConstructor() 57 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 0, 2)); in testInvalidConstructor() 58 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 1, 2)); in testInvalidConstructor() 60 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, -1)); in testInvalidConstructor() 61 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, 0)); in testInvalidConstructor() 63 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 2, 2, 1)); in testInvalidConstructor() 68 final Timeout timeout = new Timeout(NAME, 1, 2, 5); in testGetters() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | AndroidExceptionTest.java | 32 private static final String NAME = "Test_AndroidException"; field in AndroidExceptionTest 43 throw new AndroidException(NAME); in testAndroidException() 45 assertEquals(NAME, e.getMessage()); in testAndroidException() 55 throw new AndroidException(NAME, CAUSE); in testAndroidException() 57 assertEquals(NAME, e.getMessage()); in testAndroidException()
|
D | AndroidRuntimeExceptionTest.java | 32 private static final String NAME = "Test_AndroidRuntimeException"; field in AndroidRuntimeExceptionTest 43 throw new AndroidRuntimeException(NAME); in testAndroidRuntimeException() 45 assertEquals(NAME, e.getMessage()); in testAndroidRuntimeException()
|
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/ |
D | SimPhonebookContract_SimRecordsTest.java | 88 SimRecords.NAME, in queryAdn_nullProjection_returnsCursorWithAllSupportedColumns() 98 try (Cursor cursor = query(adnUri, new String[]{SimRecords.NAME})) { in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection() argument 99 assertThat(cursor).hasColumnNames(SimRecords.NAME); in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection() 104 SimRecords.NAME, SimRecords.PHONE_NUMBER in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection() 135 SimRecords.NAME, in queryAdn_nonEmpty_returnsAdnRecordsFromSim() 173 projection = new String[]{SimRecords.NAME, SimRecords.PHONE_NUMBER}; in query_itemUri_returnsCursorWithCorrectItem() 210 values.put(SimRecords.NAME, "Name"); in insertAdn_addsRecordAndReturnsValidUri() 220 SimRecords.NAME, in insertAdn_addsRecordAndReturnsValidUri() argument 235 values.put(SimRecords.NAME, "Updated"); in updateAdn_existingRecord_updatesRecordAndReturns1() 242 SimRecords.NAME, in updateAdn_existingRecord_updatesRecordAndReturns1() argument [all …]
|
D | SimPhonebookContract_SimRecordsMultiSimTest.java | 83 SimRecords.NAME, in queryAdn_returnsCursorWithRecordsFromCorrectSim() 109 values.put(SimRecords.NAME, "Name Sim1"); in insertAdn_returnsUriForCorrectSim() 112 values.put(SimRecords.NAME, "Name Sim2"); in insertAdn_returnsUriForCorrectSim() 133 values.put(SimRecords.NAME, "Updated Sim1"); in updateAdn_updatesCorrectRecord() 139 values.put(SimRecords.NAME, "Updated Sim2"); in updateAdn_updatesCorrectRecord() 146 {SimRecords.SUBSCRIPTION_ID, SimRecords.NAME, SimRecords.PHONE_NUMBER}; in updateAdn_updatesCorrectRecord() 189 values.put(SimRecords.NAME, name); in insertAdn()
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | ApnDatabaseTest.java | 55 private static final String NAME = "carrierName"; field in ApnDatabaseTest 74 entry(Carriers.NAME, NAME), 194 contentValues.put(Carriers.NAME, NAME); in testQueryConflictCase() 208 Carriers.NAME, Carriers.APN, Carriers.PORT, Carriers.PROTOCOL, Carriers.NUMERIC, in testQueryConflictCase() 225 final String selectionToDelete = Carriers.NAME + "=?"; in testQueryConflictCase() 226 String[] selectionArgsToDelete = {NAME}; in testQueryConflictCase() 256 contentValues.put(Carriers.NAME, NAME); in testUpdateConflictCase() 270 Carriers.NAME, Carriers.APN, Carriers.PORT, Carriers.PROTOCOL, Carriers.NUMERIC, in testUpdateConflictCase() 272 String selection = Carriers.NAME + "=?"; in testUpdateConflictCase() 273 String[] selectionArgs = {NAME}; in testUpdateConflictCase() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentQueryMapTest.java | 53 DummyProvider.NAME, DummyProvider.VALUE}; 68 values0.put(DummyProvider.NAME, NAME0); in setUp() 73 values1.put(DummyProvider.NAME, NAME1); in setUp() 99 new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testConstructor() 110 new ContentQueryMap(null, DummyProvider.NAME, false, new Handler()); in testConstructor() 119 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testGetRows() 129 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, false, new Handler()); in testGetRows() 140 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, false, null); in testRequery() 154 values.put(DummyProvider.NAME, NAME2); in testRequery() 157 DummyProvider.NAME + " = '" + NAME0 + "'", null); in testRequery() [all …]
|
D | AsyncQueryHandlerTest.java | 68 DummyProvider._ID, DummyProvider.NAME}; 83 values0.put(DummyProvider.NAME, NAME0); in setUp() 87 values1.put(DummyProvider.NAME, NAME1); in setUp() 91 values2.put(DummyProvider.NAME, NAME2); in setUp() 110 values1.put(DummyProvider.NAME, NAME3); in testStartInsert() 112 values2.put(DummyProvider.NAME, NAME4); in testStartInsert() 183 values1.put(DummyProvider.NAME, NAME3); in testStartUpdate() 185 values2.put(DummyProvider.NAME, NAME4); in testStartUpdate() 192 DummyProvider.NAME + "=?", new String[] { NAME0 }, NO_CANCEL); in testStartUpdate() 202 DummyProvider.NAME + "=?", new String[] { NAME1 }, CANCELABLE); in testStartUpdate() [all …]
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayConfigTest.java | 43 private static final String NAME = "VirtualDisplayConfigTest"; field in VirtualDisplayConfigTest 56 new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY) in parcelAndUnparcel_matches() 67 assertThat(originalConfig.getName()).isEqualTo(NAME); in parcelAndUnparcel_matches() 85 assertThat(recreatedConfig.getName()).isEqualTo(NAME); in parcelAndUnparcel_matches() 102 new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY).build(); in virtualDisplayConfig_onlyRequiredFields() 123 new VirtualDisplayConfig.Builder(NAME, 0, HEIGHT, DENSITY); in virtualDisplayConfig_invalidWidth_throwsException() 130 new VirtualDisplayConfig.Builder(NAME, WIDTH, 0, DENSITY); in virtualDisplayConfig_invalidHeight_throwsException() 144 new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY) in virtualDisplayConfig_nullDisplayCategories_throwsException() 152 new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY) in virtualDisplayConfig_nullDisplayCategory_throwsException() 160 new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY) in virtualDisplayConfig_invalidRequestedRefreshRate_throwsException()
|
D | VirtualDisplayTest.java | 100 private static final String NAME = TAG; field in VirtualDisplayTest 189 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay() 214 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay() 240 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplayWithDynamicSurface() 273 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testUntrustedSysDecorVirtualDisplay() 304 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testTrustedVirtualDisplay() 320 VirtualDisplayConfig config = new VirtualDisplayConfig.Builder(NAME, WIDTH, HEIGHT, DENSITY) in testVirtualDisplayWithRequestedRefreshRate() 343 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testVirtualDisplayRotatesWithContent() 378 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testVirtualDisplayDoesNotRotateWithContent() 409 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testHdrApiMethods() [all …]
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_Audio_PlaylistsTest.java | 81 values.put(Playlists.NAME, "My favourites " + System.nanoTime()); in testStoreAudioPlaylistsExternal() 94 assertEquals(values.getAsString(Playlists.NAME), in testStoreAudioPlaylistsExternal() 95 c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal() 124 values.put(Playlists.NAME, name1); in testName() 129 new String[] { Playlists.NAME, MediaColumns.DISPLAY_NAME }, null, null)) { in testName() argument 136 values.put(Playlists.NAME, name2); in testName() 140 new String[] { Playlists.NAME, MediaColumns.DISPLAY_NAME }, null, null)) { in testName() argument
|
D | MediaStore_Audio_GenresTest.java | 85 values.put(Genres.NAME, "POP"); in testStoreAudioGenresExternal() 94 assertEquals("POP", c.getString(c.getColumnIndex(Genres.NAME))); in testStoreAudioGenresExternal() 113 values.put(Genres.NAME, "Soda Pop"); in testGetContentUriForAudioId()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | UserCreationRequestTest.java | 28 private static final String NAME = "testUser"; field in UserCreationRequestTest 32 UserCreationRequest userCreationRequest = new UserCreationRequest.Builder().setName(NAME) in testUserCreationRequestName() 35 expectThat(userCreationRequest.getName()).isEqualTo(NAME); in testUserCreationRequestName() 93 NAME).setGuest().setEphemeral().build(); in testToString()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | NinePatchTest.java | 48 private static final String NAME = "TESTNAME"; field in NinePatchTest 67 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in setup() 77 mNinePatch = new NinePatch(mBitmap, new byte[2], NAME); in testConstructorNamedTooShort() 86 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testConstructor() 88 assertEquals(NAME, mNinePatch.getName()); in testConstructor() 104 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testPaintAccessors() 188 NinePatch ninePatch = new NinePatch(bitmap, chunk, NAME); in testHasAlpha() 209 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetDensity() 224 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion() 242 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/ |
D | EventProviderConstants.java | 62 public static final String NAME = "events"; field in EventProviderConstants.EventTableConstants 74 public static final String CONTENT_URI = BASE_URI + "/" + NAME;
|
/cts/tests/tests/jvmti/attaching/jni/ |
D | agent.c | 39 #define NAME(BASE) EVAL(BASE,AGENT_NR) macro 41 JNIEXPORT jboolean JNICALL NAME(Java_android_jvmti_attaching_cts_AttachingTest_isAttached) ( in NAME() function
|
/cts/tests/app/app/src/android/app/stubs/ |
D | ExpandableListTestActivity.java | 43 private static final String NAME = "NAME"; field in ExpandableListTestActivity 59 curGroupMap.put(NAME, "Group " + i); in onCreate() 66 curChildMap.put(NAME, "Child " + j); in onCreate() 75 new String[] { NAME, IS_EVEN }, new int[] { R.id.text1, R.id.text2 }, childData, in onCreate() 77 new String[] { NAME, IS_EVEN }, new int[] { R.id.text1, R.id.text2 }); in onCreate()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PermissionDeviceInfo.java | 34 private static final String NAME = "name"; field in PermissionDeviceInfo 77 store.addResult(NAME, packageName); in collectSignaturePermissionAllowlist() 82 store.addResult(NAME, permissionName); in collectSignaturePermissionAllowlist()
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | ServiceInfoTest.java | 49 private static final String NAME = "class1"; field in ServiceInfoTest 53 new StreamingServiceInfo(LOCALE_DICT, NAME, LOCALES, ID, BEGIN_DATE, END_DATE); 74 assertEquals(NAME, STREAMING_SERVICE_INFO.getServiceClassName()); in testDataAccess()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | SettingsTest.java | 88 Settings.System._ID, Settings.System.NAME, Settings.System.VALUE in testSystemTable() 106 value.put(Settings.System.NAME, name); in testSystemTable() 111 Settings.System.NAME + "=\"" + name + "\"", null, null, null); in testSystemTable() 122 value.put(Settings.System.NAME, name); in testSystemTable() 126 Settings.System.NAME + "=\"" + name + "\"", null); in testSystemTable() 128 Settings.System.NAME + "=\"" + name + "\"", null, null, null); in testSystemTable() 146 Settings.Secure._ID, Settings.Secure.NAME, Settings.Secure.VALUE in testSecureTable() 158 Settings.Global.NAME + "=\"" + Settings.Global.ADB_ENABLED + "\"", in testSecureTable()
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonToken.java | 53 NAME, enumConstant
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | Contacts_PeopleTest.java | 62 Groups.NAME 80 value.put(People.NAME, "test_people_" + i); in setUp() 87 value.put(Groups.NAME, "test_group_0"); in setUp() 89 value.put(Groups.NAME, "test_group_1"); in setUp() 148 values.put(People.NAME, "test_people_create"); in testAddToGroup() 153 People.NAME + " = 'test_people_create'", null, null, null); in testAddToGroup()
|
D | ContactsTest.java | 86 People.NAME, People.NOTES, People.TIMES_CONTACTED, in testPeopleTable() 104 mProvider.delete(People.CONTENT_URI, PeopleColumns.NAME + " = ?", in testPeopleTable() 108 value.put(PeopleColumns.NAME, insertPeopleName); in testPeopleTable() 116 PEOPLE_PROJECTION, PeopleColumns.NAME + " = ?", in testPeopleTable() 133 value.put(PeopleColumns.NAME, updatePeopleName); in testPeopleTable() 168 Groups._ID, Groups.NAME, Groups.NOTES, in testGroupsTable() 183 value.put(GroupsColumns.NAME, insertGroupsName); in testGroupsTable() 287 value.put(PeopleColumns.NAME, "name_phones_test_stub"); in testPhonesTable() 370 value.put(PeopleColumns.NAME, "name_organizations_test_stub"); in testOrganizationsTable() 598 value.put(PeopleColumns.NAME, "name_contact_methods_test_stub"); [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/account/ |
D | StaticAccountAuthenticator.java | 32 public static final String NAME = "test_account_name"; field in StaticAccountAuthenticator 42 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, NAME); in sAccountBundle.putString() argument
|
/cts/tests/tests/sax/src/android/sax/cts/ |
D | ElementTest.java | 51 private static final String NAME = "name"; field in ElementTest 74 Element name = root.getChild(ATOM_NAMESPACE, NAME); in testParse()
|