/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/filters/ |
D | InMemoryOutputFilter.kt | 35 private fun getClassKey(className: String): String { in getClassKey() 36 return className.toHumanReadableClassName() in getClassKey() 39 private fun getFieldKey(className: String, fieldName: String): String { in getFieldKey() 40 return getClassKey(className) + "." + fieldName in getFieldKey() 43 private fun getMethodKey(className: String, methodName: String, signature: String): String { in getMethodKey() 44 return getClassKey(className) + "." + methodName + ";" + signature in getMethodKey() 47 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in getPolicyForClass() 48 return mPolicies[getClassKey(className)] ?: super.getPolicyForClass(className) in getPolicyForClass() 51 private fun checkClass(className: String) { in checkClass() 52 if (classes.findClass(className) == null) { in checkClass() [all …]
|
D | AndroidHeuristicsFilter.kt | 31 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in getPolicyForClass() 32 if (aidlPolicy != null && classes.isAidlClass(className)) { in getPolicyForClass() 35 if (featureFlagsPolicy != null && classes.isFeatureFlagsClass(className)) { in getPolicyForClass() 38 if (syspropsPolicy != null && classes.isSyspropsClass(className)) { in getPolicyForClass() 41 if (rFilePolicy != null && classes.isRClass(className)) { in getPolicyForClass() 44 return super.getPolicyForClass(className) in getPolicyForClass() 51 private fun ClassNodes.isAidlClass(className: String): Boolean { in ClassNodes() 52 return hasClass(className) && in ClassNodes() 53 hasClass("$className\$Stub") && in ClassNodes() 54 hasClass("$className\$Stub\$Proxy") in ClassNodes() [all …]
|
D | DelegatingFilter.kt | 48 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in getPolicyForClass() 49 return fallback.getPolicyForClass(className) in getPolicyForClass() 53 className: String, in getPolicyForField() 56 return fallback.getPolicyForField(className, fieldName) in getPolicyForField() 60 className: String, in getPolicyForMethod() 64 return fallback.getPolicyForMethod(className, methodName, descriptor) in getPolicyForMethod() 68 className: String, in getRenameTo() 72 return fallback.getRenameTo(className, methodName, descriptor) in getRenameTo() 75 override fun getNativeSubstitutionClass(className: String): String? { in getNativeSubstitutionClass() 76 return fallback.getNativeSubstitutionClass(className) in getNativeSubstitutionClass() [all …]
|
D | ClassWidePolicyPropagatingFilter.kt | 30 private fun getClassWidePolicy(className: String, resolve: Boolean): FilterPolicyWithReason? { in <lambda>() 31 var currentClass = className in <lambda>() 42 if (classes.hasClass(className)) { in <lambda>() 43 outermostFilter.getPolicyForClass(className).let { policy -> in <lambda>() 70 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in <lambda>() 72 getDirectOuterClassName(className)?.let { outerName -> in <lambda>() 78 return super.getPolicyForClass(className) in <lambda>() 82 className: String, in <lambda>() 85 return getClassWidePolicy(className, resolve = true) in <lambda>() 86 ?: super.getPolicyForField(className, fieldName) in <lambda>() [all …]
|
D | TextFileFilterPolicyParser.kt | 78 var className = "" in createFilterFromTextPolicyFile() variable 102 className = fields[1] in createFilterFromTextPolicyFile() 105 val superClass = resolveExtendingClass(className) in createFilterFromTextPolicyFile() 108 val classType = resolveSpecialClass(className) in createFilterFromTextPolicyFile() 118 imf.setNativeSubstitutionClass(className, toClass) in createFilterFromTextPolicyFile() 127 imf.setClassLoadHook(className, callback) in createFilterFromTextPolicyFile() 133 Objects.requireNonNull(className) in createFilterFromTextPolicyFile() 140 className, policy.withReason(FILTER_REASON) in createFilterFromTextPolicyFile() 192 Objects.requireNonNull(className) in createFilterFromTextPolicyFile() 195 imf.setPolicyForField(className, name, policy.withReason(FILTER_REASON)) in createFilterFromTextPolicyFile() [all …]
|
D | ImplicitOutputFilter.kt | 45 private fun getClassImplicitPolicy(className: String, cn: ClassNode): FilterPolicyWithReason? { in <lambda>() 63 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in <lambda>() 64 val fallback = super.getPolicyForClass(className) in <lambda>() 66 val cn = classes.getClass(className) in <lambda>() 69 getClassImplicitPolicy(className, cn)?.let { return it } in <lambda>() 75 className: String, in <lambda>() 79 val fallback = super.getPolicyForMethod(className, methodName, descriptor) in <lambda>() 80 val classPolicy = outermostFilter.getPolicyForClass(className) in <lambda>() 88 classes.findMethod(className, methodName, descriptor)?.let { mn -> in <lambda>() 95 val cn = classes.getClass(className) in <lambda>() [all …]
|
D | AnnotationBasedFilter.kt | 137 className: String, in <lambda>() 145 if (!annotationAllowedClassesFilter.matches(className)) { in <lambda>() 161 className: String, in <lambda>() 171 findAnyAnnotation(className, stubAnnotations, visibles, invisibles)?.let { in <lambda>() 174 findAnyAnnotation(className, stubClassAnnotations, visibles, invisibles)?.let { in <lambda>() 177 findAnyAnnotation(className, keepAnnotations, visibles, invisibles)?.let { in <lambda>() 180 findAnyAnnotation(className, keepClassAnnotations, visibles, invisibles)?.let { in <lambda>() 183 findAnyAnnotation(className, throwAnnotations, visibles, invisibles)?.let { in <lambda>() 186 findAnyAnnotation(className, removeAnnotations, visibles, invisibles)?.let { in <lambda>() 193 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in <lambda>() [all …]
|
D | StubIntersectingFilter.kt | 67 override fun getPolicyForClass(className: String): FilterPolicyWithReason { in <lambda>() 68 return intersectWithStub(super.getPolicyForClass(className)) { in <lambda>() 69 exists { classes -> classes.findClass(className) != null } in <lambda>() 74 className: String, in <lambda>() 77 return intersectWithStub(super.getPolicyForField(className, fieldName)) { in <lambda>() 78 exists { classes -> classes.findField(className, fieldName) != null } in <lambda>() 83 className: String, in <lambda>() 87 return intersectWithStub(super.getPolicyForMethod(className, methodName, descriptor)) { in <lambda>() 88 exists { classes -> classes.findMethod(className, methodName, descriptor) != null } in <lambda>()
|
D | OutputFilter.kt | 43 abstract fun getPolicyForClass(className: String): FilterPolicyWithReason in getPolicyForClass() 45 abstract fun getPolicyForField(className: String, fieldName: String): FilterPolicyWithReason in getPolicyForClass() 48 className: String, in getPolicyForClass() 58 open fun getRenameTo(className: String, methodName: String, descriptor: String): String? { in getPolicyForClass() 69 open fun getNativeSubstitutionClass(className: String): String? { in getNativeSubstitutionClass() 78 open fun getClassLoadHooks(className: String): List<String> { in getClassLoadHooks() 88 open fun getMethodCallHooks(className: String, methodName: String, descriptor: String): in getMethodCallHooks()
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | InputSignaturesComputation.kt | 116 private fun ClassPrinter.getFullClassName(className: String): String { in getFullClassName() 117 if (className.endsWith("[]")) return getFullClassName(className.removeSuffix("[]")) + "[]" in getFullClassName() 119 if (className.matches("\\.[a-z]".toRegex())) return className //qualified name in getFullClassName() 121 …if ("." in className) return getFullClassName(className.substringBeforeLast(".")) + "." + classNam… in getFullClassName() 124 imp.nameAsString.endsWith(".$className") in getFullClassName() 130 if (classAst.nameAsString == className) return thisPackagePrefix + classAst.nameAsString in getFullClassName() 133 it.nameAsString == className in getFullClassName() 136 if (className == CANONICAL_BUILDER_CLASS || className == BASE_BUILDER_CLASS) { in getFullClassName() 137 return thisClassPrefix + className in getFullClassName() 140 constDefs.find { it.AnnotationName == className }?.let { return thisClassPrefix + className } in getFullClassName() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | AsmGenerator.java | 130 for (String className : createInfo.getDelegateClassNatives()) { in AsmGenerator() 131 className = binaryToInternalClassName(className); in AsmGenerator() 132 Set<String> methods = mDelegateMethods.get(className); in AsmGenerator() 135 mDelegateMethods.put(className, methods); in AsmGenerator() 176 for (String className : deleteReturns) { in AsmGenerator() 178 if (className == null) { in AsmGenerator() 189 renamedClass = binaryToInternalClassName(className); in AsmGenerator() 197 returnTypes.add(binaryToInternalClassName(className)); in AsmGenerator() 238 String className = binaryToInternalClassName(entry.substring(0, pos)); 240 Set<String> set = map.get(className); [all …]
|
/frameworks/av/media/audioaidlconversion/ |
D | AidlConversionNdkCpp.cpp | 121 #define GENERATE_CONVERTERS(packageName, className) \ argument 122 GENERATE_CONVERTERS_IMPL(packageName, _, className) 124 #define GENERATE_CONVERTERS_IMPL(packageName, prefix, className) \ argument 125 ConversionResult<::aidl::packageName::className> cpp2ndk##prefix##className( \ 126 const ::packageName::className& cpp) { \ 127 return cpp2ndk<::aidl::packageName::className>(cpp); \ 129 ConversionResult<::packageName::className> ndk2cpp##prefix##className( \ 130 const ::aidl::packageName::className& ndk) { \ 131 return ndk2cpp<::packageName::className>(ndk); \ 134 #define GENERATE_ENUM_CONVERTERS(packageName, className) \ argument [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewTraversalTracingStrings.java | 47 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()
|
/frameworks/base/core/java/android/app/ |
D | AppComponentFactory.java | 74 @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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | ContextComponentResolver.java | 55 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIAppComponentFactoryBase.kt | 81 override fun instantiateApplicationCompat(cl: ClassLoader, className: String): Application { in <lambda>() 82 val app = super.instantiateApplicationCompat(cl, className) in <lambda>() 95 override fun instantiateProviderCompat(cl: ClassLoader, className: String): ContentProvider { in <lambda>() 96 val contentProvider = super.instantiateProviderCompat(cl, className) in <lambda>() 120 className: String, in <lambda>() 128 return componentHelper.resolveActivity(className) in <lambda>() 129 ?: super.instantiateActivityCompat(cl, className, intent) in <lambda>() 134 className: String, in <lambda>() 142 return componentHelper.resolveService(className) in <lambda>() 143 ?: super.instantiateServiceCompat(cl, className, intent) in <lambda>() [all …]
|
/frameworks/av/media/audioaidlconversion/include/media/ |
D | AidlConversionNdkCpp.h | 38 #define DECLARE_CONVERTERS(packageName, className) \ argument 39 ConversionResult<::aidl::packageName::className> \ 40 cpp2ndk_##className(const ::packageName::className& cpp); \ 41 ConversionResult<::packageName::className> \ 42 ndk2cpp_##className(const ::aidl::packageName::className& ndk);
|
/frameworks/base/tests/utils/testutils/java/com/android/test/filters/ |
D | SelectTest.java | 212 final String className = getClassName(selectTestArg); in add() local 214 if (className == null) { in add() 238 boolean accept(String className, @Nullable String methodName) { in accept() argument 239 String packageName = getPackageName(className); in accept() 244 return classSet == null || classSet.accept(className, methodName); in accept() 273 final String className = getClassName(selectTestArg); in add() local 277 Set<String> methodSet = mMethodSetMap.put(className, null); // class filtering. in add() 280 "; supersede " + toString(className, methodSet)); in add() 285 Set<String> methodSet = mMethodSetMap.get(className); in add() 287 if (mMethodSetMap.containsKey(className)) { in add() [all …]
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 52 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()
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | DrawableInflater_Delegate.java | 37 String className) { in inflateFromClass() argument 41 constructor = CONSTRUCTOR_MAP.get(className); in inflateFromClass() 45 .findClass(className).asSubclass(Drawable.class); in inflateFromClass() 47 CONSTRUCTOR_MAP.put(className, constructor); in inflateFromClass() 52 final InflateException ie = new InflateException("Error inflating class " + className); in inflateFromClass() 58 new InflateException("Class is not a Drawable " + className); in inflateFromClass() 63 final InflateException ie = new InflateException("Class not found " + className); in inflateFromClass() 67 final InflateException ie = new InflateException("Error inflating class " + className); in inflateFromClass()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | BinderLogger.kt | 165 if (previousStackElement.className?.endsWith("\$Stub\$Proxy") == true) { in fromStackTrace() 171 val className = stackElement.className in fromStackTrace() constant 173 className != BinderLogger::class.java.name && in fromStackTrace() 174 (className.startsWith(SYSUI_PKG) || className.startsWith(KEYGUARD_PKG)) in fromStackTrace() 230 val className = stackFrame.className in getBinderCallRef() constant 231 val stubDefIndex = className.indexOf("\$Stub\$Proxy") in getBinderCallRef() 232 return if (stubDefIndex > 0) className.substring(0, stubDefIndex) else className in getBinderCallRef() 277 with(Class.forName(stackFrame.className)) { in getSimpleCallRef() 280 } finally {} ?: stackFrame.className in getSimpleCallRef()
|
/frameworks/base/test-runner/src/android/test/ |
D | TestPrinter.java | 48 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()
|
/frameworks/opt/car/services/builtInServices/tests/src/com/android/car/rotary/ |
D | ActivityResolverTest.java | 83 new UiSelector().className(android.widget.ListView.class)); in testListItemFocusable_threeItems() 90 .className(android.widget.LinearLayout.class).focusable(true).instance(0)); in testListItemFocusable_threeItems() 95 .className(android.widget.LinearLayout.class).focusable(true).instance(1)); in testListItemFocusable_threeItems() 100 .className(android.widget.LinearLayout.class).focusable(true).instance(2)); in testListItemFocusable_threeItems() 116 new UiSelector().className(android.widget.ListView.class)); in testListItemFocusable_twoItems() 123 .className(android.widget.LinearLayout.class).focusable(true).instance(0)); in testListItemFocusable_twoItems() 128 .className(android.widget.LinearLayout.class).focusable(true).instance(1)); in testListItemFocusable_twoItems() 133 .className(android.widget.Button.class).focusable(true).enabled(true).instance(0)); in testListItemFocusable_twoItems() 138 .className(android.widget.Button.class).focusable(true).enabled(true).instance(1)); in testListItemFocusable_twoItems() 151 .className(android.widget.Button.class).focusable(true).enabled(false).instance(0)); in testActionButtonsNotFocusable_threeItems() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/ |
D | HostStubGenStats.kt | 60 val className = getOuterClassNameFromFullClassName(fullClassName) in <lambda>() constant 63 if (className.endsWith("Proto") in <lambda>() 64 or className.endsWith("ProtoEnums") in <lambda>() 65 or className.endsWith("LogTags") in <lambda>() 66 or className.endsWith("StatsLog")) { in <lambda>() 71 val classStats = packageStats.children.getOrPut(className) { Stats() } in <lambda>() 85 packageStats.children.toSortedMap().forEach { (className, classStats) -> in <lambda>() method 86 pw.printf("%s,%s,%d,%d\n", packageName, className, in <lambda>()
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 171 String className) { in appendShortClassName() argument 172 if (className.startsWith(packageName)) { in appendShortClassName() 174 int CN = className.length(); in appendShortClassName() 175 if (CN > PN && className.charAt(PN) == '.') { in appendShortClassName() 176 sb.append(className, PN, CN); in appendShortClassName() 180 sb.append(className); in appendShortClassName() 184 String className) { in printShortClassName() argument 185 if (className.startsWith(packageName)) { in printShortClassName() 187 int CN = className.length(); in printShortClassName() 188 if (CN > PN && className.charAt(PN) == '.') { in printShortClassName() [all …]
|