/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 50 Class<?> clazz = getJavaClass(halValue.prop & VehiclePropertyType.MASK); in toCarPropertyValue() local 57 if (Boolean.class == clazz) { in toCarPropertyValue() 60 } else if (Float.class == clazz) { in toCarPropertyValue() 63 } else if (Integer.class == clazz) { in toCarPropertyValue() 66 } else if (Long.class == clazz) { in toCarPropertyValue() 69 } else if (Float[].class == clazz) { in toCarPropertyValue() 75 } else if (Integer[].class == clazz) { in toCarPropertyValue() 81 } else if (Long[].class == clazz) { in toCarPropertyValue() 87 } else if (String.class == clazz) { in toCarPropertyValue() 89 } else if (byte[].class == clazz) { in toCarPropertyValue() [all …]
|
D | VehicleHal.java | 423 public <T> T get(Class clazz, int propertyId) { in get() argument 424 return get(clazz, createPropValue(propertyId, NO_AREA)); in get() 427 public <T> T get(Class clazz, int propertyId, int areaId) { in get() argument 428 return get(clazz, createPropValue(propertyId, areaId)); in get() 432 public <T> T get(Class clazz, VehiclePropValue requestedPropValue) { in get() argument 436 if (clazz == Integer.class || clazz == int.class) { in get() 438 } else if (clazz == Boolean.class || clazz == boolean.class) { in get() 440 } else if (clazz == Float.class || clazz == float.class) { in get() 442 } else if (clazz == Integer[].class) { in get() 445 } else if (clazz == Float[].class) { in get() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_gatt.cpp | 770 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 …]
|
D | com_android_bluetooth_hfpclient.cpp | 411 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 …]
|
D | com_android_bluetooth_a2dp.cpp | 35 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 …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 795 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 …]
|
D | com_android_bluetooth_hfp.cpp | 405 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 …]
|
D | com_android_bluetooth_avrcp_target.cpp | 173 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 …]
|
D | com_android_bluetooth_hid_device.cpp | 155 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 159 env->GetMethodID(clazz, "onApplicationStateChanged", "([BZ)V"); in classInitNative() 161 env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative() 162 method_onGetReport = env->GetMethodID(clazz, "onGetReport", "(BBS)V"); in classInitNative() 163 method_onSetReport = env->GetMethodID(clazz, "onSetReport", "(BB[B)V"); in classInitNative() 164 method_onSetProtocol = env->GetMethodID(clazz, "onSetProtocol", "(B)V"); in classInitNative() 165 method_onInterruptData = env->GetMethodID(clazz, "onInterruptData", "(B[B)V"); in classInitNative() 167 env->GetMethodID(clazz, "onVirtualCableUnplug", "()V"); in classInitNative()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | SearchIndexProviderCodeInspector.java | 91 for (Class clazz : mClasses) { in run() 92 if (!isConcreteSettingsClass(clazz)) { in run() 95 final String className = clazz.getName(); in run() 97 if (!SettingsPreferenceFragment.class.isAssignableFrom(clazz)) { in run() 100 final boolean hasSearchIndexProvider = hasSearchIndexProvider(clazz); in run() 111 .isSharingPreferenceControllers(clazz); in run() 119 if (!providerClasses.contains(clazz)) { in run() 125 if (!hasValidResourceFromProvider(clazz)) { in run() 161 private boolean hasSearchIndexProvider(Class clazz) { in hasSearchIndexProvider() argument 163 final Field f = clazz.getField( in hasSearchIndexProvider() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | XmlControllerAttributeTest.java | 77 Class<?> clazz = getClassFromClassName(controllerClassName); in testAllIndexableXML_onlyValidBasePreferenceControllersAdded() local 79 if (clazz == null) { in testAllIndexableXML_onlyValidBasePreferenceControllersAdded() 84 Constructor<?> constructor = getConstructorFromClass(clazz); in testAllIndexableXML_onlyValidBasePreferenceControllersAdded() 91 if (!isBasePreferenceController(clazz)) { in testAllIndexableXML_onlyValidBasePreferenceControllersAdded() 184 private Constructor<?> getConstructorFromClass(Class<?> clazz) { in getConstructorFromClass() argument 187 constructor = clazz.getConstructor(Context.class); in getConstructorFromClass() 196 constructor = clazz.getConstructor(Context.class, String.class); in getConstructorFromClass() 206 private boolean isBasePreferenceController(Class<?> clazz) { in isBasePreferenceController() argument 207 while (clazz != null) { in isBasePreferenceController() 208 clazz = clazz.getSuperclass(); in isBasePreferenceController() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | AbstractExtendedMockitoTestCase.java | 367 protected void assertSpied(Class<?> clazz) { in assertSpied() argument 368 Preconditions.checkArgument(mStaticSpiedClasses.contains(clazz), in assertSpied() 369 "did not call spyStatic() on %s", clazz.getName()); in assertSpied() 393 public <T> CustomMockitoSessionBuilder spyStatic(Class<T> clazz) { in spyStatic() argument 394 Preconditions.checkState(!mStaticSpiedClasses.contains(clazz), in spyStatic() 395 "already called spyStatic() on " + clazz); in spyStatic() 396 mStaticSpiedClasses.add(clazz); in spyStatic() 397 mBuilder.spyStatic(clazz); in spyStatic() 492 private <T> T getAnswer(InvocationOnMock invocation, Class<T> clazz, 497 defaultValue = safeCast(invocation.getArguments()[defaultValueIndex], clazz); [all …]
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 45 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 …]
|
D | jni_common.cpp | 65 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/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceControllerInXmlCodeInspector.java | 103 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()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | RunMethodInstrumentation.java | 113 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/ |
D | MoreWirelessSettingsTest2.java | 118 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/ |
D | EntrySchema.java | 50 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 …]
|
D | BitmapUtils.java | 192 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/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/ |
D | MainActivity.java | 37 <T extends Fragment> void add(String text, Class<T> clazz) { 38 add(new FragmentMenuEntry(text, clazz)); 103 FragmentClassOrInstance(Class<T> clazz) { in FragmentClassOrInstance() argument 104 mClazz = clazz; in FragmentClassOrInstance() 122 FragmentMenuEntry(String text, Class<T> clazz) { in FragmentMenuEntry() argument 124 mFragment = new FragmentClassOrInstance<>(clazz); in FragmentMenuEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/ |
D | InstrumentableFragmentCodeInspector.java | 50 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/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/ |
D | ShadowOverrides.java | 43 Class<T> clazz, Context context, int resId) { in getObject() argument 44 ObjectProvider<T> provider = sProviderMap.get(clazz); in getObject() 49 ClassParameter.from(Class.class, clazz), in getObject() 54 public static <T> void setProvider(Class<T> clazz, ObjectProvider<T> provider) { in setProvider() argument 55 sProviderMap.put(clazz, provider); in setProvider()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ListenerCombiner.java | 106 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/robotests/src/com/android/settings/core/codeinspection/ |
D | LifecycleObserverCodeInspector.java | 65 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()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | BasePreferenceController.java | 137 final Class<?> clazz = Class.forName(controllerName); in createInstance() local 139 clazz.getConstructor(Context.class, String.class); in createInstance() 156 final Class<?> clazz = Class.forName(controllerName); in createInstance() local 157 final Constructor<?> preferenceConstructor = clazz.getConstructor(Context.class); in createInstance() 180 final Class<?> clazz = Class.forName(controllerName); in createInstance() local 182 clazz.getConstructor(Context.class, String.class); in createInstance()
|