/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BatteryStatsDumpsysTest.java | 41 ArrayList<String> parts = new ArrayList<>(); in parseCsv() local 54 parts.add(splitString); in parseCsv() 59 parts.add(s.substring(1, s.length() - 1)); in parseCsv() 65 parts.add(s.substring(1)); in parseCsv() 68 return parts.toArray(new String[parts.size()]); in parseCsv() 94 String[] parts = parseCsv(line); in testBatterystatsOutput() local 95 assertInteger(parts[0]); // old version in testBatterystatsOutput() 96 assertInteger(parts[1]); // UID in testBatterystatsOutput() 97 switch (parts[2]) { // aggregation type in testBatterystatsOutput() 104 fail("malformed stat: " + parts[2]); in testBatterystatsOutput() [all …]
|
D | ProcessStatsDumpsysTest.java | 104 String[] parts = commaSplit(line); in checkProcStateOutput() local 105 seenTags.add(parts[0]); in checkProcStateOutput() 107 switch (parts[0]) { in checkProcStateOutput() 109 assertEquals(2, parts.length); in checkProcStateOutput() 110 assertEquals(5, Integer.parseInt(parts[1])); in checkProcStateOutput() 113 checkPeriod(parts); in checkProcStateOutput() 116 checkPkgProc(parts); in checkProcStateOutput() 119 checkPkgPss(parts, checkAvg); in checkProcStateOutput() 125 checkPkgSvc(parts); in checkProcStateOutput() 128 checkPkgKills(parts, checkAvg); in checkProcStateOutput() [all …]
|
D | StoragedDumpsysTest.java | 102 String[] parts; in testStoragedOutput() local 109 parts = line.split(","); in testStoragedOutput() 110 assertTrue(parts.length == 2); in testStoragedOutput() 111 if (!parts[0].isEmpty()) { in testStoragedOutput() 112 assertInteger(parts[0]); in testStoragedOutput() 114 assertInteger(parts[1]); in testStoragedOutput() 118 parts = line.split(" "); in testStoragedOutput() 119 assertTrue(parts.length == 9); in testStoragedOutput() 120 for (int i = 1; i < parts.length; i++) { in testStoragedOutput() 121 assertInteger(parts[i]); in testStoragedOutput() [all …]
|
D | GfxInfoDumpsysTest.java | 96 String[] parts = line.split(","); in validateProfileData() local 97 assertTrue(parts.length >= TIMESTAMP_COUNT); in validateProfileData() 99 numparts[i] = assertInteger(parts[i]); in validateProfileData()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/ |
D | MethodSignature.java | 82 String[] parts = string.split(" ", 2); in forApiString() local 85 visibility = Visibility.valueOf(parts[0].toUpperCase()); in forApiString() 89 string = parts[1]; in forApiString() 90 parts = string.split(" ", 2); in forApiString() 93 while (parts[0].equals("abstract") || parts[0].equals("final") in forApiString() 94 || parts[0].equals("static")) { in forApiString() 96 string = parts[1]; in forApiString() 97 parts = string.split(" ", 2); in forApiString() 105 returnType = typeForString(parts[0], types, elements); in forApiString() 107 string = parts[1]; in forApiString() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
D | ObjImporter.java | 93 StringTokenizer parts = new StringTokenizer(line, " "); in parse() local 94 int numTokens = parts.countTokens(); in parse() 98 String type = parts.nextToken(); in parse() 101 vertices.add(Float.parseFloat(parts.nextToken())); in parse() 102 vertices.add(Float.parseFloat(parts.nextToken())); in parse() 103 vertices.add(Float.parseFloat(parts.nextToken())); in parse() 113 parts = new StringTokenizer(line); in parse() 115 parts.nextToken(); in parse() 116 StringTokenizer subParts = new StringTokenizer(parts.nextToken(), "/"); in parse() 125 subParts = new StringTokenizer(parts.nextToken(), "/"); in parse() [all …]
|
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/ |
D | FieldSignature.java | 42 String[] parts = fieldString.split(","); in forFieldString() local 44 return new FieldSignature(/* frameworkClass= */ parts[0], in forFieldString() 45 /* name= */ parts[1], in forFieldString() 46 /* type= */ TypeUtils.typeForString(parts[2], types, elements)); in forFieldString()
|
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/ |
D | SimpleIOService.java | 45 String[] parts = line.split(":"); in getCgroupCpuset() local 46 if (parts.length >= 3 && parts[1].equals("cpuset")) { in getCgroupCpuset() 47 return parts[2]; in getCgroupCpuset()
|
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/ |
D | DalvikTest.java | 593 String[] parts = line.split(":", 2); in processNewLines() local 594 String tag = parts[0]; in processNewLines() 596 mListener.testRunStarted(mRunName, Integer.parseInt(parts[1])); in processNewLines() 599 mListener.testRunEnded(Integer.parseInt(parts[1]), in processNewLines() 603 mTest = getTestDescription(parts[1]); in processNewLines() 606 mListener.testFailed(mTest, processSerializedValue(parts[1])); in processNewLines() 608 mListener.testEnded(getTestDescription(parts[1]), in processNewLines() 623 String[] parts = name.split("#"); in getTestDescription() local 624 String className = parts[0]; in getTestDescription() 626 if (parts.length > 1) { in getTestDescription() [all …]
|
/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/ |
D | GpuWorkDumpsysTest.java | 64 String[] parts = commandResult.getStdout().split(":"); in getTestAppUid() local 69 parts.length > 2); in getTestAppUid() 71 long appUid = Long.parseLong(parts[2].trim()); in getTestAppUid()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconMaskTest.java | 48 public static void L(String s, Object... parts) { in L() argument 49 Log.d(TAG, (parts.length == 0) ? s : String.format(s, parts)); in L()
|
D | AdaptiveIconDrawableTest.java | 51 public static void L(String s, Object... parts) { in L() argument 52 Log.d(TAG, (parts.length == 0) ? s : String.format(s, parts)); in L()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 185 String[] parts = line.split("\\s+"); in writeClassFile() local 186 for (int i = 0; i < parts.length; i++) { in writeClassFile() 187 String part = parts[i].trim(); in writeClassFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | ImmersiveAudioActivity.java | 176 String[] parts = versionString.split("\\."); in convertVersion() local 177 return Integer.parseInt(parts[0]) * 10000 in convertVersion() 178 + Integer.parseInt(parts[1]) * 100 in convertVersion() 179 + Integer.parseInt(parts[2]); in convertVersion()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BaseDefaultPermissionGrantPolicyTest.java | 160 String[] parts = permissionString.trim().split("\\s+"); in setException() local 161 if (parts.length != 2) { in setException() 165 permissionsMap.put(parts[0], Boolean.valueOf(parts[1]) ? FIXED : NOT_FIXED); in setException() 184 String[] parts = permissionString.trim().split("\\s+"); in setExceptionWithMetadata() local 185 if (parts.length != 2) { in setExceptionWithMetadata() 189 permissionsMap.put(parts[0], Boolean.valueOf(parts[1]) ? FIXED : NOT_FIXED); in setExceptionWithMetadata()
|
/cts/tools/utils/cts/ |
D | tools.py | 86 parts = name.split('.') 87 self.root_suite.Add(parts)
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | FakeCarrierMessagingService.java | 59 public void onSendMultipartTextSms(List<String> parts, int subId, in onSendMultipartTextSms() argument
|
D | SmsManagerTest.java | 706 ArrayList<String> parts = divideMessage(LONG_TEXT); in sendMultipartTextMessageIfSupported() local 707 numPartsSent = parts.size(); in sendMultipartTextMessageIfSupported() 714 sendMultiPartTextMessage(mDestAddr, parts, sentIntents, deliveryIntents, addMessageId); in sendMultipartTextMessageIfSupported() 928 protected void sendMultiPartTextMessage(String destAddr, ArrayList<String> parts, in sendMultiPartTextMessage() argument 933 getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, in sendMultiPartTextMessage() 936 getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, in sendMultiPartTextMessage() 939 getSmsManager().sendMultipartTextMessage(destAddr, null, parts, sentIntents, in sendMultiPartTextMessage()
|
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/ |
D | DalvikTestRunner.java | 174 String[] parts = fullName.split("[\\(\\)]"); in shouldRun() local 175 String className = parts[1]; in shouldRun() 176 String methodName = String.format("%s#%s", className, parts[0]); in shouldRun()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | SELinuxHostTest.java | 1516 String[] parts = domainLabel.split(":"); in createProcMap() local 1517 if (parts.length > 4) { in createProcMap() 1520 domainLabel = String.join(":", parts[0], parts[1], parts[2], parts[3]); in createProcMap()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 1215 String[] parts = value.split("x"); 1216 assertEquals(2, parts.length); 1217 return new Point(Integer.parseInt(parts[0]), Integer.parseInt(parts[1]));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 784 String[] parts = perfMetricsResult.split(":", 2); // Limit to 2 to avoid splitting values in addMultiCamPerfMetricsResult() local 785 if (parts.length == 2) { in addMultiCamPerfMetricsResult() 786 String key = parts[0].trim().replaceFirst(TEST_PATTERN, ""); in addMultiCamPerfMetricsResult() 787 String value = parts[1].trim(); in addMultiCamPerfMetricsResult()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 2297 String[] parts = getExternalFilesDir().getAbsolutePath().split("/"); in assertVolumeType() local 2298 assertThat(parts.length).isAtLeast(3); in assertVolumeType() 2299 assertThat(parts[1]).isEqualTo("storage"); in assertVolumeType() 2301 assertThat(parts[2]).isEqualTo("emulated"); in assertVolumeType() 2303 assertThat(parts[2]).isNotEqualTo("emulated"); in assertVolumeType()
|
/cts/hostsidetests/sustainedperf/dhrystone/ |
D | Rationale | 76 In general, version 2 follows - in the parts that are significant for
|