Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DLeakCheckedTest.java81 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 …]
DFakePluginManager.java33 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
DFakeExtensionController.java35 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/
DPluginDependencyProvider.java43 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/
DBroadcaster.cpp58 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 …]
DBroadcaster.h56 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/
DVersionInfo.java40 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 …]
DPluginManagerImpl.java88 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/
DPluginManager.java32 <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/
DCarHelperRegistry.java82 @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/
DComponentName.java59 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/base/packages/SystemUI/tests/src/com/android/
DAAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java80 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/base/media/mca/filterfw/jni/
Djni_util.h132 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/native/libs/incidentcompanion/binder/android/os/
DIIncidentCompanion.aidl63 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/services/core/java/com/android/server/incident/
DIncidentCompanionService.java124 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/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DPluginDependency.java24 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/
DExtensionControllerImpl.java73 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 …]
DExtensionController.java29 <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/
DClientTest.java63 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/
DEGLExtcHeader.cpp112 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()
DEGL14cHeader.cpp116 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/
DStaticInspectionCompanionProvider.java34 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/
DIIncidentManager.aidl78 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/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DSysuiBaseFragmentTest.java54 public SysuiBaseFragmentTest(Class<? extends Fragment> cls) { in SysuiBaseFragmentTest() argument
55 super(cls); in SysuiBaseFragmentTest()
95 public void injectLeakCheckedDependencies(Class<?>... cls) { in injectLeakCheckedDependencies() argument
96 for (Class<?> c : cls) { in injectLeakCheckedDependencies()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsModule.java49 Class<?> cls = null; in provideRecentsImpl() local
51 cls = context.getClassLoader().loadClass(clsName); in provideRecentsImpl()
56 impl = (RecentsImplementation) cls.newInstance(); in provideRecentsImpl()

1234