Searched defs:prefix (Results 1 - 25 of 282) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/util/
H A DPrefixPrinter.java21 * prefix.
32 * <p>If prefix is null or empty, the provided printer is returned, rather
35 public static Printer create(Printer printer, String prefix) { argument
36 if (prefix == null || prefix.equals("")) {
39 return new PrefixPrinter(printer, prefix);
42 private PrefixPrinter(Printer printer, String prefix) { argument
44 mPrefix = prefix;
H A DDebugUtils.java215 public static String valueToString(Class<?> clazz, String prefix, int value) { argument
219 && field.getType().equals(int.class) && field.getName().startsWith(prefix)) {
222 return field.getName().substring(prefix.length());
237 public static String flagsToString(Class<?> clazz, String prefix, int flags) { argument
243 && field.getType().equals(int.class) && field.getName().startsWith(prefix)) {
248 res.append(field.getName().substring(prefix.length())).append('|');
/frameworks/base/tools/aapt2/util/
H A DUtil_test.cpp173 StringPiece16 prefix, entry, suffix; local
174 ASSERT_TRUE(util::extractResFilePathParts(u"res/xml-sw600dp/entry.xml", &prefix, &entry,
176 EXPECT_EQ(prefix, u"res/xml-sw600dp/");
180 ASSERT_TRUE(util::extractResFilePathParts(u"res/xml-sw600dp/entry.9.png", &prefix, &entry,
183 EXPECT_EQ(prefix, u"res/xml-sw600dp/");
187 EXPECT_FALSE(util::extractResFilePathParts(u"AndroidManifest.xml", &prefix, &entry, &suffix));
188 EXPECT_FALSE(util::extractResFilePathParts(u"res/.xml", &prefix, &entry, &suffix));
190 ASSERT_TRUE(util::extractResFilePathParts(u"res//.", &prefix, &entry, &suffix));
191 EXPECT_EQ(prefix, u"res//");
/frameworks/av/services/mediaresourcemanager/
H A DServiceLog.cpp55 void ServiceLog::addLine(const char *log, const char *prefix, String8 *result) const { argument
56 if (prefix != NULL) {
57 result->append(prefix);
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java39 final String prefix, long timeout) {
45 dump.dump(lpw, prefix);
56 void dump(PrintWriter pw, String prefix); argument
38 dumpAsync(Handler handler, final Dump dump, PrintWriter pw, final String prefix, long timeout) argument
H A DLocalLog.java49 public boolean dump(PrintWriter pw, String header, String prefix) { argument
58 if (prefix != null) {
59 pw.print(prefix);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DNamedCounter.java28 public NamedCounter(String prefix, String suffix) { argument
29 mPrefix = prefix;
/frameworks/base/services/core/java/com/android/server/pm/
H A DPreferredIntentResolver.java36 protected void dumpFilter(PrintWriter out, String prefix, argument
38 filter.mPref.dump(out, prefix, filter);
/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp75 void AnnotationProcessor::writeToStream(std::ostream* out, const StringPiece& prefix) const {
79 *out << prefix << line << "\n";
81 *out << prefix << " */" << "\n"; local
85 *out << prefix << "@Deprecated\n"; local
89 *out << prefix << "@android.annotation.SystemApi\n"; local
H A DClassDefinition.cpp33 void ClassDefinition::writeToStream(const StringPiece& prefix, bool final, argument
39 ClassMember::writeToStream(prefix, final, out);
41 *out << prefix << "public "; local
47 std::string newPrefix = prefix.toString();
55 *out << prefix << "}"; local
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
H A DBridgeXmlBlockParserTest.java85 private void dump(Node node, String prefix) { argument
105 prefix,
114 dump(n, prefix + "- ");
119 dump(n, prefix);
/frameworks/compile/mclinker/lib/Script/
H A DWildcardPattern.cpp41 llvm::StringRef WildcardPattern::prefix() const { function in class:mcld::WildcardPattern
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/
H A DBrNameUtil.java83 private static boolean prefixes(CharSequence sequence, String prefix) { argument
85 if (sequence.length() > prefix.length()) {
86 int count = prefix.length();
89 if (sequence.charAt(i) != prefix.charAt(i)) {
/frameworks/native/cmds/installd/
H A Dstring_helpers.h29 const char* prefix) {
30 return target.compare(0, strlen(prefix), prefix) == 0;
28 StringStartsWith(const std::string& target, const char* prefix) argument
/frameworks/support/v4/honeycomb/android/support/v4/app/
H A DActivityCompatHoneycomb.java32 static void dump(Activity activity, String prefix, FileDescriptor fd, argument
34 activity.dump(prefix, fd, writer, args);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSessionRoute.cpp29 void SessionRoute::log(const char* prefix) argument
32 prefix, mStreamType, mSource, mSession,
/frameworks/base/core/java/android/net/
H A DIpPrefix.java28 * This class represents an IP prefix, i.e., a contiguous block of IP addresses aligned on a
29 * power of two boundary (also known as an "IP subnet"). A prefix is specified by two pieces of
33 * <li>A starting IP address (IPv4 or IPv6). This is the first IP address of the prefix.
34 * <li>A prefix length. This specifies the length of the prefix by specifing the number of bits
36 * are constant for all addresses in the prefix.
39 * For example, the prefix <code>192.0.2.0/24</code> covers the 256 IPv4 addresses from
40 * <code>192.0.2.0</code> to <code>192.0.2.255</code>, inclusive, and the prefix
60 * network byte order and a prefix length. Silently truncates the address to the prefix lengt
100 IpPrefix(String prefix) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DIMSIParameter.java9 public IMSIParameter(String imsi, boolean prefix) { argument
11 mPrefix = prefix;
49 // For a prefix match, the entire prefix must match the mcc+mnc
/frameworks/base/services/core/java/com/android/server/am/
H A DAppBindRecord.java34 void dump(PrintWriter pw, String prefix) { argument
35 pw.println(prefix + "service=" + service);
36 pw.println(prefix + "client=" + client);
37 dumpInIntentBind(pw, prefix);
40 void dumpInIntentBind(PrintWriter pw, String prefix) { argument
43 pw.println(prefix + "Per-process Connections:");
46 pw.println(prefix + " " + c);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DIMSIParameter.java9 public IMSIParameter(String imsi, boolean prefix) { argument
11 mPrefix = prefix;
52 // For a prefix match, the entire prefix must match the mcc+mnc
/frameworks/base/core/java/android/content/pm/
H A DProviderInfo.java117 public void dump(Printer pw, String prefix) { argument
118 dump(pw, prefix, DUMP_FLAG_ALL);
122 public void dump(Printer pw, String prefix, int flags) { argument
123 super.dumpFront(pw, prefix);
124 pw.println(prefix + "authority=" + authority);
125 pw.println(prefix + "flags=0x" + Integer.toHexString(flags));
126 super.dumpBack(pw, prefix, flags);
H A DServiceInfo.java83 public void dump(Printer pw, String prefix) { argument
84 dump(pw, prefix, DUMP_FLAG_ALL);
88 void dump(Printer pw, String prefix, int flags) { argument
89 super.dumpFront(pw, prefix);
90 pw.println(prefix + "permission=" + permission);
91 pw.println(prefix + "flags=0x" + Integer.toHexString(flags));
92 super.dumpBack(pw, prefix, flags);
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DSysMemUsageTable.java142 public void dump(PrintWriter pw, String prefix, int[] screenStates, int[] memStates) { argument
152 pw.print(prefix);
166 dumpCategory(pw, prefix, " Cached", bucket, SYS_MEM_USAGE_CACHED_MINIMUM);
167 dumpCategory(pw, prefix, " Free", bucket, SYS_MEM_USAGE_FREE_MINIMUM);
168 dumpCategory(pw, prefix, " ZRam", bucket, SYS_MEM_USAGE_ZRAM_MINIMUM);
169 dumpCategory(pw, prefix, " Kernel", bucket, SYS_MEM_USAGE_KERNEL_MINIMUM);
170 dumpCategory(pw, prefix, " Native", bucket, SYS_MEM_USAGE_NATIVE_MINIMUM);
176 private void dumpCategory(PrintWriter pw, String prefix, String label, int bucket, int index) { argument
177 pw.print(prefix); pw.print(label);
/frameworks/base/core/jni/
H A Dandroid_util_jar_StrictJarFile.cpp91 jstring prefix) {
92 ScopedUtfChars prefixChars(env, prefix);
90 StrictJarFile_nativeStartIteration(JNIEnv* env, jobject, jlong nativeHandle, jstring prefix) argument
/frameworks/base/core/tests/coretests/src/android/net/
H A DRouteInfoTest.java35 private IpPrefix Prefix(String prefix) { argument
36 return new IpPrefix(prefix);

Completed in 694 milliseconds

1234567891011>>