Home
last modified time | relevance | path

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

1234

/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/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/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/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/tests/net/src/android/net/cts/
DTrafficStatsTest.java205 NetworkStats.Entry entry = testStats.getTotal(null, Process.myUid()); in testTrafficStatsForLocalhost() local
206 assertTrue("txPackets detail: " + entry.txPackets + " uidTxPackets: " + uidTxDeltaPackets, in testTrafficStatsForLocalhost()
207 entry.txPackets >= packetCount + minExpectedExtraPackets in testTrafficStatsForLocalhost()
208 && entry.txPackets <= uidTxDeltaPackets); in testTrafficStatsForLocalhost()
209 assertTrue("rxPackets detail: " + entry.rxPackets + " uidRxPackets: " + uidRxDeltaPackets, in testTrafficStatsForLocalhost()
210 entry.rxPackets >= packetCount + minExpectedExtraPackets in testTrafficStatsForLocalhost()
211 && entry.rxPackets <= uidRxDeltaPackets); in testTrafficStatsForLocalhost()
212 assertTrue("txBytes detail: " + entry.txBytes + " uidTxDeltaBytes: " + uidTxDeltaBytes, in testTrafficStatsForLocalhost()
213 entry.txBytes >= tcpPacketToIpBytes(packetCount, byteCount) in testTrafficStatsForLocalhost()
214 + tcpPacketToIpBytes(minExpectedExtraPackets, 0) && entry.txBytes <= uidTxDeltaBytes); in testTrafficStatsForLocalhost()
[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/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 …]
DApkNdkApiReport.java138 final ZipEntry entry = entries.nextElement(); in parseTestcasesFolder() local
140 if (!entry.getName().matches("lib(.*)" + bits + "(.*)so")) { in parseTestcasesFolder()
144 System.out.println(entry.getName()); in parseTestcasesFolder()
147 InputStream is = apkFile.getInputStream(entry); in parseTestcasesFolder()
DApiCoverage.java44 for (Map.Entry<String, ApiPackage> entry : mPackages.entrySet()) { in resolveSuperClasses()
45 ApiPackage pkg = entry.getValue(); in resolveSuperClasses()
/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/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/
DErrorsTests.java138 final DropBoxManager.Entry entry = mDropbox.getNextEntry(wantTag, mStartMs); in registerReceiver()
139 if (entry == null) { in registerReceiver()
142 Log.d(TAG, "ErrorsTest got message from drobpox: " + entry.getTag()); in registerReceiver()
143 mStartMs = entry.getTimeMillis(); in registerReceiver()
144 String stackTrace = entry.getText(64 * 1024); in registerReceiver()
154 entry.close(); in registerReceiver()
/cts/tests/signature/api-check/shared-libs-api/src/android/signature/cts/api/
DSignatureMultiLibsTest.java77 return zip.stream().filter(entry -> checkLibrary(entry.getName())).map(entry -> { in readFile()
79 return zip.getInputStream(entry); in readFile()
/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/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/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/tools/vm-tests-tf/build/src/util/build/
DJarBuildStep.java84 JarEntry entry = new JarEntry(outputJarEntryName); in build() local
85 entry.setTime(absoluteInputFile.lastModified()); in build()
88 jarOut.putNextEntry(entry); in build()

1234