Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 119) 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.java330 public <T> T get(Class clazz, int propertyId) throws PropertyTimeoutException { in get() argument
331 return get(clazz, createPropValue(propertyId, NO_AREA)); in get()
334 public <T> T get(Class clazz, int propertyId, int areaId) throws PropertyTimeoutException { in get() argument
335 return get(clazz, createPropValue(propertyId, areaId)); in get()
339 public <T> T get(Class clazz, VehiclePropValue requestedPropValue) in get() argument
344 if (clazz == Integer.class || clazz == int.class) { in get()
346 } else if (clazz == Boolean.class || clazz == boolean.class) { in get()
348 } else if (clazz == Float.class || clazz == float.class) { in get()
350 } else if (clazz == Integer[].class) { in get()
353 } else if (clazz == Float[].class) { in get()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp770 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
774 env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative()
776 env->GetMethodID(clazz, "onScannerRegistered", "(IIJJ)V"); in classInitNative()
777 method_onScanResult = env->GetMethodID(clazz, "onScanResult", in classInitNative()
780 env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative()
782 env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative()
784 env->GetMethodID(clazz, "onReadCharacteristic", "(III[B)V"); in classInitNative()
786 env->GetMethodID(clazz, "onWriteCharacteristic", "(III)V"); in classInitNative()
788 env->GetMethodID(clazz, "onExecuteCompleted", "(II)V"); in classInitNative()
790 env->GetMethodID(clazz, "onSearchCompleted", "(II)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_hfpclient.cpp411 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
413 env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative()
415 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
417 env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative()
418 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I[B)V"); in classInitNative()
419 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I[B)V"); in classInitNative()
420 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I[B)V"); in classInitNative()
421 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I[B)V"); in classInitNative()
423 env->GetMethodID(clazz, "onCurrentOperator", "(Ljava/lang/String;[B)V"); in classInitNative()
424 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()
195 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
220 env->GetMethodID(clazz, "onConnectionStateChanged", "([BI)V"); in classInitNative()
223 env->GetMethodID(clazz, "onAudioStateChanged", "([BI)V"); in classInitNative()
226 env->GetMethodID(clazz, "onCodecConfigChanged", in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp795 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
797 env->GetMethodID(clazz, "handlePassthroughRsp", "(II[B)V"); in classInitNative()
800 env->GetMethodID(clazz, "handleGroupNavigationRsp", "(II)V"); in classInitNative()
803 env->GetMethodID(clazz, "onConnectionStateChanged", "(ZZ[B)V"); in classInitNative()
805 method_getRcFeatures = env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative()
807 method_getRcPsm = env->GetMethodID(clazz, "getRcPsm", "([BI)V"); in classInitNative()
810 env->GetMethodID(clazz, "setPlayerAppSettingRsp", "([BB)V"); in classInitNative()
813 env->GetMethodID(clazz, "handlePlayerAppSetting", "([B[BI)V"); in classInitNative()
816 env->GetMethodID(clazz, "onPlayerAppSettingChanged", "([B[BI)V"); in classInitNative()
819 env->GetMethodID(clazz, "handleSetAbsVolume", "([BBB)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_hfp.cpp405 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
407 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative()
409 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
411 env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative()
412 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative()
413 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative()
415 env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative()
417 env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;[B)V"); in classInitNative()
418 method_onSendDtmf = env->GetMethodID(clazz, "onSendDtmf", "(I[B)V"); in classInitNative()
420 env->GetMethodID(clazz, "onNoiseReductionEnable", "(Z[B)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp_target.cpp173 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
175 clazz, "getCurrentSongInfo", "()Lcom/android/bluetooth/avrcp/Metadata;"); in classInitNative()
178 clazz, "getPlayStatus", "()Lcom/android/bluetooth/avrcp/PlayStatus;"); in classInitNative()
181 env->GetMethodID(clazz, "sendMediaKeyEvent", "(IZ)V"); in classInitNative()
184 env->GetMethodID(clazz, "getCurrentMediaId", "()Ljava/lang/String;"); in classInitNative()
187 env->GetMethodID(clazz, "getNowPlayingList", "()Ljava/util/List;"); in classInitNative()
190 env->GetMethodID(clazz, "getCurrentPlayerId", "()I"); in classInitNative()
193 env->GetMethodID(clazz, "getMediaPlayerList", "()Ljava/util/List;"); in classInitNative()
195 method_setBrowsedPlayer = env->GetMethodID(clazz, "setBrowsedPlayer", "(I)V"); in classInitNative()
198 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/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/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/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