/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/ |
D | MockNetworkConfig.java | 109 mId = Integer.parseInt(parser.getAttributeValue(null, "id").trim()); in MockNetworkProfile() 111 mRat = parser.getAttributeValue(null, "rat").trim(); in MockNetworkProfile() 117 if (connectionStatus != null && connectionStatus.trim().equals("primary")) { in MockNetworkProfile() 146 lte.cellIdentityLte.mcc = parser.nextText().trim(); in loadLteCellIdentity() 149 lte.cellIdentityLte.mnc = parser.nextText().trim(); in loadLteCellIdentity() 152 lte.cellIdentityLte.ci = Integer.parseInt(parser.nextText().trim()); in loadLteCellIdentity() 155 lte.cellIdentityLte.pci = Integer.parseInt(parser.nextText().trim()); in loadLteCellIdentity() 158 lte.cellIdentityLte.tac = Integer.parseInt(parser.nextText().trim()); in loadLteCellIdentity() 161 lte.cellIdentityLte.earfcn = Integer.parseInt(parser.nextText().trim()); in loadLteCellIdentity() 167 lte.cellIdentityLte.operatorNames.alphaLong = parser.nextText().trim(); in loadLteCellIdentity() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ParserUtils.java | 70 sections.add(sectionBuilder.toString().trim()); in extractIndentedSections() 77 sections.add(sectionBuilder.toString().trim()); in extractIndentedSections() 87 String trimmed = s.trim(); in countIndentation()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | TestingUtils.java | 36 String value = trim(runShellCommand(instrumentation, "getprop " + property)); in getBooleanProperty() 59 private static String trim(String s) { in trim() method in TestingUtils 60 return s == null ? null : s.trim(); in trim()
|
/cts/hostsidetests/packagemanager/domainverification/apps/calling/src/com/android/cts/packagemanager/verify/domain/callingapp/ |
D | DomainVerificationIntentHostTimedTests.kt | 63 ).trim() in multipleVerifiedDisableByComponent() 72 ).trim() in multipleVerifiedDisableByComponent() 88 ).trim() in multipleVerifiedDisableByPackage() 96 ).trim() in multipleVerifiedDisableByPackage()
|
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | CpmsSystemLayerStateInfo.java | 148 if (mLines[mIdx].trim().length() == hdr.length()) { in getStringData() 151 val = mLines[mIdx].trim().substring(hdr.length()).trim(); in getStringData() 158 return Boolean.parseBoolean(mLines[mIdx].trim().substring(hdr.length()).trim()); in getBooleanData() 173 return PowerPolicyDef.parse(mLines[mIdx].trim().substring(hdr.length()).trim(), in getSinglePolicyData()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 222 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled deep").trim(); in isDeviceIdleEnabled() 227 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled light").trim(); in isDeviceLightIdleEnabled() 235 "cmd jobscheduler get-storage-not-low").trim()); in isJsStorageStateLow() 253 int seq = Integer.parseInt(res.trim()); in setStorageStateLow() 260 "cmd jobscheduler get-storage-seq").trim()); in setStorageStateLow() 304 return SystemUtil.runShellCommand("cmd jobscheduler get-config-value " + key).trim(); in getConfigValue() 310 + kJobServiceComponent.getPackageName() + " " + jobId).trim(); in getJobState() 349 "dumpsys battery get level").trim()); in setBatteryState() 360 "cmd battery set -f level " + level).trim()); in setBatteryState() 368 "cmd jobscheduler get-battery-seq").trim()); in setBatteryState() [all …]
|
/cts/hostsidetests/adbmanager/src/android/adbmanager/cts/ |
D | AdbManagerHostDeviceTest.java | 39 return Boolean.parseBoolean(result.getStdout().trim()); in hasFeature() 55 Assert.assertEquals(expected, Boolean.parseBoolean(result.getStdout().trim())); in test_isadbNetworkSupported() 72 Assert.assertEquals(expected, Boolean.parseBoolean(result.getStdout().trim())); in test_isadbNetworkQrSupported()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | MediaCapabilitiesTests.java | 155 "cmd audio get-is-surround-format-enabled 7").split(":")[1].trim(); in cacheOriginalSettings() 157 "cmd audio get-is-surround-format-enabled 14").split(":")[1].trim(); in cacheOriginalSettings() 159 "cmd audio get-encoded-surround-mode").split(":")[1].trim(); in cacheOriginalSettings() 163 "cmd display get-user-preferred-display-mode").split(":")[1].trim(); in cacheOriginalSettings() 165 "cmd display get-match-content-frame-rate-pref").split(":")[1].trim(); in cacheOriginalSettings() 167 "cmd display get-user-disabled-hdr-types").split(":")[1].trim(); in cacheOriginalSettings()
|
D | HdrCapabilitiesTests.java | 173 String trim = line.split(":")[2].trim(); in testDeviceHdrOutputCapabilities() local 174 if (!trim.isBlank()) { in testDeviceHdrOutputCapabilities() 175 hdrOutputCapabilities = trim.split(" "); in testDeviceHdrOutputCapabilities() 211 has4k30Issue = Boolean.parseBoolean(line.split(":")[2].trim()); in testHas4k30DolbyVisionIssue() 236 hdrStrings = line.split(":")[2].trim().split(" "); in getHdrTypesFromDevice()
|
/cts/hostsidetests/appsearch/src/android/appsearch/cts/ |
D | ContactsIndexerMultiUserTest.java | 59 "device_config get appsearch contacts_indexer_enabled").trim(); in setUpClass() 74 "device_config get appsearch contacts_indexer_enabled").trim(); in tearDownClass() 119 "device_config get appsearch contacts_indexer_enabled").trim()) in setCiEnabled() 128 "device_config get appsearch contacts_indexer_enabled").trim()) in deleteCiFlag()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | LogHelper.java | 55 testString.append(line.split(":")[1].trim()); in getLog() 105 String volume = testString.split("at")[1].trim().replaceAll("%", ""); in parseDutVolume() 130 testString = line.split(":")[1].trim(); in getSupportedAudioFormats() 133 Arrays.asList(in.nextLine().split(":")[1].trim().split(", ")); in getSupportedAudioFormats() 135 Arrays.asList(in.nextLine().split(":")[1].trim().split(", ")); in getSupportedAudioFormats()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | DeviceIdleDeviceInfo.java | 29 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled deep").trim(); in isDeviceIdleEnabled() 34 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled light").trim(); in isDeviceLightIdleEnabled()
|
/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()
|
/cts/hostsidetests/graphics/displaymode/src/com/android/cts/graphics/displaymode/ |
D | BootDisplayModeHostTest.java | 93 userPreferredMode = line.split(":")[2].trim(); in testGetBootDisplayMode() 102 .split(":")[1].trim(); in testGetBootDisplayMode() 128 systemPreferredMode = line.split(":")[2].trim(); in testClearBootDisplayMode() 137 .split(":")[1].trim(); in testClearBootDisplayMode()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | SuccessNotificationHostSideTest.java | 153 "settings get secure %s", BACKUP_MANAGER_CONSTANTS_PREF)).trim(); in addBackupFinishedNotificationReceiver() 169 final String key = fields[0].trim(); in addBackupFinishedNotificationReceiver() 171 if (fields.length == 1 || fields[1].trim().isEmpty()) { in addBackupFinishedNotificationReceiver() 176 if (SUCCESS_NOTIFICATION_APP_PACKAGE.equals(values[j].trim())) { in addBackupFinishedNotificationReceiver()
|
/cts/tests/appcloning/src/android/appcloning/cts/ |
D | AppCloningDeviceTestBase.java | 40 if (type != null && !type.trim().isEmpty()) { in createAndStartUser() 49 assumeTrue(userId != null && !userId.trim().isEmpty()); in createAndStartUser()
|
/cts/hostsidetests/apex/src/android/apex/cts/ |
D | ApexTest.java | 63 return result.getExitCode() == 0 ? Integer.parseInt(result.getStdout().trim()) : 0; in countFlattenedApexes() 70 return result.getExitCode() == 0 ? Integer.parseInt(result.getStdout().trim()) : 0; in countNonFlattenedApexes() 108 return result.getStdout().trim().split("\n"); in readMountInfo()
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 88 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 92 getDevice().executeShellCommand("settings get secure test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() 96 getDevice().executeShellCommand("settings get system test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AppStandbyUtils.java | 39 "dumpsys usagestats is-app-standby-enabled").trim(); in isAppStandbyEnabled() 66 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
|
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/pm/ |
D | ComponentEnabledStateCommand.java | 65 mCurrentState = mCommandReturn.substring(GET_STATE_RETURN_HEADER.length()).trim(); in parseCommandReturn() 73 mNewState = mCommandReturn.substring(NEW_STATE_RETURN_HEADER.length()).trim(); in parseCommandReturn()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | HdrCapabilitiesAtomTests.java | 69 String[] trim = line.split(":")[2].trim().split(" "); in restoreOriginalHdrConversionMode() local 70 hdrConversionModeSetting = new HdrConversionMode(Integer.parseInt(trim[0]), in restoreOriginalHdrConversionMode() 71 Integer.parseInt(trim[1])); in restoreOriginalHdrConversionMode()
|
/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/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 | 174 pwd = pwd.trim(); in prepare() 195 if (attachReply != null && !attachReply.trim().isEmpty()) { in run() 224 if (runAsCp != null && !runAsCp.trim().isEmpty()) { in installLibToDataData() 225 throw new RuntimeException(runAsCp.trim()); in installLibToDataData() 231 if (runAsChmod != null && !runAsChmod.trim().isEmpty()) { in installLibToDataData() 232 throw new RuntimeException(runAsChmod.trim()); in installLibToDataData()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/ |
D | HdmiCecDeviceOsdNameTest.java | 58 String deviceName = device.executeShellCommand("settings get global device_name").trim(); in getDeviceName() 60 deviceName = deviceName.substring(0, nameLength).trim(); in getDeviceName() 113 String originalName = device.executeShellCommand("settings get global device_name").trim(); in cect_11_2_11_1b_UpdateAndGiveOsdNameTest()
|