Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_Artists_AlbumsTest.java79 Cursor c = null; in testGetContentUri() local
81 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri()
82 c.close(); in testGetContentUri()
90 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums() local
92 c.moveToFirst(); in testStoreAudioArtistsAlbums()
93 Long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); in testStoreAudioArtistsAlbums()
94 c.close(); in testStoreAudioArtistsAlbums()
106 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
107 assertEquals(1, c.getCount()); in testStoreAudioArtistsAlbums()
108 c.moveToFirst(); in testStoreAudioArtistsAlbums()
[all …]
DMediaStore_Audio_Genres_MembersTest.java80 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp() local
81 c.moveToFirst(); in setUp()
82 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); in setUp()
83 c.close(); in setUp()
86 c = mContentResolver.query(uri, null, null, null, null); in setUp()
87 c.moveToFirst(); in setUp()
88 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); in setUp()
89 c.close(); in setUp()
104 Cursor c = null; in testGetContentUri() local
105 assertNotNull(c = mContentResolver.query( in testGetContentUri()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java134 Cursor c = mContentResolver.query(uri, null, null, null, null); in insertAudioItem() local
135 c.moveToFirst(); in insertAudioItem()
136 long id = c.getLong(c.getColumnIndex(Media._ID)); in insertAudioItem()
137 c.close(); in insertAudioItem()
184 Cursor c = mContentResolver.query(playlistMembersUri, in verifyPlaylist() local
192 members.length, c.getCount()); in verifyPlaylist()
200 ordering.length, c.getCount()); in verifyPlaylist()
202 while (c.moveToNext()) { in verifyPlaylist()
203 int pos = c.getPosition(); in verifyPlaylist()
206 members[pos], c.getInt(c.getColumnIndex(Members.AUDIO_ID))); in verifyPlaylist()
[all …]
DMediaStore_Audio_MediaTest.java89 Cursor c = null; in testGetContentUri() local
90 assertNotNull(c = mContentResolver.query( in testGetContentUri()
93 c.close(); in testGetContentUri()
101 Cursor c = null; in testGetContentUriForPath() local
103 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null, in testGetContentUriForPath()
105 c.close(); in testGetContentUriForPath()
108 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null, in testGetContentUriForPath()
110 c.close(); in testGetContentUriForPath()
131 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioMedia() local
132 assertEquals(1, c.getCount()); in testStoreAudioMedia()
[all …]
DMediaStore_Video_MediaTest.java101 Cursor c = null; in testGetContentUri() local
102 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
104 c.close(); in testGetContentUri()
105 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
107 c.close(); in testGetContentUri()
154 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreVideoMediaExternal() local
155 assertEquals(1, c.getCount()); in testStoreVideoMediaExternal()
156 c.moveToFirst(); in testStoreVideoMediaExternal()
157 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreVideoMediaExternal()
159 assertEquals("cts", c.getString(c.getColumnIndex(Media.ALBUM))); in testStoreVideoMediaExternal()
[all …]
DMediaStore_Audio_ArtistsTest.java72 Cursor c = null; in testGetContentUri() local
73 assertNotNull(c = mContentResolver.query( in testGetContentUri()
76 c.close(); in testGetContentUri()
96 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists() local
97 assertEquals(1, c.getCount()); in testStoreAudioArtists()
98 c.moveToFirst(); in testStoreAudioArtists()
100 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Artists.ARTIST))); in testStoreAudioArtists()
101 long id = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists()
103 assertNotNull(c.getString(c.getColumnIndex(Artists.ARTIST_KEY))); in testStoreAudioArtists()
104 assertEquals(1, c.getInt(c.getColumnIndex(Artists.NUMBER_OF_ALBUMS))); in testStoreAudioArtists()
[all …]
DMediaStore_Audio_AlbumsTest.java83 Cursor c = null; in testGetContentUri() local
84 assertNotNull(c = mContentResolver.query( in testGetContentUri()
87 c.close(); in testGetContentUri()
109 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() local
111 assertEquals(1, c.getCount()); in testStoreAudioAlbums()
112 c.moveToFirst(); in testStoreAudioAlbums()
113 long id = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums()
115 assertFalse(c.isNull(c.getColumnIndex(Albums.ALBUM_ID))); in testStoreAudioAlbums()
116 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Albums.ALBUM))); in testStoreAudioAlbums()
117 assertNull(c.getString(c.getColumnIndex(Albums.ALBUM_ART))); in testStoreAudioAlbums()
[all …]
DMediaStore_Audio_PlaylistsTest.java72 Cursor c = null; in testGetContentUri() local
73 assertNotNull(c = mContentResolver.query( in testGetContentUri()
76 c.close(); in testGetContentUri()
92 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() local
93 assertEquals(1, c.getCount()); in testStoreAudioPlaylistsExternal()
94 c.moveToFirst(); in testStoreAudioPlaylistsExternal()
96 c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal()
98 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); in testStoreAudioPlaylistsExternal()
100 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); in testStoreAudioPlaylistsExternal()
101 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); in testStoreAudioPlaylistsExternal()
[all …]
DMediaStore_Images_ThumbnailsTest.java147 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, in testQueryExternalThumbnails() local
149 int previousMicroKindCount = c.getCount(); in testQueryExternalThumbnails()
150 c.close(); in testQueryExternalThumbnails()
167 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryExternalThumbnails()
168 c.moveToFirst(); in testQueryExternalThumbnails()
169 assertEquals(1, c.getCount()); in testQueryExternalThumbnails()
170 assertEquals(Thumbnails.MINI_KIND, c.getInt(c.getColumnIndex(Thumbnails.KIND))); in testQueryExternalThumbnails()
171 assertEquals(path, c.getString(c.getColumnIndex(Thumbnails.DATA))); in testQueryExternalThumbnails()
174 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.EXTERNAL_CONTENT_URI, in testQueryExternalThumbnails()
176 assertEquals(previousMicroKindCount, c.getCount()); in testQueryExternalThumbnails()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dmd5_utils.cpp160 /*register*/ UWORD32 a, b, c, d; in MD5Transform() local
164 c = buf[2]; in MD5Transform()
167 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform()
168 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform()
169 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform()
170 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform()
171 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform()
172 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform()
173 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform()
174 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java36 final ColorStateList c = new ColorStateList(state, colors); in testConstructor() local
37 assertTrue(c.isStateful()); in testConstructor()
38 assertEquals(Color.RED, c.getDefaultColor()); in testConstructor()
46 final ColorStateList c = ColorStateList.createFromXml(res, res.getXml(xmlId)); in testCreateFromXml() local
47 assertEquals(colorInXml, c.getDefaultColor()); in testCreateFromXml()
48 assertEquals(0, c.describeContents()); in testCreateFromXml()
49 assertFalse(c.isStateful()); in testCreateFromXml()
50 assertNotNull(c.toString()); in testCreateFromXml()
51 assertEquals(colorInXml, c.getColorForState(new int[]{0}, 0)); in testCreateFromXml()
61 final ColorStateList c = ColorStateList.createFromXml(res, res.getXml(xmlId), theme); in testCreateFromXmlThemed() local
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DDatabaseStatementTest.java86 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/telephony/current/src/android/telephony/cts/util/
DCarrierPrivilegeUtils.java72 CarrierPrivilegeReceiver(Context c, int subId, String hash, boolean gain) { in CarrierPrivilegeReceiver() argument
73 mContext = c; in CarrierPrivilegeReceiver()
87 public void onReceive(Context c, Intent intent) { in onReceive() argument
100 c.getSystemService(CarrierConfigManager.class).getConfigForSubId(mSubId); in onReceive()
106 if (hasCarrierPrivileges(c, mSubId) == mGain) { in onReceive()
120 private static boolean hasCarrierPrivileges(Context c, int subId) { in hasCarrierPrivileges() argument
123 return c.getSystemService(TelephonyManager.class) in hasCarrierPrivileges()
128 private static String getCertHashForThisPackage(final Context c) throws Exception { in getCertHashForThisPackage() argument
129 final PackageInfo pkgInfo = c.getPackageManager() in getCertHashForThisPackage()
130 .getPackageInfo(c.getOpPackageName(), PackageManager.GET_SIGNATURES); in getCertHashForThisPackage()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DIccUtils.java78 public static int hexCharToInt(char c) { in hexCharToInt() argument
79 if (c >= '0' && c <= '9') return (c - '0'); in hexCharToInt()
80 if (c >= 'A' && c <= 'F') return (c - 'A' + 10); in hexCharToInt()
81 if (c >= 'a' && c <= 'f') return (c - 'a' + 10); in hexCharToInt()
83 throw new RuntimeException("invalid hex char '" + c + "'"); in hexCharToInt()
/cts/tests/tests/keystore/src/android/keystore/cts/
DHexEncoding.java82 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/provider/src/android/provider/cts/settings/
DSettings_NameValueTableTest.java52 Cursor c = cr.query(uri, null, null, null, null); in testPutString() local
54 assertNotNull(c); in testPutString()
55 c.close(); in testPutString()
58 c = cr.query(uri, null, null, null, null); in testPutString()
59 assertNotNull(c); in testPutString()
60 c.close(); in testPutString()
64 c = cr.query(uri, null, selection, null, null); in testPutString()
65 assertNotNull(c); in testPutString()
66 assertEquals(1, c.getCount()); in testPutString()
67 c.moveToFirst(); in testPutString()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfo_CollectionInfoTest.java48 CollectionInfo c; in testObtain() local
50 c = CollectionInfo.obtain(0, 1, true); in testObtain()
51 assertNotNull(c); in testObtain()
52 verifyCollectionInfo(c, 0, 1, true, CollectionInfo.SELECTION_MODE_NONE); in testObtain()
54 c = CollectionInfo.obtain(1, 2, true, CollectionInfo.SELECTION_MODE_MULTIPLE); in testObtain()
55 assertNotNull(c); in testObtain()
56 verifyCollectionInfo(c, 1, 2, true, CollectionInfo.SELECTION_MODE_MULTIPLE); in testObtain()
62 CollectionInfo c; in testConstructor() local
64 c = new CollectionInfo(0, 1, true); in testConstructor()
65 verifyCollectionInfo(c, 0, 1, true, CollectionInfo.SELECTION_MODE_NONE); in testConstructor()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerLauncherCallbackTest.java134 final MyCallback c = new MyCallback(); in testRegisterAndUnRegister() local
136 getLauncherApps().registerCallback(c, handler); in testRegisterAndUnRegister()
137 getLauncherApps().unregisterCallback(c); in testRegisterAndUnRegister()
141 final MyCallback c = new MyCallback(mPackageContext1.getPackageName()); in testCallbacks() local
152 getLauncherApps().unregisterCallback(c); in testCallbacks()
155 c.reset(); in testCallbacks()
156 getLauncherApps().registerCallback(c, handler); in testCallbacks()
170 retryUntil(() -> c.isCalled(), "callback not called."); in testCallbacks()
171 c.assertCalled(mPackageContext1) in testCallbacks()
183 retryUntil(() -> c.isCalled(), "callback not called."); in testCallbacks()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_DirectoryTest.java69 private static String getString(Cursor c, String column) { in getString() argument
70 return c.getString(c.getColumnIndex(column)); in getString()
80 try (Cursor c = getContext().getContentResolver().query(Directory.CONTENT_URI, in waitForDirectorySetup() argument
84 if (c.getCount() == 0) { in waitForDirectorySetup()
88 assertTrue(c.moveToPosition(0)); in waitForDirectorySetup()
89 assertEquals(CtsGalProvider.GAL_PACKAGE_NAME, getString(c, Directory.PACKAGE_NAME)); in waitForDirectorySetup()
91 getString(c, Directory.DIRECTORY_AUTHORITY)); in waitForDirectorySetup()
92 assertEquals(CtsGalProvider.DISPLAY_NAME, getString(c, Directory.DISPLAY_NAME)); in waitForDirectorySetup()
93 assertEquals(CtsGalProvider.ACCOUNT_NAME, getString(c, Directory.ACCOUNT_NAME)); in waitForDirectorySetup()
94 assertEquals(CtsGalProvider.ACCOUNT_TYPE, getString(c, Directory.ACCOUNT_TYPE)); in waitForDirectorySetup()
[all …]
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java663 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/tests/tests/telecom/src/android/telecom/cts/
DMockConference.java67 for (Connection c : getConnections()) { in onDisconnect()
68 c.setDisconnected(new DisconnectCause(DisconnectCause.REMOTE)); in onDisconnect()
69 c.destroy(); in onDisconnect()
80 for (Connection c : getConnections()) { in onReject()
81 c.setDisconnected(new DisconnectCause(DisconnectCause.REJECTED)); in onReject()
82 c.destroy(); in onReject()
106 for (Connection c : getConnections()) { in onMerge()
107 c.setCallerDisplayName( in onMerge()
119 for (Connection c : getConnections()) { in onSwap()
120 c.setCallerDisplayName( in onSwap()
[all …]
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem30 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 …]
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java60 Cursor c = mTestSRSProvider.query(mTestUri, null, null, null, null); in testSearchRecentSuggestions() local
63 assertNotNull(c); in testSearchRecentSuggestions()
64 assertEquals(0, c.getCount()); in testSearchRecentSuggestions()
65 c.close(); in testSearchRecentSuggestions()
74 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions()
76 c.moveToFirst(); in testSearchRecentSuggestions()
77 assertEquals(query1, c in testSearchRecentSuggestions()
79 assertEquals(line1, c in testSearchRecentSuggestions()
81 c.close(); in testSearchRecentSuggestions()
99 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java168 CameraCharacteristics c = mCharacteristics.get(i); in testAvailableStreamConfigs() local
170 c.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in testAvailableStreamConfigs()
175 int[] actualCapabilities = c.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in testAvailableStreamConfigs()
218 c, CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in testAvailableStreamConfigs()
220 c, CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE); in testAvailableStreamConfigs()
225 Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING); in testAvailableStreamConfigs()
249 Integer hwLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in testAvailableStreamConfigs()
404 private void verifyCommonRecommendedConfiguration(String id, CameraCharacteristics c, in verifyCommonRecommendedConfiguration() argument
408 StreamConfigurationMap fullConfig = c.get( in verifyCommonRecommendedConfiguration()
513 private void verifyRecommendedPreviewConfiguration(String cameraId, CameraCharacteristics c, in verifyRecommendedPreviewConfiguration() argument
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRsUnpackColor8888Test.java61 Float4 c = rs_UnpackColor8888(inValues); in testRsUnpackColor8888RGB() local
62 refArray[i] = c.x; in testRsUnpackColor8888RGB()
63 refArray[i + 1] = c.y; in testRsUnpackColor8888RGB()
64 refArray[i + 2] = c.z; in testRsUnpackColor8888RGB()
65 refArray[i + 3] = c.w; in testRsUnpackColor8888RGB()
75 private static Float4 rs_UnpackColor8888(byte[] c) { in rs_UnpackColor8888() argument
77 ret.x *= (c[0] & 0xff); in rs_UnpackColor8888()
78 ret.y *= (c[1] & 0xff); in rs_UnpackColor8888()
79 ret.z *= (c[2] & 0xff); in rs_UnpackColor8888()
80 ret.w *= (c[3] & 0xff); in rs_UnpackColor8888()

12345678910>>...23