Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 39) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DActivityResultMultiplexedLatch.java44 private Latch(Entry entry) { in Latch() argument
45 mEntry = entry; in Latch()
86 Entry entry; in bindThread() local
93 entry = new Entry(requestCode); in bindThread()
94 mActivityEntries.put(requestCode, entry); in bindThread()
97 return new Latch(entry); in bindThread()
104 Entry entry; in onActivityResult() local
106 entry = mActivityEntries.remove(requestCode); in onActivityResult()
108 if (entry == null) { in onActivityResult()
112 entry.resultCode = resultCode; in onActivityResult()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DListeningPortsTest.java186 for (ParsedProcEntry entry : entries) { in assertNoAccessibleListeningPorts()
187 String addrPort = entry.localAddress.getHostAddress() + ':' + entry.port; in assertNoAccessibleListeningPorts()
189 if (isPortListening(entry.state, isTcp) in assertNoAccessibleListeningPorts()
191 && (!entry.localAddress.isLoopbackAddress() ^ loopback)) { in assertNoAccessibleListeningPorts()
193 + entry.localAddress.getHostAddress() + ", port=" in assertNoAccessibleListeningPorts()
194 + entry.port + ", UID=" + entry.uid in assertNoAccessibleListeningPorts()
195 + " " + uidToPackage(entry.uid) + " in " in assertNoAccessibleListeningPorts()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiCoverage.java44 for (Map.Entry<String, ApiPackage> entry : mPackages.entrySet()) { in resolveSuperClasses()
45 ApiPackage pkg = entry.getValue(); in resolveSuperClasses()
DApiPackage.java84 Map.Entry<String, ApiClass> entry = it.next(); in resolveSuperClasses() local
85 ApiClass apiClass = entry.getValue(); in resolveSuperClasses()
/cts/tools/utils/cts/
Dtools.py207 entry = doc.createElement('Entry')
208 entry.setAttribute('name', package)
210 entry.setAttribute('exclude', ';'.join(self.excludedTestsMap[package]))
212 entry.setAttribute('include', ';'.join(self.includedTestsMap[package]))
213 plan.appendChild(entry)
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DFileUtil.java162 File entry = new File(context.getFilesDir(), name); in removeFileOrDir() local
163 if (entry.exists()) { in removeFileOrDir()
164 removeEntry(entry); in removeFileOrDir()
168 private static void removeEntry(File entry) { in removeEntry() argument
169 if (entry.isDirectory()) { in removeEntry()
170 String[] children = entry.list(); in removeEntry()
172 removeEntry(new File(entry, child)); in removeEntry()
175 Log.i(TAG, "delete file " + entry.getAbsolutePath()); in removeEntry()
176 entry.delete(); in removeEntry()
/cts/tests/tests/util/src/android/util/cts/
DArraySetTest.java130 for (E entry : set) { in compareSets()
131 assertTrue("ArraySet missing value: " + entry, array.contains(entry)); in compareSets()
135 for (E entry : array) { in compareSets()
136 assertTrue("ArraySet (via iterator) has unexpected value: " + entry, in compareSets()
137 set.contains(entry)); in compareSets()
142 E entry = array.valueAt(i); in compareSets() local
143 assertTrue("ArraySet (via valueAt) has unexpected value: " + entry, in compareSets()
144 set.contains(entry)); in compareSets()
184 for (E entry : set) { in dump()
185 Log.e(TAG, " " + entry); in dump()
DArrayMapTest.java154 for (Map.Entry entry : mapSet) { in compareMaps()
155 Object expValue = entry.getValue(); in compareMaps()
156 Object gotValue = array.get(entry.getKey()); in compareMaps()
159 + " at key " + entry.getKey()); in compareMaps()
227 Map.Entry entry = entryIt.next(); in validateArrayMap() local
228 Object value = entry.getKey(); in validateArrayMap()
234 value = entry.getValue(); in validateArrayMap()
302 for (Map.Entry entry : mapSet) { in dump()
303 Log.e("test", " " + entry.getKey() + " -> " + entry.getValue()); in dump()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeTestUtils.java48 final ZipEntry entry = new ZipEntry(srcFiles[i].getName()); in compressDirectory() local
49 zipOut.putNextEntry(entry); in compressDirectory()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp597 PsshEntry *entry = &info->entries[i]; in Java_android_media_cts_NativeDecoderTest_testPsshNative() local
599 entry->uuid[0], in Java_android_media_cts_NativeDecoderTest_testPsshNative()
600 entry->uuid[1], in Java_android_media_cts_NativeDecoderTest_testPsshNative()
601 entry->uuid[14], in Java_android_media_cts_NativeDecoderTest_testPsshNative()
602 entry->uuid[15], in Java_android_media_cts_NativeDecoderTest_testPsshNative()
603 entry->datalen); in Java_android_media_cts_NativeDecoderTest_testPsshNative()
605 AMediaCrypto *crypto = AMediaCrypto_new(entry->uuid, entry->data, entry->datalen); in Java_android_media_cts_NativeDecoderTest_testPsshNative()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1052 Entry entry = mKeyStore.getEntry(TEST_ALIAS_1, null); in testKeyStore_GetEntry_NullParams_Unencrypted_Success() local
1053 assertNotNull("Entry should exist", entry); in testKeyStore_GetEntry_NullParams_Unencrypted_Success()
1055 assertTrue("Should be a PrivateKeyEntry", entry instanceof PrivateKeyEntry); in testKeyStore_GetEntry_NullParams_Unencrypted_Success()
1057 PrivateKeyEntry keyEntry = (PrivateKeyEntry) entry; in testKeyStore_GetEntry_NullParams_Unencrypted_Success()
1068 Entry entry = mKeyStore.getEntry(TEST_ALIAS_1, null); in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success() local
1069 assertNotNull("Entry should exist", entry); in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success()
1071 assertTrue("Should be a PrivateKeyEntry", entry instanceof PrivateKeyEntry); in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success()
1073 PrivateKeyEntry keyEntry = (PrivateKeyEntry) entry; in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success()
1084 Entry entry = mKeyStore.getEntry(TEST_ALIAS_1, null); in testKeyStore_GetEntry_RSA_NullParams_Unencrypted_Success() local
1085 assertNotNull("Entry should exist", entry); in testKeyStore_GetEntry_RSA_NullParams_Unencrypted_Success()
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java650 MetadataEntry entry; in serialize() local
652 entry = serializeArrayEntry(keyType, keyObj, md); in serialize()
654 entry = serializeEntry(keyType, keyObj, md); in serialize()
669 if (entry != null && entry.key != null && entry.value != null in serialize()
670 && entry.value.toString() == null) { in serialize()
672 + entry.key); in serialize()
673 } else if (entry != null) { in serialize()
674 jsonObj.put(entry.key, entry.value); in serialize()
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerTest.java473 MediaScanEntry entry = encodingtestfiles[i]; in testEncodingDetection() local
474 String name = mContext.getResources().getResourceEntryName(entry.res); in testEncodingDetection()
476 writeFile(entry.res, path); in testEncodingDetection()
490 MediaScanEntry entry = encodingtestfiles[i]; in testEncodingDetection() local
491 String name = mContext.getResources().getResourceEntryName(entry.res); in testEncodingDetection()
500 String expected = entry.tags[j]; in testEncodingDetection()
521 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(entry.res); in testEncodingDetection()
533 if ("".equals(entry.tags[j])) { in testEncodingDetection()
538 Log.i("@@@", "tags: @@" + entry.tags[j] + "@@" + actual[j] + "@@"); in testEncodingDetection()
540 entry.tags[j], actual[j]); in testEncodingDetection()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java73 ZipEntry entry = new ZipEntry(baseName + ".xml"); in doInBackground() local
74 out.putNextEntry(entry); in doInBackground()
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/ui/
DMainFragment.java136 for (Map.Entry<String, List<Movie>> entry : data.entrySet()) { in buildRowAdapterItems()
138 List<Movie> list = entry.getValue(); in buildRowAdapterItems()
143 HeaderItem header = new HeaderItem(i, entry.getKey()); in buildRowAdapterItems()
/cts/suite/cts/deviceTests/browserbench/src/com/android/cts/browser/
DBrowserBenchTest.java163 for (Map.Entry<String, double[]> entry : mResultsMap.entrySet()) { in doTest()
164 String message = entry.getKey(); in doTest()
165 double[] scores = entry.getValue(); in doTest()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DAllocationCache.java179 for (Map.Entry<AllocationKey, List<Allocation>> entry : mAllocationMap.entrySet()) { in close()
180 List<Allocation> value = entry.getValue(); in close()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java490 MetadataEntry entry; in serialize() local
492 entry = serializeArrayEntry(keyType, keyObj, md); in serialize()
494 entry = serializeEntry(keyType, keyObj, md); in serialize()
504 if (entry != null && entry.key != null && entry.value != null in serialize()
505 && entry.value.toString() == null) { in serialize()
506 … Logt.w(TAG, "Error encountered serializing value for key: " + entry.key); in serialize()
507 } else if (entry != null) { in serialize()
508 jsonObj.put(entry.key, entry.value); in serialize()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java94 for (Map.Entry<String, Expectation> entry : failures.entrySet()) { in get()
95 if (entry.getValue().matches(outcome)) { in get()
96 return entry.getValue(); in get()
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DXmlGenerator.java152 for (Map.Entry<String, String> entry : mAdditionalAttributes.entrySet()) { in writeTestPackage()
153 writer.append(String.format(" %s=\"%s\"", entry.getKey(), entry.getValue())); in writeTestPackage()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java154 for (String entry : mMessages) { in generateReport()
155 builder.append(entry); in generateReport()
/cts/hostsidetests/theme/src/android/theme/cts/
DThemeHostTest.java192 ZipEntry entry; in testThemes() local
193 while ((entry = zipInput.getNextEntry()) != null) { in testThemes()
194 final String name = entry.getName(); in testThemes()
/cts/tests/tests/view/src/android/view/cts/
DView_IdsTest.java39 EditText editText = (EditText) activity.findViewById(R.id.entry); in testIds()
/cts/tools/dasm/src/dasm/
DDasmCatchBuilder.java214 CatchTable.Entry entry = new CatchTable.Entry(from.getAddress(), to in build() local
216 result.set(i, entry); in build()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSingleSensorTests.java123 for (Entry<Integer, Object[]> entry : expectedProperties.entrySet()) { in testSensorProperties()
124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); in testSensorProperties()
126 if (entry.getValue()[0] != null) { in testSensorProperties()
127 int expected = (Integer) entry.getValue()[0]; in testSensorProperties()

12