Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/packages/modules/IPsec/src/java/com/android/internal/net/utils/
DLog.java60 public void v(String prefix, String msg) { in v() argument
62 android.util.Log.v(mTAG, prefix + ": " + msg); in v()
76 public void v(String prefix, String msg, Throwable tr) { in v() argument
78 android.util.Log.v(mTAG, prefix + ": " + msg, tr); in v()
91 public void d(String prefix, String msg) { in d() argument
93 android.util.Log.d(mTAG, prefix + ": " + msg); in d()
107 public void d(String prefix, String msg, Throwable tr) { in d() argument
109 android.util.Log.d(mTAG, prefix + ": " + msg, tr); in d()
122 public void i(String prefix, String msg) { in i() argument
124 android.util.Log.i(mTAG, prefix + ": " + msg); in i()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DStructNdOptPref64Test.java55 private static IpPrefix prefix(String addrString, int prefixLength) throws Exception { in prefix() method in StructNdOptPref64Test
59 private void assertPref64OptMatches(int lifetime, IpPrefix prefix, StructNdOptPref64 opt) { in assertPref64OptMatches() argument
63 assertEquals(prefix, opt.prefix); in assertPref64OptMatches()
71 private ByteBuffer makeNdOptPref64(int lifetime, byte[] prefix, int prefixLengthCode) { in makeNdOptPref64() argument
72 if (prefix.length != 12) throw new IllegalArgumentException("Prefix must be 12 bytes"); in makeNdOptPref64()
78 .put(prefix, 0, 12); in makeNdOptPref64()
91 assertPref64OptMatches(136, prefix("2001:DB8:3:4:5:6::", 96), opt); in testParseCannedOption()
99 assertPref64OptMatches(10064, prefix("64:FF9B::", 56), opt); in testParseCannedOption()
108 assertPref64OptMatches(600, prefix(PREFIX1, 96), opt); in testParsing()
113 assertPref64OptMatches(0, prefix(PREFIX1, 64), opt); in testParsing()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java900 public void dump(String prefix, PrintWriter writer) { in dump() argument
901 writer.println(prefix + "DeviceProfile:"); in dump()
902 writer.println(prefix + "\t1 dp = " + mMetrics.density + " px"); in dump()
904 writer.println(prefix + "\tallowRotation:" + allowRotation); in dump()
905 writer.println(prefix + "\tisTablet:" + isTablet); in dump()
906 writer.println(prefix + "\tisPhone:" + isPhone); in dump()
907 writer.println(prefix + "\ttransposeLayoutWithOrientation:" in dump()
910 writer.println(prefix + "\tisLandscape:" + isLandscape); in dump()
911 writer.println(prefix + "\tisMultiWindowMode:" + isMultiWindowMode); in dump()
912 writer.println(prefix + "\tisTwoPanels:" + isTwoPanels); in dump()
[all …]
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientInfo.java186 String prefix = indent; in dump() local
187 writer.println(prefix + "VmsClient [" + mPackageName + "]"); in dump()
189 prefix = indent + " "; in dump()
190 writer.println(prefix + "UID: " + mUid); in dump()
191 writer.println(prefix + "Legacy Client: " + mLegacyClient); in dump()
192 writer.println(prefix + "Monitoring: " + mMonitoringEnabled); in dump()
195 writer.println(prefix + "Offerings:"); in dump()
197 prefix = indent + " "; in dump()
199 writer.println(prefix + "Provider [" + providerId + "]"); in dump()
203 prefix = indent + " "; in dump()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java198 private int getPrefixBaseAddress(final IpPrefix prefix) { in getPrefixBaseAddress() argument
199 return inet4AddressToIntHTH((Inet4Address) prefix.getAddress()); in getPrefixBaseAddress()
206 private IpPrefix getConflictPrefix(final IpPrefix prefix) { in getConflictPrefix() argument
207 final IpPrefix upstream = getConflictWithUpstream(prefix); in getConflictPrefix()
210 return getInUseDownstreamPrefix(prefix); in getConflictPrefix()
281 private LinkAddress getLinkAddress(final IpPrefix prefix, final int subAddress) { in getLinkAddress() argument
282 if (prefix == null) return null; in getLinkAddress()
284 final InetAddress address = intToInet4AddressHTH(getPrefixBaseAddress(prefix) | subAddress); in getLinkAddress()
293 final IpPrefix prefix = new IpPrefix(address, PREFIX_LENGTH); in findAvailablePrefixFromRange() local
295 final IpPrefix conflictPrefix = getConflictPrefix(prefix); in findAvailablePrefixFromRange()
[all …]
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructNdOptPref64.java59 @NonNull public final IpPrefix prefix; field in StructNdOptPref64
94 public StructNdOptPref64(@NonNull IpPrefix prefix, int lifetime) { in StructNdOptPref64() argument
97 Objects.requireNonNull(prefix, "prefix must not be null"); in StructNdOptPref64()
98 if (!(prefix.getAddress() instanceof Inet6Address)) { in StructNdOptPref64()
99 throw new IllegalArgumentException("Must be an IPv6 prefix: " + prefix); in StructNdOptPref64()
101 prefixLengthToPlc(prefix.getPrefixLength()); // Throw if the prefix length is invalid. in StructNdOptPref64()
102 this.prefix = prefix; in StructNdOptPref64()
126 prefix = new IpPrefix(addr, plcToPrefixLength(scaledLifetimePlc & 7)); in StructNdOptPref64()
152 buf.putShort(getScaledLifetimePlc(lifetime, prefixLengthToPlc(prefix.getPrefixLength()))); in writeToByteBuffer()
153 buf.put(prefix.getRawAddress(), 0, 12); in writeToByteBuffer()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java340 String prefix, ScanResult expected, ScanResult actual) { in assertScanResultEquals() argument
341 assertEquals(prefix + "SSID", expected.SSID, actual.SSID); in assertScanResultEquals()
342 assertEquals(prefix + "wifiSsid", expected.wifiSsid.toString(), actual.wifiSsid.toString()); in assertScanResultEquals()
343 assertEquals(prefix + "BSSID", expected.BSSID, actual.BSSID); in assertScanResultEquals()
344 assertEquals(prefix + "capabilities", expected.capabilities, actual.capabilities); in assertScanResultEquals()
345 assertEquals(prefix + "level", expected.level, actual.level); in assertScanResultEquals()
346 assertEquals(prefix + "frequency", expected.frequency, actual.frequency); in assertScanResultEquals()
347 assertEquals(prefix + "timestamp", expected.timestamp, actual.timestamp); in assertScanResultEquals()
348 assertEquals(prefix + "seen", expected.seen, actual.seen); in assertScanResultEquals()
351 private static void assertScanResultsEquals(String prefix, ScanResult[] expected, in assertScanResultsEquals() argument
[all …]
/packages/modules/NeuralNetworks/runtime/
DTypeManager.cpp47 inline bool StartsWith(std::string_view sv, std::string_view prefix) { in StartsWith() argument
48 return sv.substr(0u, prefix.size()) == prefix; in StartsWith()
214 bool TypeManager::getExtensionPrefix(const std::string& extensionName, uint16_t* prefix) { in getExtensionPrefix() argument
217 *prefix = it->second; in getExtensionPrefix()
220 *prefix = mPrefixToExtension.size(); in getExtensionPrefix()
221 mExtensionNameToPrefix[extensionName] = *prefix; in getExtensionPrefix()
229 uint16_t prefix; in getExtensionType() local
230 NN_RET_CHECK(getExtensionPrefix(extensionName, &prefix)); in getExtensionType()
231 *type = (prefix << kExtensionTypeBits) | typeWithinExtension; in getExtensionType()
235 bool TypeManager::getExtensionInfo(uint16_t prefix, const Extension** extension) const { in getExtensionInfo() argument
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DLog.java43 public static void d(String prefix, String format, Object... args) { in d() argument
45 String.format(prefix + ": " + format, args)); in d()
53 public static void i(String prefix, String format, Object... args) { in i() argument
55 String.format(prefix + ": " + format, args)); in i()
63 public static void v(String prefix, String format, Object... args) { in v() argument
65 String.format(prefix + ": " + format, args)); in v()
73 public static void w(String prefix, String format, Object... args) { in w() argument
75 String.format(prefix + ": " + format, args)); in w()
83 public static void e(String prefix, Throwable tr, String format, Object... args) { in e() argument
85 String.format(prefix + ": " + format, args), tr); in e()
[all …]
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/
DTzS2RangeFileReader.java91 for (int prefix = 0; prefix < mSuffixTableExtraInfos.length; prefix++) { in initialize()
92 int blockId = prefix + mFileFormat.getSuffixTableBlockIdOffset(); in initialize()
96 mSuffixTableExtraInfos[prefix] = in initialize()
165 int prefix = mFileFormat.extractPrefixValueFromCellId(cellId); in findEntryByCellId() local
166 SuffixTableBlock suffixTableBlock = getSuffixTableBlockForPrefix(prefix); in findEntryByCellId()
182 private SuffixTableBlock getSuffixTableBlockForPrefix(int prefix) throws IOException { in getSuffixTableBlockForPrefix() argument
183 SuffixTableExtraInfo suffixTableExtraInfo = getSuffixTableExtraInfoForPrefix(prefix); in getSuffixTableBlockForPrefix()
185 return SuffixTableBlock.createEmpty(mFileFormat, prefix); in getSuffixTableBlockForPrefix()
187 Block block = mBlockFileReader.getBlock(prefix + mFileFormat.getSuffixTableBlockIdOffset()); in getSuffixTableBlockForPrefix()
190 if (prefix != suffixTableBlock.getPrefix()) { in getSuffixTableBlockForPrefix()
[all …]
DSuffixTableExtraInfo.java43 public SuffixTableExtraInfo(int prefix, int entryCount) { in SuffixTableExtraInfo() argument
44 if (prefix < 0) { in SuffixTableExtraInfo()
45 throw new IllegalArgumentException("prefix=" + prefix + " must be >= 0"); in SuffixTableExtraInfo()
47 mPrefix = prefix; in SuffixTableExtraInfo()
65 int prefix = blockInfo.getId() - fileFormat.getSuffixTableBlockIdOffset(); in create() local
68 return new SuffixTableExtraInfo(prefix, 0 /* entryCount */); in create()
83 return new SuffixTableExtraInfo(prefix, entryCount); in create()
/packages/apps/Contacts/tests/src/com/android/contacts/format/
DTextHighlighterTest.java50 final String prefix = "TE"; in testSetText_MatchingPrefix() local
52 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix()
55 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix()
58 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix()
61 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix()
77 final String prefix = "TE"; in testSetText_NoMatchingMiddleOfWord() local
78 CharSequence seq = mTextHighlighter.applyPrefixHighlight("atest", prefix); in testSetText_NoMatchingMiddleOfWord()
81 seq = mTextHighlighter.applyPrefixHighlight("atest otest", prefix); in testSetText_NoMatchingMiddleOfWord()
84 seq = mTextHighlighter.applyPrefixHighlight("atest test", prefix); in testSetText_NoMatchingMiddleOfWord()
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp50 bool getFibonacciExtensionPrefix(const V1_3::Model& model, uint16_t* prefix) { in getFibonacciExtensionPrefix() argument
53 *prefix = model.extensionNameToPrefix[0].prefix; in getFibonacciExtensionPrefix()
59 uint16_t prefix; in isFibonacciOperation() local
60 NN_RET_CHECK(getFibonacciExtensionPrefix(model, &prefix)); in isFibonacciOperation()
61 NN_RET_CHECK_EQ(operationType, (prefix << kExtensionTypeBits) | EXAMPLE_FIBONACCI); in isFibonacciOperation()
71 uint16_t prefix; in validate() local
72 NN_RET_CHECK(getFibonacciExtensionPrefix(model, &prefix)); in validate()
73 NN_RET_CHECK(inputType == ((prefix << kExtensionTypeBits) | EXAMPLE_INT64) || in validate()
75 NN_RET_CHECK(outputType == ((prefix << kExtensionTypeBits) | EXAMPLE_TENSOR_QUANT64_ASYMM) || in validate()
144 uint16_t prefix = static_cast<int32_t>(operationType) >> kExtensionTypeBits; in findOperation() local
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java135 for (IpPrefix prefix : directlyConnectedRoutes) { in isProvisionedBy()
136 if (!any(routes, (routeSeen) -> isDirectlyConnectedRoute(routeSeen, prefix))) { in isProvisionedBy()
180 private static boolean isDirectlyConnectedRoute(RouteInfo route, IpPrefix prefix) { in isDirectlyConnectedRoute() argument
181 return !route.hasGateway() && prefix.equals(route.getDestination()); in isDirectlyConnectedRoute()
188 private static boolean isPrefixLengthCompliant(IpPrefix prefix) { in isPrefixLengthCompliant() argument
189 return isIPv4(prefix) || isCompliantIPv6PrefixLength(prefix.getPrefixLength()); in isPrefixLengthCompliant()
197 private static boolean isIPv4(IpPrefix prefix) { in isIPv4() argument
198 return prefix.getAddress() instanceof Inet4Address; in isIPv4()
205 private static boolean isIPv6DefaultRoute(IpPrefix prefix) { in isIPv6DefaultRoute() argument
206 return prefix.getAddress().equals(INET6_ANY); in isIPv6DefaultRoute()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookEntry.java32 public String prefix; field in PhonebookEntry.Name
47 n.middle)) && (Objects.equals(prefix, n.prefix) in equals()
48 || prefix != null && prefix.equals(n.prefix)) && ( in equals()
57 result = 23 * result + (prefix == null ? 0 : prefix.hashCode()); in hashCode()
72 sb.append(prefix); in toString()
132 name.prefix = n.getPrefix(); in PhonebookEntry()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiAnnotations.java37 @IntDef(prefix = {"SCAN_TYPE_"}, value = {
44 @IntDef(prefix = {"WIFI_BAND_"}, value = {
52 @IntDef(prefix = { "CHANNEL_WIDTH_" }, value = {
68 @IntDef(prefix = { "CHANNEL_WIDTH_" }, value = {
78 @IntDef(prefix = { "WIFI_STANDARD_" }, value = {
89 @IntDef(prefix = { "PROTOCOL_" }, value = {
99 @IntDef(prefix = { "KEY_MGMT_" }, value = {
119 @IntDef(prefix = { "CIPHER_" }, value = {
/packages/apps/Contacts/src/com/android/contacts/format/
DTextHighlighter.java47 public void setPrefixText(TextView view, String text, String prefix) { in setPrefixText() argument
48 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText()
72 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() argument
73 if (prefix == null) { in applyPrefixHighlight()
79 while (prefixStart < prefix.length() && in applyPrefixHighlight()
80 !Character.isLetterOrDigit(prefix.charAt(prefixStart))) { in applyPrefixHighlight()
83 final String trimmedPrefix = prefix.substring(prefixStart); in applyPrefixHighlight()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameSplitter.java85 public String prefix; field in NameSplitter.Name
102 public Name(String prefix, String givenNames, String middleName, String familyName, in Name() argument
104 this.prefix = prefix; in Name()
113 return prefix; in getPrefix()
154 prefix = values.getAsString(StructuredName.PREFIX); in fromValues()
172 putValueIfPresent(values, StructuredName.PREFIX, prefix); in toValues()
191 prefix = null; in clear()
215 return "[prefix: " + prefix + " given: " + givenNames + " middle: " + middleName in toString()
404 if (name.prefix == null && tokens.mEndPointer - tokens.mStartPointer == 1) { in splitWesternName()
524 String prefix = includePrefix ? name.prefix : null; in join() local
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java527 for (String prefix : new String[] { in testExtractRelativePath()
532 extractRelativePath(prefix + "foo.jpg")); in testExtractRelativePath()
534 extractRelativePath(prefix + "DCIM/foo.jpg")); in testExtractRelativePath()
536 extractRelativePath(prefix + "DCIM/My Vacation/foo.jpg")); in testExtractRelativePath()
542 for (String prefix : new String[] { in testExtractTopLevelDir()
547 extractTopLevelDir(prefix + "foo.jpg")); in testExtractTopLevelDir()
549 extractTopLevelDir(prefix + "DCIM/foo.jpg")); in testExtractTopLevelDir()
551 extractTopLevelDir(prefix + "DCIM/My Vacation/foo.jpg")); in testExtractTopLevelDir()
586 for (String prefix : new String[] { in testExtractTopLevelDirForCrossUser()
591 extractTopLevelDir(prefix + "foo.jpg")); in testExtractTopLevelDirForCrossUser()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java189 private void bucketValueAndVerify(String prefix, long value, SparseIntArray h, in bucketValueAndVerify() argument
192 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
195 private void bucketValueAndVerify(String prefix, int value, SparseIntArray h, int[] hp, in bucketValueAndVerify() argument
198 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
201 private void validateProtoHistBucket(String prefix, MetricsUtils.GenericBucket bucket, in validateProtoHistBucket() argument
203 collector.checkThat(prefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket()
204 collector.checkThat(prefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket()
205 collector.checkThat(prefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
/packages/apps/ThemePicker/src/com/android/customization/model/
DResourcesApkProvider.java48 protected String getItemStringFromStub(String prefix, String itemName) { in getItemStringFromStub() argument
49 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemStringFromStub()
54 protected Drawable getItemDrawableFromStub(String prefix, String itemName) { in getItemDrawableFromStub() argument
55 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemDrawableFromStub()
61 protected int getItemColorFromStub(String prefix, String itemName) { in getItemColorFromStub() argument
62 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemColorFromStub()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java392 for (String prefix : new String[] { in testShouldScanPathAndIsPathHidden()
396 assertShouldScanPathAndIsPathHidden(true, false, new File(prefix)); in testShouldScanPathAndIsPathHidden()
397 assertShouldScanPathAndIsPathHidden(true, false, new File(prefix + "/meow")); in testShouldScanPathAndIsPathHidden()
398 assertShouldScanPathAndIsPathHidden(true, false, new File(prefix + "/Android/meow")); in testShouldScanPathAndIsPathHidden()
400 assertShouldScanPathAndIsPathHidden(true, true, new File(prefix + "/.meow/dir")); in testShouldScanPathAndIsPathHidden()
403 new File(prefix + "/Android/data/meow")); in testShouldScanPathAndIsPathHidden()
405 new File(prefix + "/Android/obb/meow")); in testShouldScanPathAndIsPathHidden()
409 new File(prefix + "/Pictures/.thumbnails/meow")); in testShouldScanPathAndIsPathHidden()
411 new File(prefix + "/Movies/.thumbnails/meow")); in testShouldScanPathAndIsPathHidden()
413 new File(prefix + "/Music/.thumbnails/meow")); in testShouldScanPathAndIsPathHidden()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java77 boolean prefix = true; in getDistance()
80 prefix = false; in getDistance()
84 if (prefix) { in getDistance()
159 int prefix = 0; in getDistance() local
164 prefix++; in getDistance()
167 return jaro + Math.min(0.1f, 1f / length2) * prefix * (1 - jaro); in getDistance()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMboOceConstants.java47 @IntDef(prefix = { "MBO_OCE_AID_" }, value = {
85 @IntDef(prefix = { "BTM_RESPONSE_STATUS_" }, value = {
118 @IntDef(flag = true, prefix = { "BTM_DATA_FLAG_" }, value = {
145 @IntDef(prefix = { "MBO_TRANSITION_REASON_" }, value = {
169 @IntDef(prefix = { "MBO_CELLULAR_DATA_CONNECTION_" }, value = {
189 @IntDef(prefix = { "MBO_ASSOC_DISALLOWED_REASON_" }, value = {
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeyValueListParser.java258 public void dump(PrintWriter pw, String prefix) { in dump() argument
259 pw.print(prefix); in dump()
306 public void dump(PrintWriter pw, String prefix) { in dump() argument
307 pw.print(prefix); in dump()
354 public void dump(PrintWriter pw, String prefix) { in dump() argument
355 pw.print(prefix); in dump()
402 public void dump(PrintWriter pw, String prefix) { in dump() argument
403 pw.print(prefix); in dump()

12345678910>>...13