/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Audio_MediaTest.java | 41 Cursor c = null; in testGetContentUri() local 42 assertNotNull(c = mContentResolver.query( in testGetContentUri() 45 c.close(); in testGetContentUri() 46 assertNotNull(c = mContentResolver.query( in testGetContentUri() 49 c.close(); in testGetContentUri() 57 Cursor c = null; in testGetContentUriForPath() local 59 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null, in testGetContentUriForPath() 61 c.close(); in testGetContentUriForPath() 65 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null, in testGetContentUriForPath() 67 c.close(); in testGetContentUriForPath() [all …]
|
D | MediaStore_Audio_Genres_MembersTest.java | 45 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp() local 46 c.moveToFirst(); in setUp() 47 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 48 c.close(); in setUp() 51 c = mContentResolver.query(uri, null, null, null, null); in setUp() 52 c.moveToFirst(); in setUp() 53 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 54 c.close(); in setUp() 68 Cursor c = null; in testGetContentUri() local 69 assertNotNull(c = mContentResolver.query( in testGetContentUri() [all …]
|
D | MediaStore_Video_MediaTest.java | 49 Cursor c = null; in testGetContentUri() local 50 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri() 52 c.close(); in testGetContentUri() 53 assertNotNull(c = mContentResolver.query(Media.getContentUri("external"), null, null, null, in testGetContentUri() 55 c.close(); in testGetContentUri() 112 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreVideoMediaExternal() local 113 assertEquals(1, c.getCount()); in testStoreVideoMediaExternal() 114 c.moveToFirst(); in testStoreVideoMediaExternal() 115 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreVideoMediaExternal() 117 assertEquals("cts", c.getString(c.getColumnIndex(Media.ALBUM))); in testStoreVideoMediaExternal() [all …]
|
D | MediaStore_Images_MediaTest.java | 85 Cursor c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, null, null, in testInsertImageWithImagePath() local 87 int previousCount = c.getCount(); in testInsertImageWithImagePath() 88 c.close(); in testInsertImageWithImagePath() 119 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath() 121 assertEquals(1, c.getCount()); in testInsertImageWithImagePath() 122 c.moveToFirst(); in testInsertImageWithImagePath() 123 assertEquals(TEST_TITLE2, c.getString(c.getColumnIndex(Media.TITLE))); in testInsertImageWithImagePath() 124 assertEquals(TEST_DESCRIPTION2, c.getString(c.getColumnIndex(Media.DESCRIPTION))); in testInsertImageWithImagePath() 125 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); in testInsertImageWithImagePath() 126 c.close(); in testInsertImageWithImagePath() [all …]
|
D | MediaStore_Audio_Playlists_MembersTest.java | 106 Cursor c = mContentResolver.query(uri, null, null, null, null); in insertAudioItem() local 107 c.moveToFirst(); in insertAudioItem() 108 long id = c.getLong(c.getColumnIndex(Media._ID)); in insertAudioItem() 109 c.close(); in insertAudioItem() 153 Cursor c = mContentResolver.query(playlistMembersUri, in verifyPlaylist() local 161 members.length, c.getCount()); in verifyPlaylist() 169 ordering.length, c.getCount()); in verifyPlaylist() 171 while (c.moveToNext()) { in verifyPlaylist() 172 int pos = c.getPosition(); in verifyPlaylist() 175 members[pos], c.getInt(c.getColumnIndex(Members.AUDIO_ID))); in verifyPlaylist() [all …]
|
D | MediaStore_Images_ThumbnailsTest.java | 77 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, in testQueryInternalThumbnails() local 79 int previousMicroKindCount = c.getCount(); in testQueryInternalThumbnails() 80 c.close(); in testQueryInternalThumbnails() 93 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryInternalThumbnails() 94 c.moveToFirst(); in testQueryInternalThumbnails() 95 assertEquals(1, c.getCount()); in testQueryInternalThumbnails() 96 assertEquals(Thumbnails.MINI_KIND, c.getInt(c.getColumnIndex(Thumbnails.KIND))); in testQueryInternalThumbnails() 97 assertEquals(path, c.getString(c.getColumnIndex(Thumbnails.DATA))); in testQueryInternalThumbnails() 100 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.INTERNAL_CONTENT_URI, in testQueryInternalThumbnails() 102 assertEquals(previousMicroKindCount, c.getCount()); in testQueryInternalThumbnails() [all …]
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 42 Cursor c = null; in testGetContentUri() local 45 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 46 c.close(); in testGetContentUri() 50 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 51 c.close(); in testGetContentUri() 72 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums() local 74 c.moveToFirst(); in testStoreAudioArtistsAlbums() 75 Long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); in testStoreAudioArtistsAlbums() 76 c.close(); in testStoreAudioArtistsAlbums() 90 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums() [all …]
|
D | MediaStore_Audio_AlbumsTest.java | 49 Cursor c = null; in testGetContentUri() local 50 assertNotNull(c = mContentResolver.query( in testGetContentUri() 53 c.close(); in testGetContentUri() 54 assertNotNull(c = mContentResolver.query( in testGetContentUri() 57 c.close(); in testGetContentUri() 91 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() local 93 assertEquals(1, c.getCount()); in testStoreAudioAlbums() 94 c.moveToFirst(); in testStoreAudioAlbums() 95 long id = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums() 97 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Albums.ALBUM))); in testStoreAudioAlbums() [all …]
|
D | MediaStore_Audio_ArtistsTest.java | 40 Cursor c = null; in testGetContentUri() local 41 assertNotNull(c = mContentResolver.query( in testGetContentUri() 44 c.close(); in testGetContentUri() 45 assertNotNull(c = mContentResolver.query( in testGetContentUri() 48 c.close(); in testGetContentUri() 80 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists() local 81 assertEquals(1, c.getCount()); in testStoreAudioArtists() 82 c.moveToFirst(); in testStoreAudioArtists() 84 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Artists.ARTIST))); in testStoreAudioArtists() 85 long id = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists() [all …]
|
D | MediaStore_Audio_PlaylistsTest.java | 42 Cursor c = null; in testGetContentUri() local 43 assertNotNull(c = mContentResolver.query( in testGetContentUri() 46 c.close(); in testGetContentUri() 50 assertNotNull(c = mContentResolver.query( in testGetContentUri() 53 c.close(); in testGetContentUri() 79 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() local 80 assertEquals(1, c.getCount()); in testStoreAudioPlaylistsExternal() 81 c.moveToFirst(); in testStoreAudioPlaylistsExternal() 82 assertEquals("My favourites", c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal() 84 c.getString(c.getColumnIndex(Playlists.DATA))); in testStoreAudioPlaylistsExternal() [all …]
|
D | Settings_NameValueTableTest.java | 35 Cursor c = cr.query(uri, null, null, null, null); in testPutString() local 37 assertNotNull(c); in testPutString() 38 int origCount = c.getCount(); in testPutString() 39 c.close(); in testPutString() 42 c = cr.query(uri, null, null, null, null); in testPutString() 43 assertNotNull(c); in testPutString() 44 assertEquals(origCount + 1, c.getCount()); in testPutString() 45 c.close(); in testPutString() 49 c = cr.query(uri, null, selection, null, null); in testPutString() 50 assertNotNull(c); in testPutString() [all …]
|
D | MediaStore_Audio_GenresTest.java | 42 Cursor c = null; in testGetContentUri() local 43 assertNotNull(c = mContentResolver.query( in testGetContentUri() 46 c.close(); in testGetContentUri() 48 assertNotNull(c = mContentResolver.query( in testGetContentUri() 51 c.close(); in testGetContentUri() 71 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal() local 72 assertEquals(1, c.getCount()); in testStoreAudioGenresExternal() 73 c.moveToFirst(); in testStoreAudioGenresExternal() 74 assertEquals("POP", c.getString(c.getColumnIndex(Genres.NAME))); in testStoreAudioGenresExternal() 75 assertTrue(c.getLong(c.getColumnIndex(Genres._ID)) > 0); in testStoreAudioGenresExternal() [all …]
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | DatabaseStatementTest.java | 86 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testExecuteStatement() local 87 assertEquals(0, c.getCount()); in testExecuteStatement() 88 c.deactivate(); in testExecuteStatement() 140 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementLongBinding() local 141 int numCol = c.getColumnIndexOrThrow("num"); in testStatementLongBinding() 142 c.moveToFirst(); in testStatementLongBinding() 144 long num = c.getLong(numCol); in testStatementLongBinding() 146 c.moveToNext(); in testStatementLongBinding() 148 c.close(); in testStatementLongBinding() 162 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementStringBinding() local [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | TimeUtilsTest.java | 38 Calendar c = Calendar.getInstance(tz); in testUnitedStates() local 41 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00); in testUnitedStates() 42 guess = guessTimeZone(c, "us"); in testUnitedStates() 45 c.set(2009, Calendar.JANUARY, 20, 12, 00, 00); in testUnitedStates() 46 guess = guessTimeZone(c, "us"); in testUnitedStates() 59 Calendar c = Calendar.getInstance(tz); in testWeirdUnitedStates() local 62 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00); in testWeirdUnitedStates() 63 guess = guessTimeZone(c, "us"); in testWeirdUnitedStates() 75 Calendar c = Calendar.getInstance(tz); in testOld() local 78 c.set(2005, Calendar.OCTOBER, 20, 12, 00, 00); in testOld() [all …]
|
/cts/tools/signature-tools/test/signature/converter/ |
D | ConvertEnumTest.java | 59 IClassDefinition c = ModelUtil.getClass(sigPackage, "A"); in testEnum1() local 60 assertNotNull(c); in testEnum1() 61 assertTrue(c.getKind() == Kind.ENUM); in testEnum1() 63 Set<IEnumConstant> constants = c.getEnumConstants(); in testEnum1() 96 IClassDefinition c = ModelUtil.getClass(sigPackage, "A"); in testEnum2() local 97 assertNotNull(c); in testEnum2() 98 assertTrue(c.getKind() == Kind.ENUM); in testEnum2() 100 Set<IEnumConstant> constants = c.getEnumConstants(); in testEnum2() 103 Set<IField> fields = c.getFields(); in testEnum2() 105 IField field = c.getFields().iterator().next(); in testEnum2() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ColorStateListTest.java | 37 ColorStateList c = new ColorStateList(state, colors); in testColorStateList() local 38 assertTrue(c.isStateful()); in testColorStateList() 39 assertEquals(Color.RED, c.getDefaultColor()); in testColorStateList() 42 final ColorStateList c1 = c.withAlpha(alpha); in testColorStateList() 51 c = ColorStateList.createFromXml(res, res.getXml(xmlId)); in testColorStateList() 52 assertEquals(colorInXml, c.getDefaultColor()); in testColorStateList() 53 assertEquals(0, c.describeContents()); in testColorStateList() 54 assertFalse(c.isStateful()); in testColorStateList() 55 assertNotNull(c.toString()); in testColorStateList() 56 assertEquals(colorInXml, c.getColorForState(new int[]{0}, 0)); in testColorStateList() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | HexEncoding.java | 82 private static int getHexadecimalDigitValue(char c) { in getHexadecimalDigitValue() argument 83 if ((c >= 'a') && (c <= 'f')) { in getHexadecimalDigitValue() 84 return (c - 'a') + 0x0a; in getHexadecimalDigitValue() 85 } else if ((c >= 'A') && (c <= 'F')) { in getHexadecimalDigitValue() 86 return (c - 'A') + 0x0a; in getHexadecimalDigitValue() 87 } else if ((c >= '0') && (c <= '9')) { in getHexadecimalDigitValue() 88 return c - '0'; in getHexadecimalDigitValue() 91 "Invalid hexadecimal digit at position : '" + c + "' (0x" + Integer.toHexString(c) + ")"); in getHexadecimalDigitValue()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | MockConference.java | 52 for (Connection c : getConnections()) { in onDisconnect() 53 c.setDisconnected(new DisconnectCause(DisconnectCause.REMOTE)); in onDisconnect() 54 c.destroy(); in onDisconnect() 77 for (Connection c : getConnections()) { in onMerge() 78 c.setCallerDisplayName( in onMerge() 90 for (Connection c : getConnections()) { in onSwap() 91 c.setCallerDisplayName( in onSwap() 102 for (Connection c : getConnections()) { in onHold() 103 c.setOnHold(); in onHold() 114 for (Connection c : getConnections()) { in onUnhold() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 142 for (CameraCharacteristics c : mCharacteristics) { in testAvailableStreamConfigs() 144 c.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in testAvailableStreamConfigs() 149 int[] actualCapabilities = c.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in testAvailableStreamConfigs() 175 c, CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in testAvailableStreamConfigs() 177 Integer hwLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in testAvailableStreamConfigs() 272 for (CameraCharacteristics c : mCharacteristics) { in testKeys() 279 List<CameraCharacteristics.Key<?>> allKeys = c.getKeys(); in testKeys() 288 mCollector.expectKeyValueNotNull(c, key); in testKeys() 309 …expectKeyAvailable(c, CameraCharacteristics.COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES , OPT … in testKeys() 310 …expectKeyAvailable(c, CameraCharacteristics.CONTROL_AVAILABLE_MODES , OPT … in testKeys() [all …]
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 663 int c = nextNonWhitespace(); in nextValue() local 664 switch (c) { in nextValue() 676 value = nextString((char) c); in nextValue() 711 int c = buffer[pos++]; in nextNonWhitespace() local 712 switch (c) { in nextNonWhitespace() 721 return c; in nextNonWhitespace() 743 return c; in nextNonWhitespace() 757 return c; in nextNonWhitespace() 777 char c = buffer[pos++]; in skipToEndOfLine() local 778 if (c == '\r' || c == '\n') { in skipToEndOfLine() [all …]
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | IoUtils.java | 25 public static void closeQuietly(Closeable c) { in closeQuietly() argument 26 if (c != null) { in closeQuietly() 28 c.close(); in closeQuietly() 34 public static void closeQuietly(Socket c) { in closeQuietly() argument 35 if (c != null) { in closeQuietly() 37 c.close(); in closeQuietly()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 113 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_M() local 114 assertEquals("D", DateFormat.format("MMMMM", c)); in test_format_M() 115 assertEquals("December", DateFormat.format("MMMM", c)); in test_format_M() 116 assertEquals("Dec", DateFormat.format("MMM", c)); in test_format_M() 117 assertEquals("12", DateFormat.format("MM", c)); in test_format_M() 118 assertEquals("12", DateFormat.format("M", c)); in test_format_M() 123 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_L() local 124 assertEquals("D", DateFormat.format("LLLLL", c)); in test_format_L() 125 assertEquals("December", DateFormat.format("LLLL", c)); in test_format_L() 126 assertEquals("Dec", DateFormat.format("LLL", c)); in test_format_L() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | PhoneNumberUtilsTest.java | 251 for (char c = '0'; c <= '9'; c++) { in testJudgeMethods() 252 assertTrue(PhoneNumberUtils.is12Key(c)); in testJudgeMethods() 253 assertTrue(PhoneNumberUtils.isDialable(c)); in testJudgeMethods() 254 assertTrue(PhoneNumberUtils.isISODigit(c)); in testJudgeMethods() 255 assertTrue(PhoneNumberUtils.isNonSeparator(c)); in testJudgeMethods() 256 assertTrue(PhoneNumberUtils.isReallyDialable(c)); in testJudgeMethods() 258 char c = '*'; in testJudgeMethods() local 259 assertTrue(PhoneNumberUtils.is12Key(c)); in testJudgeMethods() 260 assertTrue(PhoneNumberUtils.isDialable(c)); in testJudgeMethods() 261 assertTrue(PhoneNumberUtils.isNonSeparator(c)); in testJudgeMethods() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RsUnpackColor8888Test.java | 53 Float4 c = rs_UnpackColor8888(inValues); in testRsUnpackColor8888RGB() local 54 refArray[i] = c.x; in testRsUnpackColor8888RGB() 55 refArray[i + 1] = c.y; in testRsUnpackColor8888RGB() 56 refArray[i + 2] = c.z; in testRsUnpackColor8888RGB() 57 refArray[i + 3] = c.w; in testRsUnpackColor8888RGB() 64 private static Float4 rs_UnpackColor8888(byte[] c) { in rs_UnpackColor8888() argument 66 ret.x *= (c[0] & 0xff); in rs_UnpackColor8888() 67 ret.y *= (c[1] & 0xff); in rs_UnpackColor8888() 68 ret.z *= (c[2] & 0xff); in rs_UnpackColor8888() 69 ret.w *= (c[3] & 0xff); in rs_UnpackColor8888()
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 30 8c:96:0a:3a:45:25:87:67 43 f5:3d:1a:72:82:e6:2e:6c:a6:8a:66:a9:a4:0a:52: 47 df:22:80:99:30:58:2c:61:85:02:e7:4f:f8:7a:db: 49 0e:2e:99:5c:92:29:ca:0e:ef:df:b8:e6:b5:f8:75: 50 7f:dd:5f:7b:eb:7c:a1:39:a2:8b:43:2e:f4:f2:71: 52 66:df:8c:b5:92:1d:87:61:17:09:02:4d:a6:2c:b9: 54 c3:68:2a:23:5b:dc:d8:b2:1f:29:d9:f3:8f:55:0c: 55 1d:47:fd:8f:68:8c:ef:f7:c0:05:a9:70:39:cf:fb: 69 7b:71:e1:4c:ac:bf:08:e3:08:72:e6:fd:8c:db:bd:84:01:ac: 70 b6:a3:40:1d:2a:c6:45:95:4a:4c:de:a2:77:5e:fa:2c:2e:a7: [all …]
|