Home
last modified time | relevance | path

Searched refs:substring (Results 1 – 25 of 252) sorted by relevance

1234567891011

/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DCecMessage.java39 params.append(":" + rawParams.substring(position, endPosition)); in formatParams()
78 String params = getNibbles(message).substring(4); in getAsciiString()
82 builder.append((char) hexStringToInt(params.substring(i - 2, i))); in getAsciiString()
89 return getNibbles(message).substring(4); in getParamsAsString()
94 return hexStringToInt(getNibbles(message).substring(4)); in getParams()
101 return hexStringToInt(getNibbles(message).substring(paramStart, end)); in getParams()
111 return hexStringToInt(getNibbles(message).substring(4).substring(start, end)); in getParams()
118 String param = getNibbles(message).substring(0, 1); in getSource()
124 String param = getNibbles(message).substring(1, 2); in getDestination()
130 String param = getNibbles(message).substring(2, 4); in getOperand()
/cts/tests/signature/lib/common/src/android/signature/cts/
DDexMethod.java79 return signature.substring(1, paren); in parseSignature()
82 return signature.substring(paren + 1, length); in parseSignature()
92 typeSequence = typeSequence.substring(type.length()); in parseDexTypeList()
105 typeList = typeList.substring(1); in firstDexTypeFromList()
118 type = typeList.substring(0, 1); in firstDexTypeFromList()
120 type = typeList.substring(0, typeList.indexOf(";") + 1); in firstDexTypeFromList()
DDexMember.java70 type = type.substring(1); in dexToJavaType()
93 javaType = type.substring(1, type.length() - 1).replace('/', '.'); in dexToJavaType()
125 ? type.substring(1, type.length() - 1).replace('/', '.') in typeToClass()
/cts/tools/cts-api-coverage/src/com/android/cts/ctsprofiles/
DUtils.java29 String className = classSignature.substring(splitPos + 1); in getPackageClass()
32 packageName = classSignature.substring(0, splitPos); in getPackageClass()
45 packageName = packageClass.substring(0, splitPos); in getPackageClassFromASM()
47 String className = packageClass.substring(splitPos + 1); in getPackageClassFromASM()
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/
DTypeUtils.java76 String rawType = "kotlin." + kotlinType.substring(0, kotlinType.indexOf("<")); in convertToKotlinCompatibleType()
78 "kotlin." + kotlinType.substring( in convertToKotlinCompatibleType()
121 TypeMirror typeArgs = typeForString(typeName.substring( in typeForString()
129 typeForString(typeName.substring(0, typeName.length() - 2), types, elements)); in typeForString()
173 return fullyQualifiedName.substring(0, fullyQualifiedName.lastIndexOf(".")); in typePackageName()
177 return clazz.substring(clazz.lastIndexOf(".") + 1); in typeSimpleName()
183 .substring(clazz.lastIndexOf(".")); in parameterizedTypeWrapperName()
DMethodSignature.java74 String frameworkClass = apiString.substring(0, apiString.indexOf(",")); in forApiString()
75 String method = apiString.substring(apiString.indexOf(",") + 1); in forApiString()
79 String name = methodParts[3].substring(0, methodParts[3].indexOf("(")); in forApiString()
86 String name = methodParts[2].substring(0, methodParts[2].indexOf("(")); in forApiString()
102 String params = method.substring(method.indexOf("(") + 1, method.indexOf(")")) in parameterTypes()
/cts/tools/cfassembler/src/dxconvext/
DClassFileParser.java66 String pckPath = fileName.substring(srcDir.length() + 1); in process()
68 String pck = pckPath.substring(0, pckPath.lastIndexOf("/")); in process()
70 String cName = pckPath.substring(pck.length() + 1); in process()
71 cName = cName.substring(0, cName.lastIndexOf(".")); in process()
82 String outFile = absSrcFilePath.substring(0, absSrcFilePath in process()
106 String className = fixedPathName.substring(0, fixedPathName.lastIndexOf(".")); in processFileBytes()
265 return path.substring(index + 3); in fixPath()
269 return path.substring(2); in fixPath()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1UTCTime.java181 result = result.substring(0, result.length() - 1); in retrieveResult()
197 year = Integer.parseInt(result.substring(0, yearLength)); in retrieveResult()
206 month = Integer.parseInt(result.substring(yearLength, yearLength + 2)); in retrieveResult()
207 day = Integer.parseInt(result.substring(yearLength + 2, yearLength + 4)); in retrieveResult()
208 hour = Integer.parseInt(result.substring(yearLength + 4, yearLength + 6)); in retrieveResult()
209 minute = Integer.parseInt(result.substring(yearLength + 6, yearLength + 8)); in retrieveResult()
211 second = Integer.parseInt(result.substring(yearLength + 8, yearLength + 10)); in retrieveResult()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DRcParser.java70 String file = service.getFile().substring(1); in getDependencies()
80 String file = importRc.substring(1); in getDependencies()
165 serviceBld.setClazz(sTrimLine.substring(OPTION_CLASS.length())); in parseService()
167 serviceBld.setUser(sTrimLine.substring(OPTION_USER.length())); in parseService()
169 serviceBld.setGroup(sTrimLine.substring(OPTION_GROUP.length())); in parseService()
171 serviceBld.setGroup(sTrimLine.substring(OPTION_WRITEPID.length())); in parseService()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildDalvikSuite.java90 String pName = fqcn.substring(0, lastDotPos); in handleTest()
91 String classOnlyName = fqcn.substring(lastDotPos + 1); in handleTest()
136 comment = "Normal #" + method.substring(5); in handleTest()
139 comment = "Boundary #" + method.substring(5); in handleTest()
142 comment = "Exception #" + method.substring(5); in handleTest()
145 comment = "Verifier #" + method.substring(7); in handleTest()
197 details = details.substring(0, 1).toUpperCase() in handleTest()
198 + details.substring(1); in handleTest()
DBuildCTSHostSources.java145 String lastPackageComponent = modPackage.substring(lastDot + 1); in openCTSHostFileFor()
148 modPackage = modPackage.substring(0, lastDot); in openCTSHostFileFor()
202 String pName = fqcn.substring(0, lastDotPos); in handleTest()
203 String classOnlyName = fqcn.substring(lastDotPos + 1); in handleTest()
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt140 substring: String in <lambda>()
142 findViewWithTextContaining(substring) in <lambda>()
143 ?: throw RuntimeException("Unable to find view with text containing: $substring") in <lambda>()
156 substring: String in <lambda>()
160 (it.text?.toString() ?: "").contains(substring) in <lambda>()
165 else -> throw RuntimeException("Found multiple views with text containing: $substring") in <lambda>()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java196 String blockMode = fileName.substring(0, 3); in runTestsForKatFile()
198 blockMode = fileName.substring(0, 4); in runTestsForKatFile()
232 section = line.substring(1, line.length() - 1); in runTestsForKatFile()
245 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile()
246 String value = line.substring(delimiterIndex + 1).trim(); in runTestsForKatFile()
278 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile()
279 String value = line.substring(delimiterIndex + 1).trim(); in runTestsForKatFile()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/sizecompatrestartbutton/
DSizeCompatRestartButtonStatsTests.java163 String substring = s.substring(physicalSize.length()); in getDisplayRealSize() local
164 if (!substring.isEmpty()) { in getDisplayRealSize()
165 return Pair.create(Integer.parseInt(substring.split("x")[0]), in getDisplayRealSize()
166 Integer.parseInt(substring.split("x")[1])); in getDisplayRealSize()
/cts/tests/tests/carrierapi/targetprep/device/src/android/carrierapi/cts/targetprep/
DApduScriptUtil.java324 responseBuilder.append(response.substring(0, response.length() - 4)); in sendApdus()
325 String lastStatusWords = response.substring(response.length() - 4); in sendApdus()
329 while (ApduResponse.SW1_MORE_RESPONSE.equals(lastStatusWords.substring(0, 2))) { in sendApdus()
330 int moreResponseLength = Integer.parseInt(lastStatusWords.substring(2), 16); in sendApdus()
358 responseBuilder.append(response.substring(0, response.length() - 4)); in sendApdus()
359 lastStatusWords = response.substring(response.length() - 4); in sendApdus()
366 lastStatusWords.substring(0, 2))) { in sendApdus()
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/pm/
DComponentEnabledStateCommand.java65 mCurrentState = mCommandReturn.substring(GET_STATE_RETURN_HEADER.length()).trim(); in parseCommandReturn()
73 mNewState = mCommandReturn.substring(NEW_STATE_RETURN_HEADER.length()).trim(); in parseCommandReturn()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DDumpSysTest.kt125 dump.substring(headerIndex0, headerIndex1), in dumpCurrentState()
126 dump.substring(headerIndex1, headerIndex2), in dumpCurrentState()
127 dump.substring(headerIndex2) in dumpCurrentState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java159 clientRequest = clientRequest.substring(0, total); in run()
212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); in processClientRequest()
231 String sensorList = request.substring(REQUEST_SENSOR_ON.length()).trim(); in processClientRequest()
234 String sensorList = request.substring(REQUEST_SENSOR_ON.length()).trim(); in processClientRequest()
237 final String message = request.substring(REQUEST_SHOW_MESSAGE.length()); in processClientRequest()
241 String message = request.substring(REQUEST_USER_RESPONSE.length()); in processClientRequest()
245 String testResult = request.substring(REQUEST_SET_TEST_RESULT.length()); in processClientRequest()
248 String command = request.substring(REQUEST_RAISE.length()); in processClientRequest()
252 final String message = request.substring(7 + testName.length()); in processClientRequest()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/
DLogcat.java80 return log.substring(Math.max(0, log.length() - 500)); in dump()
196 String methodName = className.substring(methodNameSeparator + 1); in extractStackTraceElement()
197 className = className.substring(0, methodNameSeparator); in extractStackTraceElement()
200 elementParts[1].substring( in extractStackTraceElement()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/
DClassInfo.java64 return name.substring(dollar + 1); // strip the package name in getSimpleName()
69 return name.substring(dot + 1); // strip the package name in getSimpleName()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/
DComponentNameUtils.java36 ? className.substring(packageName.length()) : className); in buildComponentName()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/
DAppCompatStateStatsTests.java277 String substring = s.substring(physicalSize.length()); in getDisplayRealSize() local
278 if (!substring.isEmpty()) { in getDisplayRealSize()
279 return Pair.create(Integer.parseInt(substring.split("x")[0]), in getDisplayRealSize()
280 Integer.parseInt(substring.split("x")[1])); in getDisplayRealSize()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPermissionDeviceInfo.java75 String packageName = line.substring("Package: ".length()); in collectSignaturePermissionAllowlist()
80 String permissionName = line.substring("Permission: ".length()); in collectSignaturePermissionAllowlist()
/cts/hostsidetests/hdmicec/app/src/com/android/server/hdmi/
DSadConfigurationReaderTest.java91 Log.i(TAG, audioCodecFormatsString.substring(1, audioCodecFormatsString.length() - 1)); in parseSadConfigXML()
93 .substring(1, shortAudioDescriptorsString.length() - 1)); in parseSadConfigXML()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DFcpTemplate.java100 String value = fcpResponse.substring(index * 2, (index + length) * 2); in parseFcpTemplate()
105 String status = fcpResponse.substring(fcpResponse.length() - 4); in parseFcpTemplate()

1234567891011