/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/os/src/android/os/cts/ |
D | BuildTest.java | 143 Scanner scanner = null; in getProperty() local 146 scanner = new Scanner(process.getInputStream()); in getProperty() 147 line = scanner.nextLine(); in getProperty() 149 if (scanner != null) { in getProperty() 150 scanner.close(); in getProperty() 163 Scanner scanner = null; in assertProperty() local 165 scanner = new Scanner(process.getInputStream()); in assertProperty() 166 String line = scanner.nextLine(); in assertProperty() 168 assertFalse(scanner.hasNext()); in assertProperty() 170 if (scanner != null) { in assertProperty() [all …]
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PropertyDeviceInfo.java | 47 Scanner scanner = null; in collectRoProperties() local 50 scanner = new Scanner(getprop.getInputStream()); in collectRoProperties() 51 while (scanner.hasNextLine()) { in collectRoProperties() 52 String line = scanner.nextLine(); in collectRoProperties() 66 if (scanner != null) { in collectRoProperties() 67 scanner.close(); in collectRoProperties()
|
D | StorageDeviceInfo.java | 66 Scanner scanner = new Scanner(df.getInputStream()); in scanPartitions() local 68 while (scanner.hasNextLine()) { in scanPartitions() 69 partitionList.add(scanner.nextLine()); in scanPartitions() 72 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/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ListeningPortsTest.java | 238 Scanner scanner = null; in parse() local 245 scanner = new Scanner(procFile); in parse() 246 while (scanner.hasNextLine()) { in parse() 247 contents.append(scanner.nextLine() + "\n"); in parse() 250 if (scanner != null) { in parse() 251 scanner.close(); in parse()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 174 Scanner scanner = null; in getProperty() local 177 scanner = new Scanner(process.getInputStream()); in getProperty() 178 String value = scanner.nextLine().trim(); in getProperty() 183 if (scanner != null) { in getProperty() 184 scanner.close(); in getProperty()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 159 Scanner scanner = null; in getProperty() local 162 scanner = new Scanner(process.getInputStream()); in getProperty() 163 String value = scanner.nextLine().trim(); in getProperty() 168 if (scanner != null) { in getProperty() 169 scanner.close(); in getProperty()
|
/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()
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 56 Scanner scanner = null; in getProperty() local 59 scanner = new Scanner(process.getInputStream()); in getProperty() 60 line = scanner.nextLine(); in getProperty() 62 if (scanner != null) { in getProperty() 63 scanner.close(); in getProperty()
|
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/ |
D | KeyValueBackupRestoreTest.java | 270 Scanner scanner = null; in readFileContent() local 272 scanner = new Scanner(new File(mContext.getFilesDir(), fileName)); in readFileContent() 273 while (scanner.hasNext()) { in readFileContent() 274 contents.append(scanner.nextLine()); in readFileContent() 276 scanner.close(); in readFileContent() 280 if (scanner != null) { in readFileContent() 281 scanner.close(); in readFileContent()
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 222 Scanner scanner = null; in parse() local 224 scanner = new Scanner(procFileContents); in parse() 225 while (scanner.hasNextLine()) { in parse() 226 String line = scanner.nextLine().trim(); in parse() 247 if (scanner != null) { in parse() 248 scanner.close(); in parse()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | OsHostTests.java | 125 Scanner scanner = new Scanner(logs); in testIntentFilterHostValidation() local 126 while (scanner.hasNextLine()) { in testIntentFilterHostValidation() 127 line = scanner.nextLine(); in testIntentFilterHostValidation()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 61 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 62 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
D | VideoDecoderPerfTest.java | 109 Scanner scanner = null; in getProperty() local 112 scanner = new Scanner(process.getInputStream()); in getProperty() 113 line = scanner.nextLine(); in getProperty() 115 if (scanner != null) { in getProperty() 116 scanner.close(); in getProperty()
|
/cts/hostsidetests/userspacereboot/testapps/BootCompletedTestApp/src/com/android/cts/userspacereboot/bootcompleted/ |
D | BootCompletedUserspaceRebootTest.java | 79 try (Scanner scanner = new Scanner(mCeContext.openFileInput(FILE_NAME))) { in testVerifyCeStorageUnlocked() argument 80 final String content = scanner.nextLine(); in testVerifyCeStorageUnlocked()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | PasswordTransformationMethodTest.java | 149 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 150 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 121 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString() argument 122 return scanner.hasNext() ? scanner.next() : ""; in convertStreamToString()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 175 MediaScanner scanner = new MediaScanner(); in createAndAddImage() local 176 boolean success = scanner.scan(getContext(), destFile.toString(), "image/jpeg"); in createAndAddImage() 178 return scanner.getScannedUri(); in createAndAddImage()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 160 Scanner scanner = null; in getProperty() local 163 scanner = new Scanner(process.getInputStream()); in getProperty() 164 line = scanner.nextLine(); in getProperty() 166 if (scanner != null) { in getProperty() 167 scanner.close(); in getProperty()
|