Home
last modified time | relevance | path

Searched refs:className (Results 1 – 25 of 263) sorted by relevance

1234567891011

/aosp14/frameworks/base/tools/codegen/src/com/android/codegen/
H A DInputSignaturesComputation.kt117 if (className.endsWith("[]")) return getFullClassName(className.removeSuffix("[]")) + "[]"
119 if (className.matches("\\.[a-z]".toRegex())) return className //qualified name
121 …if ("." in className) return getFullClassName(className.substringBeforeLast(".")) + "." + classNam…
133 it.nameAsString == className
136 if (className == CANONICAL_BUILDER_CLASS || className == BASE_BUILDER_CLASS) {
137 return thisClassPrefix + className
140 constDefs.find { it.AnnotationName == className }?.let { return thisClassPrefix + className }
143 return "java.lang.$className"
146 if (className[0].isLowerCase()) return className //primitive
148 if (className[0] == '?') return className //wildcard
[all …]
/aosp14/frameworks/base/core/java/android/app/
H A DAppComponentFactory.java74 @NonNull String className) in instantiateApplication() argument
76 return (Application) cl.loadClass(className).newInstance(); in instantiateApplication()
92 public @NonNull Activity instantiateActivity(@NonNull ClassLoader cl, @NonNull String className, in instantiateActivity() argument
95 return (Activity) cl.loadClass(className).newInstance(); in instantiateActivity()
108 @NonNull String className, @Nullable Intent intent) in instantiateReceiver() argument
110 return (BroadcastReceiver) cl.loadClass(className).newInstance(); in instantiateReceiver()
127 @NonNull String className, @Nullable Intent intent) in instantiateService() argument
129 return (Service) cl.loadClass(className).newInstance(); in instantiateService()
145 @NonNull String className) in instantiateProvider() argument
147 return (ContentProvider) cl.loadClass(className).newInstance(); in instantiateProvider()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIAppComponentFactoryBase.kt79 val app = super.instantiateApplicationCompat(cl, className)
92 val contentProvider = super.instantiateProviderCompat(cl, className)
116 className: String,
124 return componentHelper.resolveActivity(className)
125 ?: super.instantiateActivityCompat(cl, className, intent)
130 className: String,
138 return componentHelper.resolveService(className)
139 ?: super.instantiateServiceCompat(cl, className, intent)
144 className: String,
152 return componentHelper.resolveBroadcastReceiver(className)
[all …]
/aosp14/frameworks/base/tests/utils/testutils/java/com/android/test/filters/
H A DSelectTest.java212 final String className = getClassName(selectTestArg); in add() local
214 if (className == null) { in add()
239 String packageName = getPackageName(className); in accept()
273 final String className = getClassName(selectTestArg); in add() local
285 Set<String> methodSet = mMethodSetMap.get(className); in add()
287 if (mMethodSetMap.containsKey(className)) { in add()
294 mMethodSetMap.put(className, methodSet); in add()
304 if (!mMethodSetMap.containsKey(className)) { in accept()
314 for (String className : mMethodSetMap.keySet()) { in toString()
315 joiner.add(toString(className, mMethodSetMap.get(className))); in toString()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DViewTraversalTracingStrings.java47 String className = v.getClass().getSimpleName(); in ViewTraversalTracingStrings() local
48 classSimpleName = className; in ViewTraversalTracingStrings()
49 onMeasureBeforeLayout = getTraceName("onMeasureBeforeLayout", className, v); in ViewTraversalTracingStrings()
50 onMeasure = getTraceName("onMeasure", className, v); in ViewTraversalTracingStrings()
51 onLayout = getTraceName("onLayout", className, v); in ViewTraversalTracingStrings()
52 requestLayoutStacktracePrefix = "requestLayout " + className; in ViewTraversalTracingStrings()
55 private String getTraceName(String sectionName, String className, View v) { in getTraceName() argument
59 out.append(className); in getTraceName()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
H A DContextComponentResolver.java55 public Activity resolveActivity(String className) { in resolveActivity() argument
56 return resolve(className, mActivityCreators); in resolveActivity()
63 public BroadcastReceiver resolveBroadcastReceiver(String className) { in resolveBroadcastReceiver() argument
64 return resolve(className, mBroadcastReceiverCreators); in resolveBroadcastReceiver()
71 public RecentsImplementation resolveRecents(String className) { in resolveRecents() argument
72 return resolve(className, mRecentsCreators); in resolveRecents()
79 public Service resolveService(String className) { in resolveService() argument
80 return resolve(className, mServiceCreators); in resolveService()
83 private <T> T resolve(String className, Map<Class<?>, Provider<T>> creators) { in resolve() argument
85 Class<?> clazz = Class.forName(className); in resolve()
H A DContextComponentHelper.java30 Activity resolveActivity(String className); in resolveActivity() argument
33 RecentsImplementation resolveRecents(String className); in resolveRecents() argument
36 Service resolveService(String className); in resolveService() argument
39 BroadcastReceiver resolveBroadcastReceiver(String className); in resolveBroadcastReceiver() argument
/aosp14/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DTestCaseCollector.java52 for (String className : classNames) { in addTestClasses()
53 addTestClass(className); in addTestClasses()
65 public void addTestClass(String className) throws ClassNotFoundException { in addTestClass() argument
66 int hashPos = className.indexOf('#'); in addTestClass()
69 methodName = className.substring(hashPos + 1); in addTestClass()
70 className = className.substring(0, hashPos); in addTestClass()
72 addTestClass(className, methodName); in addTestClass()
83 public void addTestClass(String className, String methodName) throws ClassNotFoundException { in addTestClass() argument
84 Class<?> clazz = mClassLoader.loadClass(className); in addTestClass()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DBinderLogger.kt165 if (previousStackElement.className?.endsWith("\$Stub\$Proxy") == true) {
171 val className = stackElement.className regex
173 className != BinderLogger::class.java.name &&
174 (className.startsWith(SYSUI_PKG) || className.startsWith(KEYGUARD_PKG))
230 val className = stackFrame.className regex
231 val stubDefIndex = className.indexOf("\$Stub\$Proxy")
232 return if (stubDefIndex > 0) className.substring(0, stubDefIndex) else className
277 with(Class.forName(stackFrame.className)) {
280 } finally {} ?: stackFrame.className
/aosp14/frameworks/base/test-runner/src/android/test/
H A DTestPrinter.java48 private void started(String className) { in started() argument
50 Log.i(mTag, "started: " + className); in started()
54 private void finished(String className) { in finished() argument
56 Log.i(mTag, "finished: " + className); in finished()
60 private void passed(String className) { in passed() argument
62 Log.i(mTag, "passed: " + className); in passed()
66 private void failed(String className, Throwable exception) { in failed() argument
67 Log.i(mTag, "failed: " + className); in failed()
H A DClassPathPackageInfoSource.java85 for (String className : classNames) { in createPackageInfo()
86 if (className.endsWith(".R") || className.endsWith(".Manifest")) { in createPackageInfo()
93 topLevelClasses.add(Class.forName(className, false, in createPackageInfo()
99 + "Make sure it is in your apk. Class name: '" + className in createPackageInfo()
165 String className = apkClassNames.nextElement(); in findClassesInApk() local
167 if (className.startsWith(packageName)) { in findClassesInApk()
169 int lastPackageSeparator = className.lastIndexOf('.'); in findClassesInApk()
171 subPackageName = className.substring(0, lastPackageSeparator); in findClassesInApk()
175 } else if (isToplevelClass(className)) { in findClassesInApk()
176 classNames.add(className); in findClassesInApk()
/aosp14/frameworks/base/core/java/android/content/
H A DComponentName.java170 String className) { in appendShortClassName() argument
171 if (className.startsWith(packageName)) { in appendShortClassName()
173 int CN = className.length(); in appendShortClassName()
175 sb.append(className, PN, CN); in appendShortClassName()
179 sb.append(className); in appendShortClassName()
183 String className) { in printShortClassName() argument
184 if (className.startsWith(packageName)) { in printShortClassName()
186 int CN = className.length(); in printShortClassName()
188 pw.write(className, PN, CN-PN); in printShortClassName()
192 pw.print(className); in printShortClassName()
[all …]
/aosp14/frameworks/base/tools/bit/
H A Daapt.cpp32 Apk::HasActivity(const string& className) in HasActivity() argument
133 if (className.length() == 0) { in full_class_name()
136 if (className[0] == '.') { in full_class_name()
137 return packageName + className; in full_class_name()
139 if (className.find('.') == string::npos) { in full_class_name()
140 return packageName + "." + className; in full_class_name()
142 return className; in full_class_name()
148 if (starts_with(packageName, className)) { in pretty_component_name()
150 size_t cn = className.length(); in pretty_component_name()
151 if (cn > pn && className[pn] == '.') { in pretty_component_name()
[all …]
/aosp14/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
H A DCodeUtils.kt35 fun checkWildcardStaticImported(code: CompilationUnit, className: String, fileName: String) {
38 if (im.isStatic && im.isAsterisk && im.name.toString() == className) {
39 throw IllegalImportException("Wildcard static imports of $className " +
45 fun isClassImportedOrSamePackage(code: CompilationUnit, className: String): Boolean {
46 val packageName = className.substringBeforeLast('.')
52 ((!im.isAsterisk && im.name.toString() == className) ||
57 fun staticallyImportedMethods(code: CompilationUnit, className: String): Set<String> {
61 im.name.toString().substringBeforeLast('.') == className
/aosp14/frameworks/base/tools/preload/
H A DMemoryUsage.java174 static MemoryUsage forClass(String className) { in forClass() argument
175 MeasureWithTimeout measurer = new MeasureWithTimeout(className); in forClass()
193 + className + "."); in forClass()
198 System.err.println("Got memory usage for " + className + "."); in forClass()
205 final String className; field in MemoryUsage.MeasureWithTimeout
208 MeasureWithTimeout(String className) { in MeasureWithTimeout() argument
209 this.className = className; in MeasureWithTimeout()
223 if (className != null) { in measure()
227 commandList.add(className); in measure()
250 System.err.println("Got bad response for " + className in measure()
[all …]
H A Dsorttable.js35 if (table.className.search(/\bsortable\b/) != -1) {
61 if (table.rows[i].className.search(/\bsortbottom\b/) != -1) {
81 if (!headrow[i].className.match(/\bsorttable_nosort\b/)) { // skip this col
82 mtch = headrow[i].className.match(/\bsorttable_([a-z0-9]+)\b/);
94 if (this.className.search(/\bsorttable_sorted\b/) != -1) {
98 this.className = this.className.replace('sorttable_sorted',
107 if (this.className.search(/\bsorttable_sorted_reverse\b/) != -1) {
111 this.className = this.className.replace('sorttable_sorted_reverse',
125 cell.className = cell.className.replace('sorttable_sorted_reverse','');
126 cell.className = cell.className.replace('sorttable_sorted','');
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DInjectedSetting.java46 public final String className; field in InjectedSetting
76 this.className = builder.mClassName; in InjectedSetting()
88 ", mClassName='" + className + '\'' + in toString()
102 intent.setClassName(packageName, className); in getServiceIntent()
114 && Objects.equals(className, that.className) in equals()
125 result = 31 * result + className.hashCode(); in hashCode()
148 public Builder setClassName(String className) { in setClassName() argument
149 mClassName = className; in setClassName()
/aosp14/frameworks/base/core/java/android/transition/
H A DTransitionInflater.java200 String className = attrs.getAttributeValue(null, "class"); in createCustom() local
202 if (className == null) { in createCustom()
215 sConstructors.put(className, constructor); in createCustom()
222 className, e); in createCustom()
225 className, e); in createCustom()
228 className, e); in createCustom()
231 className, e); in createCustom()
234 className, e); in createCustom()
270 if (className != null) { in getTargetIds()
271 Class clazz = Class.forName(className); in getTargetIds()
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/
H A DOptionalClassRunner.java55 String className = annotation.value(); in OptionalClassRunner() local
58 Class.forName(className); in OptionalClassRunner()
64 delegate = new ClassNotFoundRunner(testClass, className); in OptionalClassRunner()
94 ClassNotFoundRunner(Class<?> testClass, String className) in ClassNotFoundRunner() argument
97 this.mChildren = Collections.singletonList(new ChildRunner(testClass, className)); in ClassNotFoundRunner()
121 ChildRunner(Class<?> testClass, String className) { in ChildRunner() argument
123 this.mClassName = className; in ChildRunner()
/aosp14/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
H A DUtil.java106 public static void assertInitializedState(String className, boolean expected, in assertInitializedState() argument
110 Class<?> klass = Class.forName(className, /* initialize */ false, loader); in assertInitializedState()
115 assertTrue(expected == initialized, className); in assertInitializedState()
118 public static void assertNotInitialized(String className, ClassLoader loader) { in assertNotInitialized() argument
119 assertInitializedState(className, false, loader); in assertNotInitialized()
122 public static void assertInitialized(String className, ClassLoader loader) { in assertInitialized() argument
123 assertInitializedState(className, true, loader); in assertInitialized()
/aosp14/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
H A DMessageUtils.kt21 fun classNotImmutableFailure(className: String) = "$className should be marked @Immutable"
23 fun classNotFinalFailure(className: String) = "$className should be marked final"
/aosp14/frameworks/base/errorprone/java/com/google/errorprone/matchers/android/
H A DFieldMatchers.java36 public static Matcher<ExpressionTree> anyFieldInClass(String className) { in anyFieldInClass() argument
41 && classSymbol.getQualifiedName().contentEquals(className); in anyFieldInClass()
51 public static Matcher<ExpressionTree> staticField(String className, String fieldName) {
56 && classSymbol.getQualifiedName().contentEquals(className);
67 public static Matcher<ExpressionTree> instanceField(String className, String fieldName) {
72 && classSymbol.getQualifiedName().contentEquals(className);
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableInflater.java193 private @NonNull Drawable inflateFromClass(@NonNull String className) { in inflateFromClass() argument
197 constructor = CONSTRUCTOR_MAP.get(className); in inflateFromClass()
200 mClassLoader.loadClass(className).asSubclass(Drawable.class); in inflateFromClass()
202 CONSTRUCTOR_MAP.put(className, constructor); in inflateFromClass()
208 "Error inflating class " + className); in inflateFromClass()
214 "Class is not a Drawable " + className); in inflateFromClass()
220 "Class not found " + className); in inflateFromClass()
225 "Error inflating class " + className); in inflateFromClass()
/aosp14/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
H A DWapPushManager.java118 public String className; field in WapPushManager.WapPushManDBHelper.queryData
208 + "/" + lastapp.className); in processMessage()
225 lastapp.packageName + "/" + lastapp.className); in processMessage()
229 intent.setClassName(mContext, lastapp.className); in processMessage()
231 lastapp.className)); in processMessage()
254 lastapp.packageName + "/" + lastapp.className); in processMessage()
409 || !lastapp.className.equals(className)) { in insertPackage()
420 values.put("class_name", className); in insertPackage()
428 + "." + className + ", newsq:" + sq); in insertPackage()
490 " lastapp.className: " + lastapp.className + in verifyData()
[all …]
/aosp14/frameworks/base/packages/SystemUI/checks/src/com/android/internal/systemui/lint/
H A DStaticSettingsProviderDetector.kt54 val className = method.containingClass?.qualifiedName regex
56 className != "$CLASS_SETTINGS.Global" &&
57 className != "$CLASS_SETTINGS.Secure" &&
58 className != "$CLASS_SETTINGS.System"
66 val subclassName = className.substring(CLASS_SETTINGS.length + 1)

1234567891011