/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | AdbUserParser30.java | 280 userString.split("isPrimary=", 2)[1].split("[ \n]", 2)[0]); in parseUser() 281 user.mType = mUserTypes.get(userString.split("Type: ", 2)[1].split("\n", 2)[0]); in parseUser() 304 return dumpsysUsersOutput.split( in extractUserTypesList() 305 "User types \\(\\d+ types\\):\n", 2)[1].split("\n\n", 2)[0]; in extractUserTypesList() 319 userType.mName = userTypeString.split("mName: ", 2)[1].split("\n")[0]; in parseUserType() 321 for (String baseType : userTypeString.split("mBaseType: ", 2)[1] in parseUserType() 322 .split("\n")[0].split("\\|")) { in parseUserType() 329 userTypeString.split("mEnabled: ", 2)[1].split("\n")[0]); in parseUserType() 331 userTypeString.split("mMaxAllowed: ", 2)[1].split("\n")[0]); in parseUserType() 333 userTypeString.split("mMaxAllowedPerParent: ", 2)[1].split("\n")[0]); in parseUserType()
|
D | AdbUserParser26.java | 114 return dumpsysUsersOutput.split("Users:\n", 2)[1].split("\n\n", 2)[0]; in extractUsersList() 126 String userInfo[] = userString.split("UserInfo\\{", 2)[1].split("\\}", 2)[0].split(":"); in parseUser() 132 userString.split("serialNo=", 2)[1].split("[ \n]", 2)[0]); in parseUser() 135 userString.split("Has profile owner: ", 2)[1].split("\n", 2)[0]); in parseUser() 138 userString.split("State: ", 2)[1].split("\n", 2)[0]); in parseUser()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | AdbPackageParser26.java | 61 for (String featureLine : featuresList.split("\n")) { in parseFeatures() 69 return dumpsysPackageOutput.split("Features:\n", 2)[1].split("\n\n", 2)[0]; in extractFeaturesList() 89 return dumpsysPackageOutput.split("\nPackages:\n", 2)[1].split("\n\n", 2)[0]; in extractPackagesList() 104 String packageName = packageString.split("\\[", 2)[1].split("]", 2)[0]; in parsePackage() 111 packageString.split("\n", 2)[1], // Remove first line (package name) in parsePackage() 129 String list = section.split("\n", 2)[1]; // remove header in parseInstallPermissions() 130 for (String item : list.split("\n")) { in parseInstallPermissions() 131 String[] trimmed = item.trim().split(":", 2); in parseInstallPermissions() 159 String[] sectionParts = section.split("\n", 2); // remove header in parseUser() 171 String list = userSection.split("\n", 2)[1]; // remove header in parseUser() [all …]
|
/cts/tests/tests/view/receivecontent/src/android/view/cts/receivecontent/ |
D | ContentInfoTest.java | 78 Pair<ContentInfo, ContentInfo> split; in testPartition_multipleItems() local 79 split = payload.partition(item -> item.getUri() != null); in testPartition_multipleItems() 80 assertThat(split.first.getClip().getItemCount()).isEqualTo(1); in testPartition_multipleItems() 81 assertThat(split.second.getClip().getItemCount()).isEqualTo(2); in testPartition_multipleItems() 82 assertThat(split.first.getClip().getItemAt(0).getUri()).isEqualTo(sampleUri); in testPartition_multipleItems() 83 assertThat(split.first.getClip().getDescription()) in testPartition_multipleItems() 85 assertThat(split.second.getClip().getDescription()) in testPartition_multipleItems() 87 assertThat(split.first.getSource()).isEqualTo(SOURCE_CLIPBOARD); in testPartition_multipleItems() 88 assertThat(split.first.getLinkUri()).isNotNull(); in testPartition_multipleItems() 89 assertThat(split.first.getExtras()).isNotNull(); in testPartition_multipleItems() [all …]
|
/cts/libs/vogar-expect/src/vogar/expect/ |
D | Outcome.java | 95 return Arrays.asList(output.split("\n")); in getOutputLines() 102 return Arrays.asList(writer.toString().split("\\n")); in throwableToLines() 110 int split = split(outcomeName); in getSuiteName() local 111 return split == -1 ? "defaultpackage" : outcomeName.substring(0, split); in getSuiteName() 118 int split = split(outcomeName); in getTestName() local 119 return split == -1 ? outcomeName : outcomeName.substring(split + 1); in getTestName() 122 private static int split(String name) { in split() method in Outcome
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | AdbDevicePolicyParser27.java | 55 dumpsysDevicePolicyOutput = dumpsysDevicePolicyOutput.split("\n", 2)[1]; in extractDevicePolicySections() 67 deviceOwnerSection.split( in parseDeviceOwner() 68 "ComponentInfo\\{", 2)[1].split("\\}", 2)[0]); in parseDeviceOwner() 69 int userId = Integer.parseInt(deviceOwnerSection.split( in parseDeviceOwner() 70 "User ID: ", 2)[1].split("\n", 2)[0]); in parseDeviceOwner() 110 profileOwnerSection.split( in extractProfileOwner() 111 "ComponentInfo\\{", 2)[1].split("\\}", 2)[0]); in extractProfileOwner() 113 profileOwnerSection.split("\\(User ", 2)[1].split("\\)", 2)[0]); in extractProfileOwner()
|
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/ |
D | MockDataService.java | 281 interfaceName = string.split("InterfaceName: ")[1].split(" LinkAddresses")[0]; in getInterfaceName() 294 string.split("LinkAddresses: \\[ ")[1].split(" ] DnsAddresses")[0].split(","); in getIpAddress() 318 string.split("DnsAddresses: \\[ ")[1] in getDnses() 319 .split(" ] Domains:")[0] in getDnses() 321 .split(","); in getDnses() 333 string.split("Routes: \\[ ")[1] in getGateways() 334 .split("-> ")[1] in getGateways() 335 .split(" ")[0]); in getGateways() 346 mtu = string.split(" MTU: ")[1].split(" TcpBufferSizes:")[0]; in getMtu() 358 string.split(" PcscfAddresses: \\[ ")[1] in getPcscf() [all …]
|
D | MockCentralizedNetworkAgent.java | 70 + result.split(targetString)[1].split("Pending tear down data networks:")[0]; in setNetworkAgentInfo() 93 string.split(patternDataNetworkController)[1] in storeDataCall() 94 .split(patternAllTtelephonyNetworkRequests)[0]; in storeDataCall() 96 lines = line.split((patternCurrentState)); in storeDataCall() 132 capabilities = string.trim().split("Capabilities:")[1].split("LinkUpBandwidth")[0]; in getCapabilities()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | ProcessMustUseSeccompTest.java | 60 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in getPidFromCmd() 63 String[] namePid = line.trim().split("\\s+"); in getPidFromCmd() 88 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in pidHasSeccompBpf() 90 String[] split = line.trim().split("\\s+"); in pidHasSeccompBpf() local 91 if (!split[0].equals("Seccomp:")) { in pidHasSeccompBpf() 94 if (split[1].equals("2")) { in pidHasSeccompBpf()
|
/cts/hostsidetests/theme/ |
D | android_device.py | 38 adb_process = subprocess.Popen(args=adb_cmd.split(), bufsize=-1, stderr=PIPE, stdout=PIPE) 84 result = out.split() 90 result = out.split() 99 names = out.split() 118 return int(self.run_shell_command("dumpsys | grep SurfaceOrientation")[0].split()[1]) 126 devices = devices.decode('UTF-8').split('\n')[1:] 131 info = device.split('\t')
|
/cts/apps/CameraITS/utils/ |
D | video_processing_utils.py | 85 video_quality = quality.split(':')[0] # form is ['CIF:3', '480P:4', ...] 92 size_to_area = lambda s: int(s.split('x')[0])*int(s.split('x')[1]) 124 video_quality = quality.split(':')[0] 132 size_to_area = lambda s: int(s.split('x')[0])*int(s.split('x')[1]) 161 logging.debug('ffmpeg version: %s', decoded_output.split(' ')[2]) 341 average_frame_rate = (int(average_frame_rate_data.split('/')[0]) / 342 int(average_frame_rate_data.split('/')[1])) 375 output = str(raw_output.decode('utf-8')).strip().split('\n') 423 output = str(raw_output.decode('utf-8')).strip().split('\n')
|
/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/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | UserActivityEmulator.java | 38 outputString = outputString.split(System.getProperty("line.separator"))[1]; in UserActivityEmulator() 42 final String[] sizes = output.split(" ")[2].split("x"); in UserActivityEmulator()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BuildVersionTest.java | 98 String[] fingerprintSegs = fingerprint.split("/"); in testBuildFingerprint() 102 String[] devicePlatform = fingerprintSegs[2].split(":"); in testBuildFingerprint() 109 String[] buildNumberVariant = fingerprintSegs[4].split(":"); in testBuildFingerprint() 113 List<String> buildTagsList = Arrays.asList(fingerprintSegs[5].split(",")); in testBuildFingerprint() 133 String[] segments = fingerprint.split("/"); in verifyFingerprintStructure() 136 String[] devicePlatform = segments[2].split(":"); in verifyFingerprintStructure() 140 String buildVariant = segments[4].split(":")[1]; in verifyFingerprintStructure()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/ |
D | Logcat.java | 122 String[] logs = dump(lineFilter).split("\n"); in recent() 140 String exceptionTitle = binderPrefix.split(": ", 2)[1]; in findSystemServerExceptions() 141 String[] exceptionTitlePaths = exceptionTitle.split(": ", 2); in findSystemServerExceptions() 153 traceLines.add(traceLine.split( in findSystemServerExceptions() 189 String element = line.split("at ", 2)[1]; in extractStackTraceElement() 190 String[] elementParts = element.split("\\("); in extractStackTraceElement() 201 0, elementParts[1].length() - 1).split(":", 2); in extractStackTraceElement()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | EventLogs.java | 108 String activityName = e.getMessage().split( in waitForEvent() 109 "named ", 2)[1].split(". ", 2)[0]; in waitForEvent() 110 String packageName = e.getMessage().split("package ", 2)[1] in waitForEvent() 111 .split(". ", 2)[0]; in waitForEvent()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/ |
D | MethodSignature.java | 67 type = elements.getTypeElement(t.toString().split("<", 2)[0]).asType(); in rawType() 82 String[] parts = string.split(" ", 2); in forApiString() 90 parts = string.split(" ", 2); in forApiString() 97 parts = string.split(" ", 2); in forApiString() 108 parts = string.split("\\(", 2); in forApiString() 111 parts = string.split("\\)", 2); in forApiString() 118 parameters = Arrays.stream(parametersString.split(",")) in forApiString() 129 exceptions = Arrays.stream(string.split("throws ", 2)[1].split(",")) in forApiString() 151 return typeForString(typeName.split("<", 2)[0], types, elements); in typeForString()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/ |
D | Android.bp | 30 // Feature splits are dependent on this split, so it must be exported. 36 // Generate a locale split. 43 // Assign a unique package ID to this feature split. Since these are 57 // Feature splits are dependent on this split, so it must be exported. 63 // Generate a locale split. 70 // Assign a unique package ID to this feature split. Since these are
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | BaseHostTestCase.java | 108 for (String line : out.getStdout().split("\n")) { in usesSdcardFs() 109 String[] split = line.split(" "); in usesSdcardFs() local 110 if (split.length >= 3 && split[2].equals("sdcardfs")) { in usesSdcardFs()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarPowerHostTest.java | 263 String[] lines = cpmsDump.split("\\r?\\n"); in getPowerState() 293 String[] lines = fetchServiceDumpsys().split("\n"); in waitForPowerListenerSet() 296 return line.split(":")[1].trim().equals("true"); in waitForPowerListenerSet() 305 String[] lines = fetchServiceDumpsys().split("\n"); in waitForPowerListenerCleared() 308 return line.split(":")[1].trim().equals("false"); in waitForPowerListenerCleared() 336 String[] lines = cpmsDump.split("\n"); in isSuspendSupported() 339 return line.split(":")[1].trim().equals("true"); in isSuspendSupported() 380 String[] lines = fetchServiceDumpsys().split("\n"); in listenerStatesMatchExpected() 383 return line.split(":")[1].trim().contains("true"); in listenerStatesMatchExpected()
|
/cts/apps/CameraITS/tools/ |
D | run_sensor_fusion.py | 47 words = line.split(' ') 98 get_argv_vals = lambda x: x.split('=')[1] 101 camera_id_combos = str(get_argv_vals(s)).split(',') 114 camera_id_combos = test_params_content['camera'].split(',') 177 root_output_path = one_line.split(':')[1].strip()
|
/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()
|
/cts/common/device-side/bedstead/btest/ |
D | btest | 650 target_parts = target.split(":", 1) 793 …-e tests_regex " + ".*".join([re.escape(re.escape(re.escape(s))) for s in class_method.split("*")]) 808 for line in output.split("\n"): 816 execute_shell_command("Test", self.args, command.split(" ")) 841 test_name_parts = re.split('[#\[\]]', result["testName"]) 916 numTests = int(output.split("tests=", 2)[1].strip()) 933 result["index"] = int(output.split("index=", 2)[1].split(",", 2)[0]) 934 result["testName"] = output.split("testName=", 2)[1].split(", result=", 2)[0] 935 result["isFinished"] = output.split("isFinished=", 2)[1].strip() == "true" 937 result["result"] = int(output.split("result=", 2)[1].split(",", 2)[0]) [all …]
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | ProcessStatsDumpsysTest.java | 84 final String[] values = line.split(","); in commaSplit() 187 String[] subparts = parts[i].split(":"); in checkPkgProc() 226 String[] subparts = parts[i].split(":"); in checkPkgPss() 247 String[] subparts = parts[i].split(":"); in checkPkgSvc() 267 String[] subparts = pssStr.split(":"); in checkPkgKills() 278 String[] subparts = parts[i].split(":"); in checkProc() 291 String[] subparts = parts[i].split(":"); in checkPss() 309 String[] subparts = pssStr.split(":"); in checkKills() 317 String[] subparts = parts[i].split(":"); in checkTotal() 413 final String[] lines = procstats.split("\n"); in checkWithProcStatsApp()
|
/cts/apps/CameraITS/tests/scene6/ |
D | test_preview_video_zoom_match.py | 99 preview_recording_obj['recordedOutputPath'].split('/')[-1]) 130 video_recording_obj['recordedOutputPath'].split('/')[-1]) 180 quality = quality_profile_id_pair.split(':')[0] 181 profile_id = quality_profile_id_pair.split(':')[-1] 197 size = common_size.split('x') 231 width = int(size.split('x')[0]) 232 height = int(size.split('x')[1])
|