/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | LeakCheckedTest.java | 81 public void injectLeakCheckedDependencies(Class<?>... cls) { in injectLeakCheckedDependencies() argument 82 for (Class<?> c : cls) { in injectLeakCheckedDependencies() 99 public <T> T getLeakChecker(Class<T> cls) { in getLeakChecker() argument 100 Object obj = mLeakCheckers.get(cls); in getLeakChecker() 103 if (cls == BluetoothController.class) { in getLeakChecker() 105 } else if (cls == LocationController.class) { in getLeakChecker() 107 } else if (cls == RotationLockController.class) { in getLeakChecker() 109 } else if (cls == ZenModeController.class) { in getLeakChecker() 111 } else if (cls == CastController.class) { in getLeakChecker() 113 } else if (cls == HotspotController.class) { in getLeakChecker() [all …]
|
D | FakePluginManager.java | 33 Class<T> cls, boolean allowMultiple) { in addPluginListener() argument 38 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls) { in addPluginListener() argument 43 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls, in addPluginListener() argument 50 Class<T> cls) { in addPluginListener() argument 60 public <T> boolean dependsOn(Plugin p, Class<T> cls) { in dependsOn() argument
|
D | FakeExtensionController.java | 35 public <T> ExtensionBuilder<T> newExtension(Class<T> cls) { in newExtension() argument 54 public <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls) { in withPlugin() argument 59 public <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls, String action) { in withPlugin() argument 64 …public <P> ExtensionBuilder<T> withPlugin(Class<P> cls, String action, PluginConverter<T, P> conve… in withPlugin() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginDependencyProvider.java | 43 public <T> void allowPluginDependency(Class<T> cls) { in allowPluginDependency() argument 44 allowPluginDependency(cls, Dependency.get(cls)); in allowPluginDependency() 47 public <T> void allowPluginDependency(Class<T> cls, T obj) { in allowPluginDependency() argument 49 mDependencies.put(cls, obj); in allowPluginDependency() 54 <T> T get(Plugin p, Class<T> cls) { in get() argument 55 if (!mManagerLazy.get().dependsOn(p, cls)) { in get() 56 throw new IllegalArgumentException(p.getClass() + " does not depend on " + cls); in get() 59 if (!mDependencies.containsKey(cls)) { in get() 60 throw new IllegalArgumentException("Unknown dependency " + cls); in get() 62 return (T) mDependencies.get(cls); in get()
|
/frameworks/base/cmds/incidentd/src/ |
D | Broadcaster.cpp | 58 cls() { in ReportId() 64 cls(that.cls) { in ReportId() 70 cls(c) { in ReportId() 89 if (cls < that.cls) { in operator <() 129 void Broadcaster::clearBroadcasts(const string& pkg, const string& cls, const string& id) { in clearBroadcasts() argument 132 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in clearBroadcasts() 205 if (!was_ready_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts() 207 && report.cls() == DROPBOX_SENTINEL.getClassName()) { in sendBroadcasts() 216 report.cls())); in sendBroadcasts() 221 if (!was_approval_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts() [all …]
|
D | Broadcaster.h | 56 void clearBroadcasts(const string& pkg, const string& cls, const string& id); 75 string cls; member 110 status_t send_approval_broadcasts(const string& id, const string& pkg, const string& cls); 113 status_t send_report_ready_broadcasts(const string& id, const string& pkg, const string& cls); 115 bool was_approval_sent(const string& id, const string& pkg, const string& cls); 116 void set_approval_sent(const string& id, const string& pkg, const string& cls, 118 bool was_ready_sent(const string& id, const string& pkg, const string& cls); 119 void set_ready_sent(const string& id, const string& pkg, const string& cls);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
D | VersionInfo.java | 40 public VersionInfo addClass(Class<?> cls) { in addClass() argument 43 mDefault = cls; in addClass() 45 addClass(cls, false); in addClass() 49 private void addClass(Class<?> cls, boolean required) { in addClass() argument 50 if (mVersions.containsKey(cls)) return; in addClass() 51 ProvidesInterface provider = cls.getDeclaredAnnotation(ProvidesInterface.class); in addClass() 53 mVersions.put(cls, new Version(provider.version(), true)); in addClass() 55 Requires requires = cls.getDeclaredAnnotation(Requires.class); in addClass() 59 Requirements requirements = cls.getDeclaredAnnotation(Requirements.class); in addClass() 65 DependsOn depends = cls.getDeclaredAnnotation(DependsOn.class); in addClass() [all …]
|
D | PluginManagerImpl.java | 88 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls) { in addPluginListener() argument 89 addPluginListener(listener, cls, false); in addPluginListener() 93 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls, in addPluginListener() argument 95 addPluginListener(PluginManager.Helper.getAction(cls), listener, cls, allowMultiple); in addPluginListener() local 99 Class<T> cls) { in addPluginListener() argument 100 addPluginListener(action, listener, cls, false); in addPluginListener() 104 Class<T> cls, boolean allowMultiple) { in addPluginListener() argument 106 PluginActionManager<T> p = mActionManagerFactory.create(action, listener, cls, in addPluginListener() 213 public <T> boolean dependsOn(Plugin p, Class<T> cls) { in dependsOn() argument 216 if (mPluginMap.valueAt(i).dependsOn(p, cls)) { in dependsOn()
|
/frameworks/base/packages/SystemUI/plugin_core/src/com/android/systemui/plugins/ |
D | PluginManager.java | 32 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls); in addPluginListener() argument 34 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls, in addPluginListener() argument 37 Class<T> cls); in addPluginListener() argument 39 Class<T> cls, boolean allowMultiple); in addPluginListener() argument 43 <T> boolean dependsOn(Plugin p, Class<T> cls); in dependsOn() argument 46 public static <P> String getAction(Class<P> cls) { in getAction() argument 47 ProvidesInterface info = cls.getDeclaredAnnotation(ProvidesInterface.class); in getAction() 49 throw new RuntimeException(cls + " doesn't provide an interface"); in getAction() 52 throw new RuntimeException(cls + " doesn't provide an action"); in getAction()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 82 @NonNull Context context, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateWithAppContext() argument 84 .getOrCreateHelper(context.getApplicationContext(), cls, creator); in getOrCreateWithAppContext() 98 <H> H getHelper(@NonNull Class<H> cls) { in getHelper() argument 99 return (H) mMap.get(cls); in getHelper() 106 @NonNull Context appContext, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateHelper() argument 108 synchronized (cls) { in getOrCreateHelper() 109 H helper = getHelper(cls); in getOrCreateHelper() 112 putHelper(cls, helper); in getOrCreateHelper() 132 public <H> void putHelper(@NonNull Class<H> cls, @NonNull H helper) { in putHelper() argument 133 mMap.put(cls, helper); in putHelper()
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 60 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative() argument 61 if (TextUtils.isEmpty(cls)) { in createRelative() 66 if (cls.charAt(0) == '.') { in createRelative() 68 fullName = pkg + cls; in createRelative() 71 fullName = cls; in createRelative() 91 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative() argument 92 return createRelative(pkg.getPackageName(), cls); in createRelative() 103 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName() argument 105 if (cls == null) throw new NullPointerException("class name is null"); in ComponentName() 107 mClass = cls; in ComponentName() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/ |
D | AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 80 Class<?> cls = Class.forName(className, false, this.getClass().getClassLoader()); in testAllClassInheritance() local 81 if (!isTestClass(cls)) continue; in testAllClassInheritance() 85 if (parent.isAssignableFrom(cls)) { in testAllClassInheritance() 90 boolean hasSize = hasSize(cls); in testAllClassInheritance() 92 fails.add(cls.getName() + " does not have size annotation, such as @SmallTest"); in testAllClassInheritance() 95 fails.add(cls.getName() + " does not extend any of " + getClsStr()); in testAllClassInheritance() 103 private boolean hasSize(Class<?> cls) { in hasSize() argument 105 if (cls.getDeclaredAnnotation(SUPPORTED_SIZES[i]) != null) return true; in hasSize() 141 .stream().map(cls -> cls.getSimpleName()).toArray()); in getClsStr()
|
/frameworks/native/libs/incidentcompanion/binder/android/os/ |
D | IIncidentCompanion.aidl | 63 oneway void sendReportReadyBroadcast(String pkg, String cls); in sendReportReadyBroadcast() argument 88 List<String> getIncidentReportList(String pkg, String cls); in getIncidentReportList() argument 93 IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id); in getIncidentReport() argument 98 void deleteIncidentReports(String pkg, String cls, String id); in deleteIncidentReports() argument
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_util.h | 132 jclass cls = env->GetObjectClass(j_object); in GetObjectID() local 133 jfieldID id_field = env->GetFieldID(cls, id_field_name_.c_str(), "I"); in GetObjectID() 135 env->DeleteLocalRef(cls); in GetObjectID() 144 jclass cls = env->GetObjectClass(j_object); in WrapObject() local 145 jfieldID id_field = env->GetFieldID(cls, id_field_name_.c_str(), "I"); in WrapObject() 147 env->DeleteLocalRef(cls); in WrapObject() 167 jclass cls = env->FindClass(jclass_name_.c_str()); in CreateJavaObject() local 169 cls, in CreateJavaObject() 172 jobject result = env->NewObject(cls, constructor, JNI_NULL); in CreateJavaObject() 173 env->DeleteLocalRef(cls); in CreateJavaObject()
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | IncidentCompanionService.java | 123 public void sendReportReadyBroadcast(String pkg, String cls) { in sendReportReadyBroadcast() argument 137 intent.setComponent(new ComponentName(pkg, cls)); in sendReportReadyBroadcast() 195 public List<String> getIncidentReportList(String pkg, String cls) throws RemoteException { in getIncidentReportList() argument 200 return getIIncidentManager().getIncidentReportList(pkg, cls); in getIncidentReportList() 210 public void deleteIncidentReports(String pkg, String cls, String id) in deleteIncidentReports() argument 212 if (pkg == null || cls == null || id == null in deleteIncidentReports() 213 || pkg.length() == 0 || cls.length() == 0 || id.length() == 0) { in deleteIncidentReports() 220 getIIncidentManager().deleteIncidentReports(pkg, cls, id); in deleteIncidentReports() 248 public IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id) in getIncidentReport() argument 250 if (pkg == null || cls == null || id == null in getIncidentReport() [all …]
|
/frameworks/libs/binary_translation/assembler/ |
D | gen_asm_x86.py | 38 cls = arg.get('class') 39 if asm_defs.is_x87reg(cls): 41 if asm_defs.is_greg(cls): 43 if asm_defs.is_xreg(cls): 45 if asm_defs.is_imm(cls): 46 return _imm_types[cls] 47 if asm_defs.is_disp(cls): 49 if asm_defs.is_label(cls): 51 if asm_defs.is_cond(cls): 53 if asm_defs.is_mem_op(cls): [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Dependency.java | 211 protected final <T> T getDependency(Class<T> cls) { in getDependency() argument 212 return getDependencyInner(cls); in getDependency() 230 public <T> T createDependency(Object cls) { in createDependency() argument 231 Preconditions.checkArgument(cls instanceof DependencyKey<?> || cls instanceof Class<?>); in createDependency() 234 LazyDependencyCreator<T> provider = mProviders.get(cls); in createDependency() 236 throw new IllegalArgumentException("Unsupported dependency " + cls in createDependency() 252 private <T> void destroyDependency(Class<T> cls, Consumer<T> destroy) { in destroyDependency() argument 253 T dep = (T) mDependencies.remove(cls); in destroyDependency() 276 public static <T> void destroy(Class<T> cls, Consumer<T> destroy) { in destroy() argument 277 sDependency.destroyDependency(cls, destroy); in destroy() [all …]
|
/frameworks/base/core/jni/ |
D | android_tracing_PerfettoDataSourceInstance.cpp | 85 jclass cls = env->GetObjectClass(mJavaDataSourceInstance); in onStart() local 86 jmethodID mid = env->GetMethodID(cls, "onStart", in onStart() 96 jclass cls = env->GetObjectClass(mJavaDataSourceInstance); in onFlush() local 97 jmethodID mid = env->GetMethodID(cls, "onFlush", in onFlush() 107 jclass cls = env->GetObjectClass(mJavaDataSourceInstance); in onStop() local 109 env->GetMethodID(cls, "onStop", "(Landroid/tracing/perfetto/StopCallbackArguments;)V"); in onStop()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | PluginDependency.java | 24 public static <T> T get(Plugin p, Class<T> cls) { in get() argument 25 return sProvider.get(p, cls); in get() 29 abstract <T> T get(Plugin p, Class<T> cls); in get() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 73 public <T> ExtensionBuilder<T> newExtension(Class<T> cls) { in newExtension() argument 94 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls) { in withPlugin() argument 95 return withPlugin(cls, PluginManager.Helper.getAction(cls)); in withPlugin() 99 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin() argument 101 return withPlugin(cls, action, null); in withPlugin() 105 public <P> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin() argument 107 mExtension.addPlugin(action, cls, converter); in withPlugin() 209 public <P> void addPlugin(String action, Class<P> cls, PluginConverter<T, P> converter) { in addPlugin() argument 210 mProducers.add(new PluginItem(action, cls, converter)); in addPlugin() 229 public PluginItem(String action, Class<P> cls, PluginConverter<T, P> converter) { in PluginItem() argument [all …]
|
D | ExtensionController.java | 29 <T> ExtensionBuilder<T> newExtension(Class<T> cls); in newExtension() argument 52 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls); in withPlugin() argument 53 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls, String action); in withPlugin() argument 54 <P> ExtensionBuilder<T> withPlugin(Class<P> cls, String action, in withPlugin() argument
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | ClientTest.java | 63 EditText cls = findViewById(R.id.cls); in onCreate() 73 cls.getText().toString(), in onCreate() 83 cls.getText().toString(), in onCreate() 99 EditText cls = findViewById(R.id.cls); in onCreate() 108 cls.getText().toString()); in onCreate()
|
/frameworks/base/core/java/android/view/inspector/ |
D | StaticInspectionCompanionProvider.java | 34 public <T> InspectionCompanion<T> provide(@NonNull Class<T> cls) { in provide() argument 35 final String companionName = cls.getName() + COMPANION_SUFFIX; in provide() 39 (Class<InspectionCompanion<T>>) cls.getClassLoader().loadClass(companionName); in provide()
|
/frameworks/base/core/java/android/os/ |
D | IIncidentManager.aidl | 78 List<String> getIncidentReportList(String pkg, String cls); in getIncidentReportList() argument 83 IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id); in getIncidentReport() argument 90 void deleteIncidentReports(String pkg, String cls, String id); in deleteIncidentReports() argument
|
/frameworks/native/opengl/tools/glgen/stubs/egl/ |
D | EGL14cHeader.cpp | 117 toEGLHandle(JNIEnv *_env, jclass cls, jmethodID con, void * handle) { in toEGLHandle() argument 118 if (cls == eglcontextClass && in toEGLHandle() 123 if (cls == egldisplayClass && in toEGLHandle() 128 if (cls == eglsurfaceClass && in toEGLHandle() 133 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle)); in toEGLHandle()
|