Home
last modified time | relevance | path

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

1234

/cts/apps/CameraITS/tools/
Dhardware.py90 entry = {}
91 entry[self.KEY_NAME] = name
92 entry[self.KEY_VID] = int(vid, 16)
93 entry[self.KEY_PID] = int(pid, 16)
98 entry[self.KEY_SN] = None
99 entry[self.KEY_CFG] = int(cfg)
100 entry[self.KEY_INF] = int(inf)
101 entry[self.KEY_TTY] = None
103 self._device_list.append(entry)
208 for entry in dir_list:
[all …]
/cts/hostsidetests/gputools/layers/jni/
DglesLayer.cpp56 EGLFuncPointer entry = funcMap["glCompileShader"]; in glesLayer_glCompileShaderA() local
58 PFNGLCOMPILESHADERPROC next = reinterpret_cast<PFNGLCOMPILESHADERPROC>(entry); in glesLayer_glCompileShaderA()
69 EGLFuncPointer entry = funcMap["glCompileShader"]; in glesLayer_glCompileShaderB() local
71 PFNGLCOMPILESHADERPROC next = reinterpret_cast<PFNGLCOMPILESHADERPROC>(entry); in glesLayer_glCompileShaderB()
82 EGLFuncPointer entry = funcMap["glDrawArraysInstanced"]; in glesLayer_glDrawArraysInstanced() local
84 PFNGLDRAWARRAYSINSTANCEDPROC next = reinterpret_cast<PFNGLDRAWARRAYSINSTANCEDPROC>(entry); in glesLayer_glDrawArraysInstanced()
95 EGLFuncPointer entry = funcMap["glBindBuffer"]; in glesLayer_glBindBuffer() local
97 PFNGLBINDBUFFERPROC next = reinterpret_cast<PFNGLBINDBUFFERPROC>(entry); in glesLayer_glBindBuffer()
108 EGLFuncPointer entry = funcMap["glGetString"]; in glesLayer_glGetString() local
110 PFNGLGETSTRINGPROC next = reinterpret_cast<PFNGLGETSTRINGPROC>(entry); in glesLayer_glGetString()
[all …]
/cts/tests/sensor/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/tools/release-parser/src/com/android/cts/releaseparser/
DJsonPrinter.java95 for (Entry entry : entries) { in writeTargetFileInfo()
97 mJsonWriter.name("name").value(entry.getName()); in writeTargetFileInfo()
98 mJsonWriter.name("type").value(entry.getType().toString()); in writeTargetFileInfo()
99 mJsonWriter.name("size").value(entry.getSize()); in writeTargetFileInfo()
100 mJsonWriter.name("content_id").value(entry.getContentId()); in writeTargetFileInfo()
101 mJsonWriter.name("code_id").value(entry.getCodeId()); in writeTargetFileInfo()
102 mJsonWriter.name("abi_architecture").value(entry.getAbiArchitecture()); in writeTargetFileInfo()
103 mJsonWriter.name("abi_bits").value(entry.getAbiBits()); in writeTargetFileInfo()
104 mJsonWriter.name("parent_folder").value(entry.getParentFolder()); in writeTargetFileInfo()
105 mJsonWriter.name("relative_path").value(entry.getRelativePath()); in writeTargetFileInfo()
[all …]
DDepCsvPrinter.java61 for (Entry entry : mRelContent.getEntries().values()) { in compareEntries()
62 if (entry.getType() == Entry.EntryType.EXE) { in compareEntries()
63 String exeName = entry.getName(); in compareEntries()
65 writeCsv(entry, fileName); in compareEntries()
77 for (Entry entry : mRelContent.getEntries().values()) { in compareEntry()
78 if (entry.getName().equals(exeName)) { in compareEntry()
79 writeCsv(entry, fileName); in compareEntry()
85 public void writeCsv(Entry entry, String fileName) { in writeCsv() argument
87 String exeName = entry.getName(); in writeCsv()
93 mBits = entry.getAbiBits(); in writeCsv()
[all …]
DDepPrinter.java59 for (Entry entry : mRelContent.getEntries().values()) { in compareEntries()
60 if (entry.getType() == Entry.EntryType.EXE) { in compareEntries()
61 String exeName = entry.getName(); in compareEntries()
63 writeDigraph(entry, fileName); in compareEntries()
75 for (Entry entry : mRelContent.getEntries().values()) { in compareEntry()
76 if (entry.getName().equals(exeName)) { in compareEntry()
77 writeDigraph(entry, fileName); in compareEntry()
83 public void writeDigraph(Entry entry, String fileName) { in writeDigraph() argument
85 String exeName = entry.getName(); in writeDigraph()
90 mBits = entry.getAbiBits(); in writeDigraph()
[all …]
DReleaseParser.java213 for (Entry entry : entryList) { in getFolderContentId()
214 md.update(entry.getContentId().getBytes(StandardCharsets.UTF_8)); in getFolderContentId()
232 for (Entry entry : getFileEntries()) { in writeRelesaeContentCsvFile()
236 entry.getType(), in writeRelesaeContentCsvFile()
237 entry.getName(), in writeRelesaeContentCsvFile()
238 entry.getSize(), in writeRelesaeContentCsvFile()
239 entry.getRelativePath(), in writeRelesaeContentCsvFile()
240 entry.getContentId(), in writeRelesaeContentCsvFile()
241 entry.getParentFolder(), in writeRelesaeContentCsvFile()
242 entry.getCodeId(), in writeRelesaeContentCsvFile()
[all …]
DTestSuiteTradefedParser.java114 ZipEntry entry = entries.nextElement(); in praseKnownFailure() local
116 if (entry.getName().endsWith(KNOWN_FAILURES_XML_FILE)) { in praseKnownFailure()
120 InputStream xmlStream = zip.getInputStream(entry); in praseKnownFailure()
153 ZipEntry entry = entries.nextElement(); in parseFile() local
155 if (entry.getName().equals(TEST_SUITE_INFO_PROPERTIES_FILE)) { in parseFile()
156 InputStream inStream = zip.getInputStream(entry); in parseFile()
DZipParser.java131 final ZipEntry entry = entries.nextElement(); in parseFileContent() local
132 final String name = entry.getName(); in parseFileContent()
136 entryBuilder.setContentId(String.format(CODE_ID_FORMAT, entry.hashCode())); in parseFileContent()
137 entryBuilder.setSize(entry.getSize()); in parseFileContent()
138 if (entry.isDirectory()) { in parseFileContent()
142 appendToCodeID(entry); in parseFileContent()
147 final File soFile = getFilefromZip(zFile, entry); in parseFileContent()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java153 for (VirtualDisplayEntry entry : mVirtualDisplays.values()) { in destroyVirtualDisplays()
154 Log.d(TAG, "destroying:" + entry.display); in destroyVirtualDisplays()
155 entry.display.release(); in destroyVirtualDisplays()
156 root.removeView(entry.surfaceView); in destroyVirtualDisplays()
165 final VirtualDisplayRequest entry = in surfaceCreated() local
168 if (entry == null) { in surfaceCreated()
172 final int densityDpi = entry.extras.getInt(KEY_DENSITY_DPI, DEFAULT_DENSITY_DPI); in surfaceCreated()
173 final boolean resizeDisplay = entry.extras.getBoolean(KEY_RESIZE_DISPLAY); in surfaceCreated()
174 final String launchComponentName = entry.extras.getString(KEY_LAUNCH_TARGET_COMPONENT); in surfaceCreated()
185 = entry.extras.getBoolean(KEY_CAN_SHOW_WITH_INSECURE_KEYGUARD); in surfaceCreated()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DParsedAttestationRecord.java113 ASN1Primitive entry = findAuthorizationListEntry(softwareEnforcedAuthorizations, tag); in getSoftwareAuthorizationInteger() local
114 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getSoftwareAuthorizationInteger()
118 ASN1Primitive entry = findAuthorizationListEntry(teeEnforcedAuthorizations, tag); in getTeeAuthorizationInteger() local
119 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getTeeAuthorizationInteger()
122 ASN1Primitive entry = findAuthorizationListEntry(softwareEnforcedAuthorizations, tag); in getSoftwareAuthorizationBoolean() local
123 return entry != null; in getSoftwareAuthorizationBoolean()
127 ASN1Primitive entry = findAuthorizationListEntry(teeEnforcedAuthorizations, tag); in getTeeAuthorizationBoolean() local
128 return entry != null; in getTeeAuthorizationBoolean()
132 …ASN1OctetString entry = (ASN1OctetString) findAuthorizationListEntry(softwareEnforcedAuthorization… in getSoftwareAuthorizationByteString() local
133 return Optional.ofNullable(entry).map(ASN1OctetString::getOctets); in getSoftwareAuthorizationByteString()
[all …]
/cts/libs/input/src/com/android/cts/input/
DHidJsonParser.java178 JSONObject entry = events.getJSONObject(i); in getTestData() local
181 if (entry.has("keycode")) { in getTestData()
182 event = parseKeyEvent(entry); in getTestData()
183 } else if (entry.has("axes")) { in getTestData()
184 event = parseMotionEvent(entry); in getTestData()
187 "Input event is not specified correctly. Received: " + entry); in getTestData()
199 private KeyEvent parseKeyEvent(JSONObject entry) throws JSONException { in parseKeyEvent() argument
200 int action = keyActionFromString(entry.getString("action")); in parseKeyEvent()
201 int keyCode = KeyEvent.keyCodeFromString(entry.getString("keycode")); in parseKeyEvent()
205 private MotionEvent parseMotionEvent(JSONObject entry) throws JSONException { in parseMotionEvent() argument
[all …]
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java105 for (ParsedProcEntry entry : entries) { in testNoAccessibleListeningPorts()
106 String addrPort = entry.localAddress.getHostAddress() + ':' + entry.port; in testNoAccessibleListeningPorts()
107 String addrUid = entry.localAddress.getHostAddress() + ' ' + entry.uid; in testNoAccessibleListeningPorts()
108 String addrPortUid = addrPort + ' ' + entry.uid; in testNoAccessibleListeningPorts()
110 if (isPortListening(entry.state, isTcp) in testNoAccessibleListeningPorts()
112 && (!entry.localAddress.isLoopbackAddress() ^ loopback)) { in testNoAccessibleListeningPorts()
113 if (isTcp && !isTcpConnectable(entry.localAddress, entry.port)) { in testNoAccessibleListeningPorts()
117 int appId = UserHandle.getAppId(entry.uid); in testNoAccessibleListeningPorts()
123 + entry.localAddress.getHostAddress() + ", port=" in testNoAccessibleListeningPorts()
124 + entry.port + ", UID=" + entry.uid in testNoAccessibleListeningPorts()
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DVirtualPath.java41 public static ZipEntryPath get(ZipFile zip, ZipEntry entry) { in get() argument
42 return new ZipEntryPath(zip, entry); in get()
88 private final ZipEntry entry; field in VirtualPath.ZipEntryPath
90 private ZipEntryPath(ZipFile zip, ZipEntry entry) { in ZipEntryPath() argument
92 this.entry = entry; in ZipEntryPath()
97 return zip.getInputStream(entry); in newInputStream()
102 return "zip:file:" + zip.getName() + "!/" + entry.getName(); in toString()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDropBoxReceiver.java48 final DropBoxManager.Entry entry = in DropBoxReceiver()
50 if (entry == null) { in DropBoxReceiver()
53 Log.d(TAG, "ErrorsTest got message from drobpox: " + entry.getTag()); in DropBoxReceiver()
54 mStartMs = entry.getTimeMillis(); in DropBoxReceiver()
55 String stackTrace = entry.getText(64 * 1024); in DropBoxReceiver()
65 entry.close(); in DropBoxReceiver()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DApexSignatureVerificationTest.java126 for (Map.Entry<String, File> entry : mExtractedTestDirMap.entrySet()) { in testApexIncludePubKey()
127 final File pubKeyFile = FileUtil.findFile(entry.getValue(), APEX_PUB_KEY_NAME); in testApexIncludePubKey()
129 assertWithMessage("apex:" + entry.getKey() + " do not contain pubkey").that( in testApexIncludePubKey()
146 for (Map.Entry<String, File> entry : mExtractedTestDirMap.entrySet()) { in testApexPubKeyIsNotWellKnownKey()
147 final File pubKeyFile = FileUtil.findFile(entry.getValue(), APEX_PUB_KEY_NAME); in testApexPubKeyIsNotWellKnownKey()
171 for (Map.Entry<String, File> entry : mLocalApexFileMap.entrySet()) { in extractApexFiles()
172 final String testSrcDirPath = TEST_APEX_SOURCE_DIR_PREFIX + entry.getKey(); in extractApexFiles()
175 ZipUtil.extractZip(new ZipFile(entry.getValue()), apexDir); in extractApexFiles()
179 mExtractedTestDirMap.put(entry.getKey(), apexDir); in extractApexFiles()
232 for (Map.Entry<String, String> entry : mPreloadedApexPathMap.entrySet()) { in pullApexFiles()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestSuiteContentReport.java189 ZipEntry entry = entries.nextElement(); in parseKnownFailures() local
191 if (entry.getName().endsWith(KNOWN_FAILURES_XML_FILE)) { in parseKnownFailures()
195 InputStream xmlStream = zip.getInputStream(entry); in parseKnownFailures()
291 for (Entry entry: entryList) { in getFolderContentId()
292 md.update(entry.getContentId().getBytes(StandardCharsets.UTF_8)); in getFolderContentId()
330 for (Entry entry: tsContent.getFileEntriesList()) { in printTestSuiteContent()
332 i++, entry.getType(), entry.getName(), entry.getSize(), in printTestSuiteContent()
333 entry.getRelativePath(), entry.getId(), entry.getContentId(), in printTestSuiteContent()
334 entry.getParentId()); in printTestSuiteContent()
336 if (Entry.EntryType.CONFIG == entry.getType()) { in printTestSuiteContent()
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp295 ACameraMetadata_const_entry entry; in onCaptureCompleted() local
296 auto ret = ACameraMetadata_getConstEntry(result, ACAMERA_SYNC_FRAME_NUMBER, &entry); in onCaptureCompleted()
310 if (entry.data.i64[0] != entryCopy.data.i64[0]) { in onCaptureCompleted()
312 entry.data.i64[0], entryCopy.data.i64[0]); in onCaptureCompleted()
321 thiz->mLastCompletedFrameNumber = entry.data.i64[0]; in onCaptureCompleted()
335 ACameraMetadata_const_entry entry; in onLogicalCameraCaptureCompleted() local
336 auto ret = ACameraMetadata_getConstEntry(result, ACAMERA_SYNC_FRAME_NUMBER, &entry); in onLogicalCameraCaptureCompleted()
350 if (entry.data.i64[0] != entryCopy.data.i64[0]) { in onLogicalCameraCaptureCompleted()
352 entry.data.i64[0], entryCopy.data.i64[0]); in onLogicalCameraCaptureCompleted()
399 thiz->mLastCompletedFrameNumber = entry.data.i64[0]; in onLogicalCameraCaptureCompleted()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DKeyguardTestBase.java53 private static void assertDismissCallback(ComponentName testingComponentName, String entry) { in assertDismissCallback() argument
56 .getBoolean(entry)) { in assertDismissCallback()
59 logAlways("Waiting for " + entry + "... retry=" + retry); in assertDismissCallback()
62 fail("Waiting for " + entry + " failed"); in assertDismissCallback()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java164 File entry = new File(context.getFilesDir(), name); in removeFileOrDir() local
165 if (entry.exists()) { in removeFileOrDir()
166 removeEntry(entry); in removeFileOrDir()
170 private static void removeEntry(File entry) { in removeEntry() argument
171 if (entry.isDirectory()) { in removeEntry()
172 String[] children = entry.list(); in removeEntry()
174 removeEntry(new File(entry, child)); in removeEntry()
177 Log.i(TAG, "delete file " + entry.getAbsolutePath()); in removeEntry()
178 entry.delete(); in removeEntry()
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp238 for (const auto& entry : gNativeTestNames) { in Java_com_android_gtestrunner_GtestRunner_nRun() local
240 if (!entry.second.run) continue; in Java_com_android_gtestrunner_GtestRunner_nRun()
243 if (entry.second.nativeName.find("DISABLED_") == 0 || in Java_com_android_gtestrunner_GtestRunner_nRun()
244 entry.second.nativeName.find("/DISABLED_") != std::string::npos || in Java_com_android_gtestrunner_GtestRunner_nRun()
245 entry.second.nativeName.find(".DISABLED_") != std::string::npos) { in Java_com_android_gtestrunner_GtestRunner_nRun()
246 mangledNamesOfDisabledTests.push_back(entry.first); in Java_com_android_gtestrunner_GtestRunner_nRun()
249 filterStream << entry.second.nativeName << ":"; in Java_com_android_gtestrunner_GtestRunner_nRun()
/cts/tests/tests/graphics/jni/
DCameraTestHelpers.cpp129 ACameraMetadata_const_entry entry; in isCapabilitySupported() local
131 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES, &entry); in isCapabilitySupported()
132 for (uint32_t i = 0; i < entry.count; i++) { in isCapabilitySupported()
133 if (entry.data.u8[i] == cap) { in isCapabilitySupported()
/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/tests/tests/util/src/android/util/cts/
DArrayMapTest.java171 for (Map.Entry entry : mapSet) { in compareMaps()
172 Object expValue = entry.getValue(); in compareMaps()
173 Object gotValue = array.get(entry.getKey()); in compareMaps()
176 + " at key " + entry.getKey()); in compareMaps()
244 Map.Entry entry = entryIt.next(); in validateArrayMap() local
245 Object value = entry.getKey(); in validateArrayMap()
251 value = entry.getValue(); in validateArrayMap()
319 for (Map.Entry entry : mapSet) { in dump()
320 Log.e("test", " " + entry.getKey() + " -> " + entry.getValue()); in dump()
581 private static<K, V> Map.Entry<K, V> copyOf(Map.Entry<K, V> entry) {
[all …]
DArraySetTest.java144 for (E entry : set) { in compareSets()
145 assertTrue("ArraySet missing value: " + entry, array.contains(entry)); in compareSets()
149 for (E entry : array) { in compareSets()
150 assertTrue("ArraySet (via iterator) has unexpected value: " + entry, in compareSets()
151 set.contains(entry)); in compareSets()
156 E entry = array.valueAt(i); in compareSets() local
157 assertTrue("ArraySet (via valueAt) has unexpected value: " + entry, in compareSets()
158 set.contains(entry)); in compareSets()
198 for (E entry : set) { in dump()
199 Log.e(TAG, " " + entry); in dump()

1234