/packages/modules/IPsec/src/java/com/android/internal/net/utils/ |
D | Log.java | 60 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/ |
D | StructNdOptPref64Test.java | 55 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/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructNdOptPref64.java | 59 @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/services/Telephony/src/com/android/services/telephony/ |
D | Log.java | 43 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/apps/Contacts/tests/src/com/android/contacts/format/ |
D | TextHighlighterTest.java | 50 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/NetworkStack/common/moduleutils/src/android/net/shared/ |
D | InitialConfiguration.java | 135 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/ |
D | PhonebookEntry.java | 32 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 85 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/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | SwipeSharedState.java | 153 public void dump(String prefix, PrintWriter pw) { in dump() argument 154 pw.println(prefix + "goingToLauncher=" + goingToLauncher); in dump() 155 pw.println(prefix + "canGestureBeContinued=" + canGestureBeContinued); in dump() 156 … pw.println(prefix + "recentsAnimationFinishInterrupted=" + recentsAnimationFinishInterrupted); in dump() 157 pw.println(prefix + "nextRunningTaskId=" + nextRunningTaskId); in dump() 158 pw.println(prefix + "lastAnimationCancelled=" + mLastAnimationCancelled); in dump() 159 pw.println(prefix + "lastAnimationRunning=" + mLastAnimationRunning); in dump() 160 pw.println(prefix + "logTraceId=" + mLogId); in dump()
|
/packages/apps/Contacts/src/com/android/contacts/format/ |
D | TextHighlighter.java | 47 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/apps/Launcher3/src/com/android/launcher3/model/ |
D | BgDataModel.java | 145 public synchronized void dump(String prefix, FileDescriptor fd, PrintWriter writer, in dump() argument 148 dumpProto(prefix, fd, writer, args); in dump() 151 writer.println(prefix + "Data Model:"); in dump() 152 writer.println(prefix + " ---- workspace items "); in dump() 154 writer.println(prefix + '\t' + workspaceItems.get(i).toString()); in dump() 156 writer.println(prefix + " ---- appwidget items "); in dump() 158 writer.println(prefix + '\t' + appWidgets.get(i).toString()); in dump() 160 writer.println(prefix + " ---- folder items "); in dump() 162 writer.println(prefix + '\t' + folders.valueAt(i).toString()); in dump() 164 writer.println(prefix + " ---- items id map "); in dump() [all …]
|
/packages/apps/Car/libs/car-settings-lib/tests/robotests/src/com/android/car/settingslib/log/ |
D | LoggerBaseTest.java | 57 NullTagLogger(String prefix) { in NullTagLogger() argument 58 super(prefix); in NullTagLogger() 69 EmptyTagLogger(String prefix) { in EmptyTagLogger() argument 70 super(prefix); in EmptyTagLogger() 84 TooLongTagLogger(String prefix) { in TooLongTagLogger() argument 85 super(prefix); in TooLongTagLogger()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | BaseActivity.java | 262 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 264 super.dump(prefix, fd, writer, args); in dump() 268 protected void dumpMisc(String prefix, PrintWriter writer) { in dumpMisc() argument 269 writer.println(prefix + "deviceProfile isTransposed=" in dumpMisc() 271 writer.println(prefix + "orientation=" + getResources().getConfiguration().orientation); in dumpMisc() 272 writer.println(prefix + "mSystemUiController: " + mSystemUiController); in dumpMisc() 273 writer.println(prefix + "mActivityFlags: " + mActivityFlags); in dumpMisc() 274 writer.println(prefix + "mForceInvisible: " + mForceInvisible); in dumpMisc()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistance.java | 77 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/DnsResolver/ |
D | DnsProxyListener.cpp | 465 bool isValidNat64Prefix(const netdutils::IPPrefix prefix) { in isValidNat64Prefix() argument 466 if (prefix.family() != AF_INET6) { in isValidNat64Prefix() 467 LOG(ERROR) << __func__ << ": Only IPv6 NAT64 prefixes are supported " << prefix.family(); in isValidNat64Prefix() 470 if (prefix.length() != 96) { in isValidNat64Prefix() 471 LOG(ERROR) << __func__ << ": Only /96 NAT64 prefixes are supported " << prefix.length(); in isValidNat64Prefix() 477 bool synthesizeNat64PrefixWithARecord(const netdutils::IPPrefix& prefix, struct hostent* hp) { in synthesizeNat64PrefixWithARecord() argument 480 if (!isValidNat64Prefix(prefix)) return false; in synthesizeNat64PrefixWithARecord() 482 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in synthesizeNat64PrefixWithARecord() 512 bool synthesizeNat64PrefixWithARecord(const netdutils::IPPrefix& prefix, addrinfo* result) { in synthesizeNat64PrefixWithARecord() argument 515 if (!isValidNat64Prefix(prefix)) return false; in synthesizeNat64PrefixWithARecord() [all …]
|
D | DnsResolverService.cpp | 240 netdutils::IPPrefix prefix{}; in getPrefix64() local 241 int res = gDnsResolv->resolverCtrl.getPrefix64(netId, &prefix); in getPrefix64() 242 *stringPrefix = prefix.toString(); in getPrefix64() 254 IPPrefix prefix; in setPrefix64() local 255 if (!IPPrefix::forString(stringPrefix, &prefix)) { in setPrefix64() 259 return statusFromErrcode(gDnsResolv->resolverCtrl.setPrefix64(netId, prefix)); in setPrefix64()
|
/packages/apps/Car/Radio/src/com/android/car/radio/service/ |
D | SkipController.java | 131 void dump(@NonNull PrintWriter pw, @NonNull String prefix) { in dump() argument 133 pw.print(prefix); pw.print("mode: "); pw.println(mSkipMode); in dump() 134 pw.print(prefix); pw.print("current index: "); pw.println(mCurrentIndex); in dump() 136 pw.print(prefix); pw.println("no favorites"); in dump() 140 pw.print(prefix); pw.print(size); pw.println(" favorites: "); in dump() 141 String prefix2 = prefix + " "; in dump()
|
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/ |
D | TemporaryDirectory.java | 67 public TemporaryDirectory(@Nullable String prefix) throws IOException { in TemporaryDirectory() argument 68 if (prefix == null) { in TemporaryDirectory() 69 prefix = TemporaryDirectory.class.getSimpleName(); in TemporaryDirectory() 71 prefix += String.valueOf(SystemClock.elapsedRealtimeNanos()); in TemporaryDirectory() 73 mDirectory = Files.createTempDirectory(prefix); in TemporaryDirectory()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameSplitterTest.java | 246 name.prefix = "\u524D"; in testGuessFullNameStyleChineseMixed() 332 private void assertSplitName(String fullName, String prefix, String givenNames, in assertSplitName() argument 336 assertEquals(prefix, name.getPrefix()); in assertSplitName() 343 private void assertJoinedName(String expected, String prefix, String givenNames, in assertJoinedName() argument 345 assertJoinedName(expected, FullNameStyle.WESTERN, prefix, givenNames, middleName, in assertJoinedName() 349 private void assertJoinedName(String expected, int nameStyle, String prefix, String givenNames, in assertJoinedName() argument 353 name.prefix = prefix; in assertJoinedName()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 213 for (String prefix : new String[] { in testIsDirectoryHidden() 219 assertDirectoryNotHidden(new File(prefix)); in testIsDirectoryHidden() 220 assertDirectoryNotHidden(new File(prefix + "/meow")); in testIsDirectoryHidden() 221 assertDirectoryNotHidden(new File(prefix + "/Android")); in testIsDirectoryHidden() 222 assertDirectoryNotHidden(new File(prefix + "/Android/meow")); in testIsDirectoryHidden() 223 assertDirectoryNotHidden(new File(prefix + "/Android/sandbox")); in testIsDirectoryHidden() 224 assertDirectoryNotHidden(new File(prefix + "/Android/sandbox/meow")); in testIsDirectoryHidden() 226 assertDirectoryHidden(new File(prefix + "/.meow")); in testIsDirectoryHidden() 227 assertDirectoryHidden(new File(prefix + "/Android/data")); in testIsDirectoryHidden() 228 assertDirectoryHidden(new File(prefix + "/Android/obb")); in testIsDirectoryHidden()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapString.java | 156 public final boolean startsWith(String prefix) { in startsWith() argument 157 if (prefix == null) { in startsWith() 161 if (me.length() < prefix.length()) { in startsWith() 164 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | Config.java | 137 void dump(String prefix, PrintWriter pw) { in dump() argument 138 pw.println(prefix + "car.bugreport.Config:"); in dump() 140 pw.print(prefix + " "); in dump() 145 pw.print(prefix + " "); in dump() 150 pw.print(prefix + " "); in dump()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 133 DhcpLeaseRepository(@NonNull IpPrefix prefix, @NonNull Set<Inet4Address> reservedAddrs, in DhcpLeaseRepository() argument 139 updateParams(prefix, reservedAddrs, leaseTimeMs, clientAddr); in DhcpLeaseRepository() 142 public void updateParams(@NonNull IpPrefix prefix, @NonNull Set<Inet4Address> reservedAddrs, in updateParams() argument 144 mPrefix = prefix; in updateParams() 146 mPrefixLength = prefix.getPrefixLength(); in updateParams() 148 mSubnetAddr = inet4AddressToIntHTH((Inet4Address) prefix.getAddress()) & mSubnetMask; in updateParams() 149 mNumAddresses = clientAddr != null ? 1 : 1 << (IPV4_ADDR_BITS - prefix.getPrefixLength()); in updateParams() 243 private static boolean isIpAddrOutsidePrefix(@NonNull IpPrefix prefix, in isIpAddrOutsidePrefix() argument 245 return addr != null && !addr.equals(IPV4_ADDR_ANY) && !prefix.contains(addr); in isIpAddrOutsidePrefix()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserCredentialsSettings.java | 304 for (final String prefix : type.prefix) { in getCredentialsForUid() 305 for (final String alias : keyStore.list(prefix, uid)) { in getCredentialsForUid() 319 !isAsymmetric(keyStore, prefix + alias, uid)) { in getCredentialsForUid() 323 … Log.e(TAG, "Unable to determine algorithm of key: " + prefix + alias, e); in getCredentialsForUid() 440 final String[] prefix; field in UserCredentialsSettings.Credential.Type 442 Type(String... prefix) { in Type() argument 443 this.prefix = prefix; in Type()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | UserCredentialsSettings.java | 304 for (final String prefix : type.prefix) { in getCredentialsForUid() 305 for (final String alias : keyStore.list(prefix, uid)) { in getCredentialsForUid() 319 !isAsymmetric(keyStore, prefix + alias, uid)) { in getCredentialsForUid() 323 … Log.e(TAG, "Unable to determine algorithm of key: " + prefix + alias, e); in getCredentialsForUid() 440 final String[] prefix; field in UserCredentialsSettings.Credential.Type 442 Type(String... prefix) { in Type() argument 443 this.prefix = prefix; in Type()
|