Home
last modified time | relevance | path

Searched refs:prefixLength (Results 1 – 7 of 7) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCommon.java91 int prefixLength = (int) Math.round(PREFIX_LENGTH_S * rate); in prefix() local
92 double[] samplePrefixArray = new double[prefixLength]; in prefix()
93 for (int i = 0; i < prefixLength; i++) { in prefix()
94 double index = (double) i / prefixLength * (prefixArray.length - 1); in prefix()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java155 int prefixLength = Integer.parseInt(prefixAndMask[1]); in start() local
156 builder.addAddress(address, prefixLength); in start()
171 int prefixLength = Integer.parseInt(prefixAndMask[1]); in start() local
172 builder.addRoute(address, prefixLength); in start()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandInstallTest.java2728 final int prefixLength = "package:".length(); in isAppInstalled() local
2730 line -> line.length() > prefixLength && line.substring(prefixLength).equals( in isAppInstalled()
2737 final int prefixLength = "sdk:".length(); in isSdkInstalled() local
2739 .anyMatch(line -> line.length() > prefixLength && line.substring( in isSdkInstalled()
2740 prefixLength).equals(sdkString)); in isSdkInstalled()
2771 final int prefixLength = prefix.length(); in getSplits() local
2778 return splits.substring(prefixLength, splits.length() - 1); in getSplits()
DChecksumsTest.java1633 final int prefixLength = "package:".length(); in isPackagePresent() local
1635 .anyMatch(line -> line.substring(prefixLength).equals(packageName)); in isPackagePresent()
1641 final int prefixLength = prefix.length(); in getAppCodePath() local
1644 .map(line -> line.substring(prefixLength)) in getAppCodePath()
DPackageManagerShellCommandIncrementalTest.java1199 final int prefixLength = prefix.length(); in parsePackageDump() local
1206 return splits.substring(prefixLength); in parsePackageDump()
DPackageManagerTest.java2028 final int prefixLength = "package:".length(); in isPackagePresent() local
2030 line -> line.length() > prefixLength && line.substring(prefixLength).equals( in isPackagePresent()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java1072 final int prefixLength = "package:".length(); in getEnabledSystemPackageNames() local
1075 .map(line -> line.substring(prefixLength)) in getEnabledSystemPackageNames()