/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | RootProcessScanner.java | 106 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 …]
|
D | GLESSurfaceView.java | 79 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()
|
D | DeviceInfoInstrument.java | 360 Scanner scanner = new Scanner(df.getInputStream()); in getPartitions() local 362 while (scanner.hasNextLine()) { in getPartitions() 363 builder.append(scanner.nextLine()).append(';'); in getPartitions() 367 scanner.close(); in getPartitions() 427 Scanner scanner = null; in getProperty() local 430 scanner = new Scanner(process.getInputStream()); in getProperty() 431 line = scanner.nextLine(); in getProperty() 433 if (scanner != null) { in getProperty() 434 scanner.close(); in getProperty()
|
/cts/tests/tests/car/src/android/car/cts/utils/ |
D | DumpUtils.java | 48 Scanner scanner = new Scanner(output); in parseDumpResult() local 58 while (scanner.hasNextLine()) { in parseDumpResult() 59 scanner.nextLine(); in parseDumpResult() 60 String matchedLine = scanner.findInLine(currentPattern); in parseDumpResult() 68 MatchResult match = scanner.match(); in parseDumpResult()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 264 Scanner scanner = null; in getProperty() local 267 scanner = new Scanner(process.getInputStream()); in getProperty() 268 String value = scanner.nextLine().trim(); in getProperty() 273 if (scanner != null) { in getProperty() 274 scanner.close(); in getProperty() 283 Scanner scanner = null; in getPropertiesWithPrefix() local 286 scanner = new Scanner(process.getInputStream()); in getPropertiesWithPrefix() 287 while (scanner.hasNextLine()) { in getPropertiesWithPrefix() 288 String line = scanner.nextLine().trim(); in getPropertiesWithPrefix() 302 if (scanner != null) { in getPropertiesWithPrefix() [all …]
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | ProcessDeviceInfo.java | 30 RootProcessScanner scanner = new RootProcessScanner(getDevice()); in collectDeviceInfo() local 31 Set<String> approved = scanner.getRootProcesses(true); in collectDeviceInfo() 33 Set<String> unapproved = scanner.getRootProcesses(false); in collectDeviceInfo()
|
D | PropertyDeviceInfo.java | 62 try (Scanner scanner = new Scanner(stdout)) { in parseProps() argument 63 while (scanner.hasNextLine()) { in parseProps() 64 String line = scanner.nextLine(); in parseProps()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ListeningPortsTest.java | 240 Scanner scanner = null; in parse() local 247 scanner = new Scanner(procFile); in parse() 248 while (scanner.hasNextLine()) { in parse() 249 contents.append(scanner.nextLine() + "\n"); in parse() 252 if (scanner != null) { in parse() 253 scanner.close(); in parse()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | StorageDeviceInfo.java | 70 Scanner scanner = new Scanner(df.getInputStream()); in scanPartitions() local 72 while (scanner.hasNextLine()) { in scanPartitions() 73 partitionList.add(scanner.nextLine()); in scanPartitions() 76 scanner.close(); in scanPartitions()
|
D | GlesStubActivity.java | 432 Scanner scanner = new Scanner(extensions); in onSurfaceCreated() local 433 scanner.useDelimiter(" "); in onSurfaceCreated() 434 while (scanner.hasNext()) { in onSurfaceCreated() 435 String ext = scanner.next(); in onSurfaceCreated() 443 scanner.close(); in onSurfaceCreated()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 69 try (Scanner scanner = new Scanner(in.openStream(), StandardCharsets.UTF_8.toString())) { in readURL() argument 70 scanner.useDelimiter("\\A"); // This delimits by "start of content," of which there is in readURL() 72 return scanner.hasNext() ? scanner.next() : null; in readURL() 96 try (Scanner scanner = new Scanner(content)) { in parseTestMethod() argument 97 String token = scanner.findWithinHorizon(methodPattern, content.length()); in parseTestMethod() 103 MatchResult result = scanner.match(); in parseTestMethod() 200 try (Scanner scanner = new Scanner(methodSource)) { in parseTestClassName() argument 206 token = scanner.findWithinHorizon(pattern, methodSource.length()); in parseTestClassName() 218 MatchResult result = scanner.match(); in parseTestClassName()
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 40 Scanner scanner = null; in getProperty() local 43 scanner = new Scanner(process.getInputStream()); in getProperty() 44 line = scanner.nextLine(); in getProperty() 46 if (scanner != null) { in getProperty() 47 scanner.close(); in getProperty()
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 280 Scanner scanner = null; in readFileContent() local 282 scanner = new Scanner(new File(mContext.getFilesDir(), fileName)); in readFileContent() 283 while (scanner.hasNext()) { in readFileContent() 284 contents.append(scanner.nextLine()); in readFileContent() 286 scanner.close(); in readFileContent() 290 if (scanner != null) { in readFileContent() 291 scanner.close(); in readFileContent()
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 289 Scanner scanner = null; in parse() local 291 scanner = new Scanner(procFileContents); in parse() 292 while (scanner.hasNextLine()) { in parse() 293 String line = scanner.nextLine().trim(); in parse() 314 if (scanner != null) { in parse() 315 scanner.close(); in parse()
|
/cts/hostsidetests/multidevices/bluetooth/snippet/ |
D | BluetoothGattMultiDevicesClient.java | 80 var scanner = mBluetoothAdapter.getBluetoothLeScanner(); in connect() local 94 scanner.startScan(null, new ScanSettings.Builder().setLegacy(false).build(), callback); in connect() 102 scanner.stopScan(callback); in connect()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BuildTest.java | 174 Scanner scanner = null; in getProperty() local 177 scanner = new Scanner(process.getInputStream()); in getProperty() 178 line = scanner.nextLine(); in getProperty() 180 if (scanner != null) { in getProperty() 181 scanner.close(); in getProperty()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | Utils.java | 60 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 61 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | PasswordTransformationMethodTest.java | 174 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 175 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 122 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 123 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 173 MediaScanner scanner = new MediaScanner(); in createAndAddImage() local 174 boolean success = scanner.scan(getContext(), destFile.toString(), "image/jpeg"); in createAndAddImage() 176 return scanner.getScannedUri(); in createAndAddImage()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandIncrementalTest.java | 606 try (Scanner scanner = new Scanner(stdout)) { in testInstallWithIdSigNoMissingPages() 608 while (scanner.hasNextLine()) { in testInstallWithIdSigNoMissingPages() 609 final String line = scanner.nextLine(); in testInstallWithIdSigNoMissingPages() 855 try (Scanner scanner = new Scanner(stdout)) { in testInstallWithIdSigNoDigesting() 856 while (scanner.hasNextLine()) { in testInstallWithIdSigNoDigesting() 857 String line = scanner.nextLine(); in testInstallWithIdSigNoDigesting()
|