/frameworks/base/packages/SystemUI/tests/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 cls, boolean allowMultiple) { in addPluginListener() argument 38 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls) { in addPluginListener() argument 43 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls, in addPluginListener() argument 50 Class<?> cls) { in addPluginListener() argument 60 public <T> boolean dependsOn(Plugin p, Class<T> cls) { in dependsOn() argument 70 public <T extends Plugin> T getOneShotPlugin(Class<T> cls) { in getOneShotPlugin() argument 75 public <T extends Plugin> T getOneShotPlugin(String action, Class<?> cls) { in getOneShotPlugin() argument
|
/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/src/com/android/systemui/plugins/ |
D | PluginDependencyProvider.java | 42 public <T> void allowPluginDependency(Class<T> cls) { in allowPluginDependency() argument 43 allowPluginDependency(cls, Dependency.get(cls)); in allowPluginDependency() 46 public <T> void allowPluginDependency(Class<T> cls, T obj) { in allowPluginDependency() argument 48 mDependencies.put(cls, obj); in allowPluginDependency() 53 <T> T get(Plugin p, Class<T> cls) { in get() argument 54 if (!mManager.dependsOn(p, cls)) { in get() 55 throw new IllegalArgumentException(p.getClass() + " does not depend on " + cls); in get() 58 if (!mDependencies.containsKey(cls)) { in get() 59 throw new IllegalArgumentException("Unknown dependency " + cls); in get() 61 return (T) mDependencies.get(cls); in get()
|
/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 | PluginManager.java | 32 <T extends Plugin> T getOneShotPlugin(Class<T> cls); in getOneShotPlugin() argument 33 <T extends Plugin> T getOneShotPlugin(String action, Class<?> cls); in getOneShotPlugin() argument 35 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls); in addPluginListener() argument 36 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls, in addPluginListener() argument 39 Class<?> cls); in addPluginListener() argument 41 Class cls, boolean allowMultiple); in addPluginListener() argument 45 <T> boolean dependsOn(Plugin p, Class<T> cls); in dependsOn() argument 48 public static <P> String getAction(Class<P> cls) { in getAction() argument 49 ProvidesInterface info = cls.getDeclaredAnnotation(ProvidesInterface.class); in getAction() 51 throw new RuntimeException(cls + " doesn't provide an interface"); in getAction() [all …]
|
D | PluginManagerImpl.java | 125 public <T extends Plugin> T getOneShotPlugin(Class<T> cls) { in getOneShotPlugin() argument 126 ProvidesInterface info = cls.getDeclaredAnnotation(ProvidesInterface.class); in getOneShotPlugin() 128 throw new RuntimeException(cls + " doesn't provide an interface"); in getOneShotPlugin() 131 throw new RuntimeException(cls + " doesn't provide an action"); in getOneShotPlugin() 133 return getOneShotPlugin(info.action(), cls); in getOneShotPlugin() 136 public <T extends Plugin> T getOneShotPlugin(String action, Class<?> cls) { in getOneShotPlugin() argument 143 false, mLooper, cls, this); in getOneShotPlugin() 155 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls) { in addPluginListener() argument 156 addPluginListener(listener, cls, false); in addPluginListener() 159 public <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls, in addPluginListener() argument [all …]
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 59 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative() argument 60 if (TextUtils.isEmpty(cls)) { in createRelative() 65 if (cls.charAt(0) == '.') { in createRelative() 67 fullName = pkg + cls; in createRelative() 70 fullName = cls; in createRelative() 90 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative() argument 91 return createRelative(pkg.getPackageName(), cls); in createRelative() 102 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName() argument 104 if (cls == null) throw new NullPointerException("class name is null"); in ComponentName() 106 mClass = cls; in ComponentName() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 84 @NonNull Context context, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateWithAppContext() argument 86 .getOrCreateHelper(context.getApplicationContext(), cls, creator); in getOrCreateWithAppContext() 100 <H> H getHelper(@NonNull Class<H> cls) { in getHelper() argument 101 return (H) mMap.get(cls); in getHelper() 108 @NonNull Context appContext, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateHelper() argument 110 synchronized (cls) { in getOrCreateHelper() 111 H helper = getHelper(cls); in getOrCreateHelper() 114 putHelper(cls, helper); in getOrCreateHelper() 134 public <H> void putHelper(@NonNull Class<H> cls, @NonNull H helper) { in putHelper() argument 135 mMap.put(cls, helper); in putHelper()
|
/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() 136 .stream().map(cls -> cls.getSimpleName()).toArray()); in getClsStr()
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | ParsingUtils.java | 48 String cls = clsSeq.toString(); in buildClassName() local 49 char c = cls.charAt(0); in buildClassName() 51 return pkg + cls; in buildClassName() 53 if (cls.indexOf('.') < 0) { in buildClassName() 56 b.append(cls); in buildClassName() 59 return cls; in buildClassName()
|
/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 | 124 public void sendReportReadyBroadcast(String pkg, String cls) { in sendReportReadyBroadcast() argument 137 intent.setComponent(new ComponentName(pkg, cls)); in sendReportReadyBroadcast() 196 public List<String> getIncidentReportList(String pkg, String cls) throws RemoteException { in getIncidentReportList() argument 201 return getIIncidentManager().getIncidentReportList(pkg, cls); in getIncidentReportList() 211 public void deleteIncidentReports(String pkg, String cls, String id) in deleteIncidentReports() argument 213 if (pkg == null || cls == null || id == null in deleteIncidentReports() 214 || pkg.length() == 0 || cls.length() == 0 || id.length() == 0) { in deleteIncidentReports() 221 getIIncidentManager().deleteIncidentReports(pkg, cls, id); in deleteIncidentReports() 249 public IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id) in getIncidentReport() argument 251 if (pkg == null || cls == null || id == null in getIncidentReport() [all …]
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 72 public <T> ExtensionBuilder<T> newExtension(Class<T> cls) { in newExtension() argument 93 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls) { in withPlugin() argument 94 return withPlugin(cls, PluginManager.Helper.getAction(cls)); in withPlugin() 98 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin() argument 100 return withPlugin(cls, action, null); in withPlugin() 104 public <P> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin() argument 106 mExtension.addPlugin(action, cls, converter); in withPlugin() 208 public <P> void addPlugin(String action, Class<P> cls, PluginConverter<T, P> converter) { in addPlugin() argument 209 mProducers.add(new PluginItem(action, cls, converter)); in addPlugin() 228 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/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/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/native/opengl/tools/glgen/stubs/egl/ |
D | EGLExtcHeader.cpp | 112 toEGLHandle(JNIEnv *_env, jclass cls, jmethodID con, void * handle) { in toEGLHandle() argument 113 if (cls == eglcontextClass && in toEGLHandle() 118 if (cls == egldisplayClass && in toEGLHandle() 123 if (cls == eglsurfaceClass && in toEGLHandle() 128 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle)); in toEGLHandle()
|
D | EGL14cHeader.cpp | 116 toEGLHandle(JNIEnv *_env, jclass cls, jmethodID con, void * handle) { in toEGLHandle() argument 117 if (cls == eglcontextClass && in toEGLHandle() 122 if (cls == egldisplayClass && in toEGLHandle() 127 if (cls == eglsurfaceClass && in toEGLHandle() 132 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle)); in toEGLHandle()
|
/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/services/core/java/com/android/server/soundtrigger_middleware/ |
D | ObjectPrinter.java | 124 Class cls = obj.getClass(); in print() local 126 if (Collection.class.isAssignableFrom(cls)) { in print() 152 if (Map.class.isAssignableFrom(cls)) { in print() 180 if (cls.isArray()) { in print() 227 Class cls = obj.getClass(); in printPublicFields() local 231 for (Field fld : cls.getDeclaredFields()) { in printPublicFields()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | SysuiBaseFragmentTest.java | 50 public SysuiBaseFragmentTest(Class<? extends Fragment> cls) { in SysuiBaseFragmentTest() argument 51 super(cls); in SysuiBaseFragmentTest() 86 public void injectLeakCheckedDependencies(Class<?>... cls) { in injectLeakCheckedDependencies() argument 87 for (Class<?> c : cls) { in injectLeakCheckedDependencies()
|
/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
|