/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | SplitSystemUserTest.java | 28 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(), in testSplitSystemUserIsDisabled() 39 private static String trim(String s) { in trim() method in SplitSystemUserTest 40 return s == null ? null : s.trim(); in trim()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | LogHelper.java | 53 testString = line.split(":")[1].trim(); in getLog() 84 testString = line.split(":")[1].trim(); in getSupportedAudioFormats() 87 Arrays.asList(in.nextLine().split(":")[1].trim().split(", ")); in getSupportedAudioFormats() 89 Arrays.asList(in.nextLine().split(":")[1].trim().split(", ")); in getSupportedAudioFormats()
|
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/ |
D | JvmtiAttachingHostTest.java | 103 pwd = pwd.trim(); in testJvmtiAttachEarly() 206 pwd = pwd.trim(); in getPwd() 267 if (!res.trim().equals("SUCCESS")) { in runAttachTestCmd() 300 if (runAsCp != null && !runAsCp.trim().isEmpty()) { in installLibToDataData() 301 throw new RuntimeException(runAsCp.trim()); in installLibToDataData() 306 if (runAsChmod != null && !runAsChmod.trim().isEmpty()) { in installLibToDataData() 307 throw new RuntimeException(runAsChmod.trim()); in installLibToDataData()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | SuccessNotificationHostSideTest.java | 174 "settings get secure %s", BACKUP_MANAGER_CONSTANTS_PREF)).trim(); in addBackupFinishedNotificationReceiver() 190 final String key = fields[0].trim(); in addBackupFinishedNotificationReceiver() 192 if (fields.length == 1 || fields[1].trim().isEmpty()) { in addBackupFinishedNotificationReceiver() 197 if (SUCCESS_NOTIFICATION_APP_PACKAGE.equals(values[j].trim())) { in addBackupFinishedNotificationReceiver()
|
/cts/hostsidetests/net/src/com/android/cts/net/ |
D | ProcNetTest.java | 104 String mode = mDevice.executeAdbCommand("shell", "stat", "-c", "%a", path).trim(); in readIntFromPath() 105 String user = mDevice.executeAdbCommand("shell", "stat", "-c", "%u", path).trim(); in readIntFromPath() 106 String group = mDevice.executeAdbCommand("shell", "stat", "-c", "%g", path).trim(); in readIntFromPath() 110 return Integer.parseInt(mDevice.executeAdbCommand("shell", "cat", path).trim()); in readIntFromPath()
|
D | NetworkPolicyTestsPreparer.java | 51 return executeCmd("settings get global app_standby_enabled").trim(); in getAppStandbyEnabled() 55 final String output = mDevice.executeShellCommand(cmd).trim(); in executeCmd()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 160 title = title.trim(); in parseTestMethod() 171 constraint = constraint.trim(); in parseTestMethod() 220 entries.add((pName + ".d." + result.group(1)).trim()); in parseTestClassName() 227 entries.add(0, res.trim()); in parseTestClassName() 235 entries.add(res.trim()); in parseTestClassName() 244 entries.add(res.trim()); in parseTestClassName()
|
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/ |
D | JvmtiHostTest.java | 166 pwd = pwd.trim(); in prepare() 187 if (attachReply != null && !attachReply.trim().isEmpty()) { in run() 216 if (runAsCp != null && !runAsCp.trim().isEmpty()) { in installLibToDataData() 217 throw new RuntimeException(runAsCp.trim()); in installLibToDataData() 223 if (runAsChmod != null && !runAsChmod.trim().isEmpty()) { in installLibToDataData() 224 throw new RuntimeException(runAsChmod.trim()); in installLibToDataData()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 110 "cmd battery set -f level " + level).trim()); in setBatteryState() 119 "cmd jobscheduler get-battery-seq").trim()); in setBatteryState() 125 "cmd jobscheduler get-battery-charging").trim()); in setBatteryState() 137 "cmd jobscheduler get-battery-charging").trim()); in verifyChargingState() 143 "cmd jobscheduler get-battery-not-low").trim()); in verifyBatteryNotLowState()
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 87 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 91 getDevice().executeShellCommand("settings get secure test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 95 getDevice().executeShellCommand("settings get system test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESCipherNistCavpKatTest.java | 181 line = line.trim(); in runTestsForKatFile() 207 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile() 208 String value = line.substring(delimiterIndex + 1).trim(); in runTestsForKatFile() 240 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile() 241 String value = line.substring(delimiterIndex + 1).trim(); in runTestsForKatFile()
|
/cts/hostsidetests/apex/src/android/apex/cts/ |
D | ApexTest.java | 97 return result.getExitCode() == 0 ? Integer.parseInt(result.getStdout().trim()) : 0; in countFlattenedApexes() 104 return result.getExitCode() == 0 ? Integer.parseInt(result.getStdout().trim()) : 0; in countNonFlattenedApexes() 144 return result.getStdout().trim().split("\n"); in readMountInfo()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/ |
D | HdmiCecDeviceOsdNameTest.java | 66 String deviceName = device.executeShellCommand("settings get global device_name").trim(); in cect_11_2_11_1a_GiveOsdNameTest() 68 deviceName = deviceName.substring(0, nameLength).trim(); in cect_11_2_11_1a_GiveOsdNameTest() 84 String originalName = device.executeShellCommand("settings get global device_name").trim(); in cect_11_2_11_1b_UpdateAndGiveOsdNameTest()
|
D | HdmiCecSystemStandbyTest.java | 64 HDMI_CONTROL_DEVICE_AUTO_OFF).trim(); in setHdmiControlDeviceAutoOff() 68 device.executeShellCommand("settings get global " + HDMI_CONTROL_DEVICE_AUTO_OFF).trim(); in setHdmiControlDeviceAutoOff() 81 assertThat(wakeState.trim()).isEqualTo("mWakefulness=Asleep"); in checkDeviceAsleepAfterStandbySent()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 238 final String dumpsysPower = getDevice().executeShellCommand("dumpsys power").trim(); in assertScreenOff() 241 screenAwake = line.trim().endsWith("ON"); in assertScreenOff() 256 getDevice().executeShellCommand("dumpsys window policy").trim(); in assertScreenOn() 263 screenAwake &= line.trim().endsWith("false"); in assertScreenOn() 265 screenAwake &= line.trim().endsWith("SCREEN_STATE_ON"); in assertScreenOn() 359 "settings get global location_background_throttle_package_whitelist").trim(); in testGpsUpdates() 504 int uid = Integer.parseInt(uidLineParts[2].trim());
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AppStandbyUtils.java | 34 "dumpsys usagestats is-app-standby-enabled").trim(); in isAppStandbyEnabled() 61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | AppStandbyUtils.java | 34 "dumpsys usagestats is-app-standby-enabled").trim(); in isAppStandbyEnabled() 61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | UserActivityEmulator.java | 43 mWidth = Integer.valueOf(sizes[0].trim()); in UserActivityEmulator() 44 mHeight = Integer.valueOf(sizes[1].trim()); in UserActivityEmulator()
|
D | EphemeralUserTest.java | 112 if (lineParts.length == 2 && lineParts[0].trim().equals("All guests ephemeral")) { in getGuestUsersEphemeral() 113 return Boolean.parseBoolean(lineParts[1].trim()); in getGuestUsersEphemeral()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | FileSystemPermissionTest.java | 94 String output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions() 106 output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions() 122 if (output.trim().isEmpty()) { in testDevHwRandomPermissions() 134 if (output.trim().isEmpty()) { in testDevHwRandomPermissions()
|
/cts/hostsidetests/usage/src/android/app/usage/cts/ |
D | AppIdleHostTest.java | 86 return result.trim(); in getAppIdleSettings() 130 "dumpsys usagestats is-app-standby-enabled").trim(); in isAppStandbyEnabled() 138 return Integer.parseInt(bucketString.trim()); in getAppStandbyBucket()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | TestSuiteContentReport.java | 364 System.out.printf(",%s,%s,%s,%s,%s", rtHit.trim(), pkg.trim(), in printTestSuiteContent() 365 jar.trim(), module.trim(), ntdPath.trim()); in printTestSuiteContent() 380 System.out.printf(",%s,%s", testFile.trim(), pushList.trim()); in printTestSuiteContent()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | HwRngTest.java | 99 readyFullyAsciiFile(new File(SYSFS_HW_RANDOM, "dev")).trim()); in testConfigurationIfFilePresent() 112 rngCurrent.trim().isEmpty()); in testConfigurationIfFilePresent() 157 if (line.trim().length() == 0) { in parseUeventFile()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AdoptableHostTest.java | 159 .executeShellCommand("sm get-primary-storage-uuid").trim(); in testPrimaryStorage() 337 return Boolean.parseBoolean(getDevice().executeShellCommand("sm has-adoptable").trim()); in hasFstab() 356 return disks.split("\n")[0].trim(); in getAdoptionDisk() 365 final LocalVolumeInfo info = new LocalVolumeInfo(line.trim()); in getAdoptionVolume() 387 if (str != null && str.trim().length() > 0) { in assertEmpty()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 98 String classO = firstLine.substring(hdr.length()).trim(); in run() 183 if (!line.trim().startsWith("//")) { in writeClassFile() 187 String part = parts[i].trim(); in writeClassFile()
|