Searched refs:isMethodAvailable (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Contacts/tests/src/com/android/contacts/compat/ |
D | CompatUtilsTest.java | 42 assertFalse(CompatUtils.isMethodAvailable(null, "methodName")); in testIsMethodAvailable_NullClassName() 46 assertFalse(CompatUtils.isMethodAvailable("", "methodName")); in testIsMethodAvailable_EmptyClassName() 50 assertFalse(CompatUtils.isMethodAvailable("className", null)); in testIsMethodAvailable_NullMethodName() 54 assertFalse(CompatUtils.isMethodAvailable("className", "")); in testIsMethodAvailable_EmptyMethodName() 58 assertFalse(CompatUtils.isMethodAvailable("com.android.contacts.common.NonexistentClass", in testIsMethodAvailable_NonexistentClass() 63 assertFalse(CompatUtils.isMethodAvailable(BaseClass.class.getName(), "derivedMethod")); in testIsMethodAvailable_NonexistentMethod() 67 assertTrue(CompatUtils.isMethodAvailable(BaseClass.class.getName(), "baseMethod")); in testIsMethodAvailable() 71 assertTrue(CompatUtils.isMethodAvailable(DerivedClass.class.getName(), "baseMethod")); in testIsMethodAvailable_InheritedMethod() 75 assertTrue(CompatUtils.isMethodAvailable(DerivedClass.class.getName(), "overloadedMethod")); in testIsMethodAvailable_OverloadedMethod() 76 assertTrue(CompatUtils.isMethodAvailable(DerivedClass.class.getName(), "overloadedMethod", in testIsMethodAvailable_OverloadedMethod() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyManagerCompat.java | 47 || CompatUtils.isMethodAvailable(TELEPHONY_MANAGER_CLASS, "isVoiceCapable")) { in isVoiceCapable() 70 .isMethodAvailable(TELEPHONY_MANAGER_CLASS, "getPhoneCount")) { in getPhoneCount() 91 || CompatUtils.isMethodAvailable(TELEPHONY_MANAGER_CLASS, in getDeviceId() 110 || CompatUtils.isMethodAvailable(TELEPHONY_MANAGER_CLASS, "isTtyModeSupported")) { in isTtyModeSupported() 129 || CompatUtils.isMethodAvailable(TELEPHONY_MANAGER_CLASS, in isHearingAidCompatibilitySupported()
|
D | CompatUtils.java | 220 public static boolean isMethodAvailable(@Nullable String className, @Nullable String methodName, in isMethodAvailable() method in CompatUtils
|