Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 25 of 148) sorted by relevance

123456

/cts/tests/tests/multiuser/src/android/multiuser/cts/
DSplitSystemUserTest.java28 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/
DLogHelper.java53 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/
DJvmtiAttachingHostTest.java103 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/
DSuccessNotificationHostSideTest.java174 "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/
DProcNetTest.java104 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()
DNetworkPolicyTestsPreparer.java51 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/
DBuildUtilBase.java160 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/
DJvmtiHostTest.java166 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/
DBatteryConstraintTest.java110 "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/
DTestHarnessModeDeviceTest.java87 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/
DAESCipherNistCavpKatTest.java181 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/
DApexTest.java97 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/
DHdmiCecDeviceOsdNameTest.java66 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()
DHdmiCecSystemStandbyTest.java64 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/
DBatteryStatsValidationTest.java238 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/
DAppStandbyUtils.java34 "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/
DAppStandbyUtils.java34 "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/
DUserActivityEmulator.java43 mWidth = Integer.valueOf(sizes[0].trim()); in UserActivityEmulator()
44 mHeight = Integer.valueOf(sizes[1].trim()); in UserActivityEmulator()
DEphemeralUserTest.java112 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/
DFileSystemPermissionTest.java94 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/
DAppIdleHostTest.java86 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/
DTestSuiteContentReport.java364 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/
DHwRngTest.java99 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/
DAdoptableHostTest.java159 .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/
DClassFileAssembler.java98 String classO = firstLine.substring(hdr.length()).trim(); in run()
183 if (!line.trim().startsWith("//")) { in writeClassFile()
187 String part = parts[i].trim(); in writeClassFile()

123456