Home
last modified time | relevance | path

Searched refs:scanner (Results 1 – 25 of 37) sorted by relevance

12

/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DRootProcessScanner.java106 Scanner scanner = null; in isKernelProcess() local
108 scanner = new Scanner(statm); in isKernelProcess()
112 if (scanner.nextInt() != 0) { in isKernelProcess()
117 if (scanner.hasNext()) { in isKernelProcess()
124 if (scanner != null) { in isKernelProcess()
125 scanner.close(); in isKernelProcess()
149 Scanner scanner = null; in isRootProcess() local
151 scanner = new Scanner(status); in isRootProcess()
153 findToken(scanner, "Name:"); in isRootProcess()
154 String name = scanner.next(); in isRootProcess()
[all …]
DGLESSurfaceView.java79 Scanner scanner = new Scanner(extensions); in onSurfaceCreated() local
80 scanner.useDelimiter(" "); in onSurfaceCreated()
81 while (scanner.hasNext()) { in onSurfaceCreated()
82 String ext = scanner.next(); in onSurfaceCreated()
91 scanner.close(); in onSurfaceCreated()
DDeviceInfoInstrument.java342 Scanner scanner = new Scanner(df.getInputStream()); in getPartitions() local
344 while (scanner.hasNextLine()) { in getPartitions()
345 builder.append(scanner.nextLine()).append(';'); in getPartitions()
349 scanner.close(); in getPartitions()
409 Scanner scanner = null; in getProperty() local
412 scanner = new Scanner(process.getInputStream()); in getProperty()
413 line = scanner.nextLine(); in getProperty()
415 if (scanner != null) { in getProperty()
416 scanner.close(); in getProperty()
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java111 Scanner scanner = null; in getProperty() local
114 scanner = new Scanner(process.getInputStream()); in getProperty()
115 line = scanner.nextLine(); in getProperty()
117 if (scanner != null) { in getProperty()
118 scanner.close(); in getProperty()
131 Scanner scanner = null; in assertProperty() local
133 scanner = new Scanner(process.getInputStream()); in assertProperty()
134 String line = scanner.nextLine(); in assertProperty()
136 assertFalse(scanner.hasNext()); in assertProperty()
138 if (scanner != null) { in assertProperty()
[all …]
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DTestListParser.java38 Scanner scanner = null; in parse() local
40 scanner = new Scanner(input); in parse()
41 while(scanner.hasNextLine()) { in parse()
42 String line = scanner.nextLine(); in parse()
63 if (scanner != null) { in parse()
64 scanner.close(); in parse()
/cts/tools/cts-native-scanner/tests/
DAndroid.mk22 LOCAL_MODULE := cts-native-scanner-tests
24 LOCAL_JAVA_LIBRARIES := tradefed-prebuilt cts-native-scanner
/cts/build/
Dconfig.mk21 CTS_NATIVE_TEST_SCANNER := $(HOST_OUT_EXECUTABLES)/cts-native-scanner
22 CTS_JAVA_TEST_SCANNER := $(HOST_OUT_EXECUTABLES)/cts-java-scanner
23 CTS_JAVA_TEST_SCANNER_DOCLET := $(HOST_OUT_JAVA_LIBRARIES)/cts-java-scanner-doclet.jar
/cts/tests/tests/media/src/android/media/cts/
DUtils.java39 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument
40 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
/cts/tests/tests/security/src/android/security/cts/
DListeningPortsTest.java267 Scanner scanner = null; in parse() local
269 scanner = new Scanner(procFile); in parse()
270 while (scanner.hasNextLine()) { in parse()
271 String line = scanner.nextLine().trim(); in parse()
291 if (scanner != null) { in parse()
292 scanner.close(); in parse()
/cts/tools/cts-native-scanner/src/com/android/cts/nativescanner/
DCtsNativeScanner.java56 TestScanner scanner = new TestScanner(reader, testSuite); in main() local
57 for (String name : scanner.getTestNames()) { in main()
/cts/common/host-side/native-scanner/tests/src/com/android/compatibility/common/scanner/
DNativeScannerTest.java17 package com.android.compatibility.common.scanner;
19 import com.android.compatibility.common.scanner.NativeScanner;
/cts/common/host-side/native-scanner/
DMANIFEST.mf2 Main-Class: com.android.compatibility.common.scanner.NativeScanner
DAndroid.mk43 LOCAL_MODULE := compatibility-native-scanner-tests_v2
/cts/common/host-side/java-scanner/
DMANIFEST.mf2 Main-Class: com.android.compatibility.common.scanner.JavaScanner
DAndroid.mk43 LOCAL_MODULE := compatibility-java-scanner-tests_v2
/cts/tools/cts-native-scanner/src/
DAndroid.mk25 LOCAL_MODULE := cts-native-scanner
/cts/tools/cts-java-scanner/src/
DAndroid.mk25 LOCAL_MODULE := cts-java-scanner
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java154 Scanner scanner = null; in loadFile() local
156 scanner = new Scanner(new File(getFilesDir(), fileName)); in loadFile()
157 while (scanner.hasNext()) { in loadFile()
158 contents.append(scanner.nextLine()); in loadFile()
160 scanner.close(); in loadFile()
164 if (scanner != null) { in loadFile()
165 scanner.close(); in loadFile()
/cts/tools/cts-java-scanner-doclet/
DAndroid.mk18 LOCAL_MODULE := cts-java-scanner-doclet
/cts/tools/cts-native-scanner/
DAndroid.mk26 LOCAL_MODULE := cts-native-scanner
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SystemTest.java86 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument
87 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
/cts/tools/cts-java-scanner/
DAndroid.mk26 LOCAL_MODULE := cts-java-scanner
/cts/tools/cts-java-scanner/etc/
Dcts-java-scanner46 exec java $javaOpts -jar $libdir/cts-java-scanner.jar "$@"
/cts/tools/cts-native-scanner/etc/
Dcts-native-scanner46 exec java $javaOpts -jar $libdir/cts-native-scanner.jar "$@"
/cts/tools/vm-tests-tf/src/util/build/
DBuildDalvikSuite.java643 Scanner scanner = new Scanner(methodSource);
650 token = scanner.findWithinHorizon(pattern, methodSource.length());
662 MatchResult result = scanner.match();
705 Scanner scanner;
707 scanner = new Scanner(f);
715 String token = scanner.findWithinHorizon(methodPattern, (int) f.length());
721 MatchResult result = scanner.match();
803 if (scanner != null) {
804 scanner.close();

12