Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 123) sorted by relevance

12345

/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java45 Class<?> clazz = getJavaClass(halValue.prop & VehiclePropertyType.MASK); in toCarPropertyValue() local
52 if (Boolean.class == clazz) { in toCarPropertyValue()
55 } else if (Float.class == clazz) { in toCarPropertyValue()
58 } else if (Integer.class == clazz) { in toCarPropertyValue()
61 } else if (Long.class == clazz) { in toCarPropertyValue()
64 } else if (Float[].class == clazz) { in toCarPropertyValue()
70 } else if (Integer[].class == clazz) { in toCarPropertyValue()
76 } else if (Long[].class == clazz) { in toCarPropertyValue()
82 } else if (String.class == clazz) { in toCarPropertyValue()
84 } else if (byte[].class == clazz) { in toCarPropertyValue()
[all …]
DVehicleHal.java329 public <T> T get(Class clazz, int propertyId) throws PropertyTimeoutException { in get() argument
330 return get(clazz, createPropValue(propertyId, NO_AREA)); in get()
333 public <T> T get(Class clazz, int propertyId, int areaId) throws PropertyTimeoutException { in get() argument
334 return get(clazz, createPropValue(propertyId, areaId)); in get()
338 public <T> T get(Class clazz, VehiclePropValue requestedPropValue) in get() argument
343 if (clazz == Integer.class || clazz == int.class) { in get()
345 } else if (clazz == Boolean.class || clazz == boolean.class) { in get()
347 } else if (clazz == Float.class || clazz == float.class) { in get()
349 } else if (clazz == Integer[].class) { in get()
352 } else if (clazz == Float[].class) { in get()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp771 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
775 env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative()
777 env->GetMethodID(clazz, "onScannerRegistered", "(IIJJ)V"); in classInitNative()
778 method_onScanResult = env->GetMethodID(clazz, "onScanResult", in classInitNative()
781 env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative()
783 env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative()
785 env->GetMethodID(clazz, "onReadCharacteristic", "(III[B)V"); in classInitNative()
787 env->GetMethodID(clazz, "onWriteCharacteristic", "(III)V"); in classInitNative()
789 env->GetMethodID(clazz, "onExecuteCompleted", "(II)V"); in classInitNative()
791 env->GetMethodID(clazz, "onSearchCompleted", "(II)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_hfpclient.cpp396 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
398 env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative()
400 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
402 env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative()
403 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I[B)V"); in classInitNative()
404 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I[B)V"); in classInitNative()
405 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I[B)V"); in classInitNative()
406 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I[B)V"); in classInitNative()
408 env->GetMethodID(clazz, "onCurrentOperator", "(Ljava/lang/String;[B)V"); in classInitNative()
409 method_onCall = env->GetMethodID(clazz, "onCall", "(I[B)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_a2dp.cpp35 jclass clazz; member
109 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback()
121 android_bluetooth_BluetoothCodecConfig.clazz, nullptr); in bta2dp_audio_config_callback()
124 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback()
137 android_bluetooth_BluetoothCodecConfig.clazz, nullptr); in bta2dp_audio_config_callback()
140 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback()
171 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
196 env->GetMethodID(clazz, "onConnectionStateChanged", "([BI)V"); in classInitNative()
199 env->GetMethodID(clazz, "onAudioStateChanged", "([BI)V"); in classInitNative()
202 env->GetMethodID(clazz, "onCodecConfigChanged", in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp744 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
746 env->GetMethodID(clazz, "handlePassthroughRsp", "(II[B)V"); in classInitNative()
749 env->GetMethodID(clazz, "handleGroupNavigationRsp", "(II)V"); in classInitNative()
752 env->GetMethodID(clazz, "onConnectionStateChanged", "(ZZ[B)V"); in classInitNative()
754 method_getRcFeatures = env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative()
757 env->GetMethodID(clazz, "setPlayerAppSettingRsp", "([BB)V"); in classInitNative()
760 env->GetMethodID(clazz, "handlePlayerAppSetting", "([B[BI)V"); in classInitNative()
763 env->GetMethodID(clazz, "onPlayerAppSettingChanged", "([B[BI)V"); in classInitNative()
766 env->GetMethodID(clazz, "handleSetAbsVolume", "([BBB)V"); in classInitNative()
769 env->GetMethodID(clazz, "handleRegisterNotificationAbsVol", "([BB)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_hfp.cpp406 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
408 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative()
410 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
412 env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative()
413 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative()
414 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative()
416 env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative()
418 env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;[B)V"); in classInitNative()
419 method_onSendDtmf = env->GetMethodID(clazz, "onSendDtmf", "(I[B)V"); in classInitNative()
421 env->GetMethodID(clazz, "onNoiseReductionEnable", "(Z[B)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp_target.cpp174 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
176 clazz, "getCurrentSongInfo", "()Lcom/android/bluetooth/avrcp/Metadata;"); in classInitNative()
179 clazz, "getPlayStatus", "()Lcom/android/bluetooth/avrcp/PlayStatus;"); in classInitNative()
182 env->GetMethodID(clazz, "sendMediaKeyEvent", "(IZ)V"); in classInitNative()
185 env->GetMethodID(clazz, "getCurrentMediaId", "()Ljava/lang/String;"); in classInitNative()
188 env->GetMethodID(clazz, "getNowPlayingList", "()Ljava/util/List;"); in classInitNative()
191 env->GetMethodID(clazz, "getCurrentPlayerId", "()I"); in classInitNative()
194 env->GetMethodID(clazz, "getMediaPlayerList", "()Ljava/util/List;"); in classInitNative()
196 method_setBrowsedPlayer = env->GetMethodID(clazz, "setBrowsedPlayer", "(I)V"); in classInitNative()
199 clazz, "getFolderItemsRequest", "(ILjava/lang/String;)V"); in classInitNative()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchIndexProviderCodeInspector.java82 for (Class clazz : mClasses) { in run()
83 if (!isConcreteSettingsClass(clazz)) { in run()
86 final String className = clazz.getName(); in run()
88 if (!SettingsPreferenceFragment.class.isAssignableFrom(clazz)) { in run()
91 final boolean hasSearchIndexProvider = hasSearchIndexProvider(clazz); in run()
102 .isSharingPreferenceControllers(clazz); in run()
111 if (!provider.getSearchIndexableResources().getProviderValues().contains(clazz)) { in run()
117 if (!hasValidResourceFromProvider(clazz)) { in run()
153 private boolean hasSearchIndexProvider(Class clazz) { in hasSearchIndexProvider() argument
155 final Field f = clazz.getField( in hasSearchIndexProvider()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DXmlControllerAttributeTest.java81 Class<?> clazz = getClassFromClassName(controllerClassName); in testAllIndexableXML_onlyValidBasePreferenceControllersAdded() local
83 if (clazz == null) { in testAllIndexableXML_onlyValidBasePreferenceControllersAdded()
88 Constructor<?> constructor = getConstructorFromClass(clazz); in testAllIndexableXML_onlyValidBasePreferenceControllersAdded()
95 if (!isBasePreferenceController(clazz)) { in testAllIndexableXML_onlyValidBasePreferenceControllersAdded()
119 for (Class clazz : indexableClasses) { in getIndexableXml()
122 DatabaseIndexingUtils.getSearchIndexProvider(clazz); in getIndexableXml()
190 private Constructor<?> getConstructorFromClass(Class<?> clazz) { in getConstructorFromClass() argument
193 constructor = clazz.getConstructor(Context.class); in getConstructorFromClass()
202 constructor = clazz.getConstructor(Context.class, String.class); in getConstructorFromClass()
212 private boolean isBasePreferenceController(Class<?> clazz) { in isBasePreferenceController() argument
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceControllerInXmlCodeInspector.java103 for (Class<?> clazz : mClasses) { in run()
104 if (!isConcreteSettingsClass(clazz)) { in run()
108 if (!isInlineSliceClass(clazz)) { in run()
113 if (!mXmlDeclaredControllers.contains(clazz.getName())) { in run()
115 missingControllersInXml.add(clazz.getName()); in run()
128 private boolean isInlineSliceClass(Class clazz) { in isInlineSliceClass() argument
129 while (clazz != null) { in isInlineSliceClass()
130 clazz = clazz.getSuperclass(); in isInlineSliceClass()
131 if (mSliceControllerClasses.contains(clazz)) { in isInlineSliceClass()
153 for (Class clazz : indexableClasses) { in getIndexableXml()
[all …]
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp45 static jlong latinime_BinaryDictionary_open(JNIEnv *env, jclass clazz, jstring sourceDir, in latinime_BinaryDictionary_open() argument
71 static jlong latinime_BinaryDictionary_createOnMemory(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_createOnMemory() argument
99 static bool latinime_BinaryDictionary_flush(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_flush() argument
110 static bool latinime_BinaryDictionary_needsToRunGC(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_needsToRunGC() argument
117 static bool latinime_BinaryDictionary_flushWithGC(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_flushWithGC() argument
128 static void latinime_BinaryDictionary_close(JNIEnv *env, jclass clazz, jlong dict) { in latinime_BinaryDictionary_close() argument
134 static void latinime_BinaryDictionary_getHeaderInfo(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getHeaderInfo() argument
170 static int latinime_BinaryDictionary_getFormatVersion(JNIEnv *env, jclass clazz, jlong dict) { in latinime_BinaryDictionary_getFormatVersion() argument
178 static void latinime_BinaryDictionary_getSuggestions(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getSuggestions() argument
263 static jint latinime_BinaryDictionary_getProbability(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getProbability() argument
[all …]
Djni_common.cpp65 jclass clazz = env->FindClass(className); in registerNativeMethods() local
66 if (!clazz) { in registerNativeMethods()
70 if (env->RegisterNatives(clazz, methods, numMethods) != 0) { in registerNativeMethods()
72 env->DeleteLocalRef(clazz); in registerNativeMethods()
75 env->DeleteLocalRef(clazz); in registerNativeMethods()
/packages/apps/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java113 Class<?> clazz = null; in invokeMethod() local
116 clazz = getTargetContext().getClassLoader().loadClass(className); in invokeMethod()
120 clazz = getContext().getClassLoader().loadClass(className); in invokeMethod()
128 method = clazz.getMethod(methodName, Context.class, Bundle.class); in invokeMethod()
134 method.invoke(clazz, methodArgs); in invokeMethod()
139 method = clazz.getMethod(methodName, Context.class); in invokeMethod()
145 method.invoke(clazz, methodArgs); in invokeMethod()
149 method = clazz.getMethod(methodName); in invokeMethod()
150 method.invoke(clazz); in invokeMethod()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java118 By.scrollable(true).clazz(SCROLLVIEW_CLASS);
120 By.scrollable(true).clazz(LISTVIEW_CLASS);
184 .clazz(EDIT_TEXT_CLASS)), TIMEOUT*2) in testAddNetworkMenu_Default()
190 .clazz(SPINNER_CLASS)), TIMEOUT) in testAddNetworkMenu_Default()
196 .clazz(CHECKBOX_CLASS)), TIMEOUT).isChecked()); in testAddNetworkMenu_Default()
208 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
213 .clazz(SPINNER_CLASS); in testAddNetworkMenu_Proxy()
245 .clazz(CHECKBOX_CLASS)), TIMEOUT).click(); in testAddNetworkMenu_IpSettings()
249 By.res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_IP_SETTINGS_RES_ID).clazz(SPINNER_CLASS); in testAddNetworkMenu_IpSettings()
276 By.res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_PHASE2_RES_ID).clazz(SPINNER_CLASS); in testPhase2Settings()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java50 public EntrySchema(Class<? extends Entry> clazz) { in EntrySchema() argument
52 ColumnInfo[] columns = parseColumnInfo(clazz); in EntrySchema()
53 mTableName = parseTableName(clazz); in EntrySchema()
448 private String parseTableName(Class<? extends Object> clazz) { in parseTableName() argument
450 Entry.Table table = clazz.getAnnotation(Entry.Table.class); in parseTableName()
459 private ColumnInfo[] parseColumnInfo(Class<? extends Object> clazz) { in parseColumnInfo() argument
461 while (clazz != null) { in parseColumnInfo()
462 parseColumnInfo(clazz, columns); in parseColumnInfo()
463 clazz = clazz.getSuperclass(); in parseColumnInfo()
472 private void parseColumnInfo(Class<? extends Object> clazz, ArrayList<ColumnInfo> columns) { in parseColumnInfo() argument
[all …]
DBitmapUtils.java192 Class<?> clazz = null; in createVideoThumbnail() local
195 clazz = Class.forName("android.media.MediaMetadataRetriever"); in createVideoThumbnail()
196 instance = clazz.newInstance(); in createVideoThumbnail()
198 Method method = clazz.getMethod("setDataSource", String.class); in createVideoThumbnail()
203 return (Bitmap) clazz.getMethod("captureFrame").invoke(instance); in createVideoThumbnail()
205 byte[] data = (byte[]) clazz.getMethod("getEmbeddedPicture").invoke(instance); in createVideoThumbnail()
210 return (Bitmap) clazz.getMethod("getFrameAtTime").invoke(instance); in createVideoThumbnail()
229 clazz.getMethod("release").invoke(instance); in createVideoThumbnail()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSliceDataContractTest.java70 for (Class<?> clazz : resources.getProviderValues()) { in preferenceWithControllerMustHaveNonEmptyTitle()
71 verifyPreferenceTitle(nullTitleFragments, clazz); in preferenceWithControllerMustHaveNonEmptyTitle()
85 private void verifyPreferenceTitle(Set<String> nullTitleFragments, Class<?> clazz) in verifyPreferenceTitle() argument
87 if (clazz == null) { in verifyPreferenceTitle()
90 final String className = clazz.getName(); in verifyPreferenceTitle()
92 DatabaseIndexingUtils.getSearchIndexProvider(clazz); in verifyPreferenceTitle()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DMainActivity.java37 <T extends Fragment> void add(String text, Class<T> clazz) {
38 add(new FragmentMenuEntry(text, clazz));
102 FragmentClassOrInstance(Class<T> clazz) { in FragmentClassOrInstance() argument
103 mClazz = clazz; in FragmentClassOrInstance()
121 FragmentMenuEntry(String text, Class<T> clazz) { in FragmentMenuEntry() argument
123 mFragment = new FragmentClassOrInstance<>(clazz); in FragmentMenuEntry()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/
DSettingsSearchIndexablesProvider.java226 for (Class<?> clazz : values) { in getNonIndexableKeysFromProvider()
229 clazz); in getNonIndexableKeysFromProvider()
244 Log.e(TAG, "Error trying to get non-indexable keys from: " + clazz.getName(), e); in getNonIndexableKeysFromProvider()
277 for (Class<?> clazz : values) { in getSearchIndexableResourcesFromProvider()
279 clazz); in getSearchIndexableResourcesFromProvider()
290 ? clazz.getName() in getSearchIndexableResourcesFromProvider()
305 for (Class<?> clazz : values) { in getSearchIndexableRawFromProvider()
307 clazz); in getSearchIndexableRawFromProvider()
318 raw.className = clazz.getName(); in getSearchIndexableRawFromProvider()
/packages/apps/Settings/src/com/android/settings/search/
DSettingsSearchIndexablesProvider.java226 for (Class<?> clazz : values) { in getNonIndexableKeysFromProvider()
229 clazz); in getNonIndexableKeysFromProvider()
244 Log.e(TAG, "Error trying to get non-indexable keys from: " + clazz.getName(), e); in getNonIndexableKeysFromProvider()
277 for (Class<?> clazz : values) { in getSearchIndexableResourcesFromProvider()
279 clazz); in getSearchIndexableResourcesFromProvider()
290 ? clazz.getName() in getSearchIndexableResourcesFromProvider()
305 for (Class<?> clazz : values) { in getSearchIndexableRawFromProvider()
307 clazz); in getSearchIndexableRawFromProvider()
318 raw.className = clazz.getName(); in getSearchIndexableRawFromProvider()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
DInstrumentableFragmentCodeInspector.java50 for (Class clazz : mClasses) { in run()
51 if (!isConcreteSettingsClass(clazz)) { in run()
54 final String className = clazz.getName(); in run()
58 if (Fragment.class.isAssignableFrom(clazz) in run()
59 && !Instrumentable.class.isAssignableFrom(clazz) in run()
/packages/apps/Camera2/src/com/android/camera/util/
DListenerCombiner.java106 public ListenerCombiner(Class<Input> clazz, StateChangeListener listener) { in ListenerCombiner() argument
107 this(clazz); in ListenerCombiner()
111 public ListenerCombiner(Class<Input> clazz) { in ListenerCombiner() argument
112 mInputs = new EnumMap<Input, Boolean>(clazz); in ListenerCombiner()
114 for (Input i : clazz.getEnumConstants()) { in ListenerCombiner()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DUserRestrictionTest.java87 for (Class<?> clazz : resources.getProviderValues()) { in userRestrictionAttributeShouldBeValid()
88 verifyUserRestriction(clazz); in userRestrictionAttributeShouldBeValid()
92 private void verifyUserRestriction(Class<?> clazz) in verifyUserRestriction() argument
94 if (clazz == null) { in verifyUserRestriction()
97 final String className = clazz.getName(); in verifyUserRestriction()
99 DatabaseIndexingUtils.getSearchIndexProvider(clazz); in verifyUserRestriction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DLifecycleObserverCodeInspector.java65 for (Class clazz : mClasses) { in run()
66 if (!isConcreteSettingsClass(clazz)) { in run()
71 if (event.isAssignableFrom(clazz)) { in run()
76 if (classObservesLifecycleEvent && !LifecycleObserver.class.isAssignableFrom(clazz)) { in run()
79 notImplementingLifecycleObserver.add(clazz.getName()); in run()

12345