Home
last modified time | relevance | path

Searched refs:Method (Results 1 – 25 of 155) sorted by relevance

1234567

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/junit/
DMethodSorter.java18 import java.lang.reflect.Method;
33 public static final Comparator<Method> DEFAULT = new Comparator<Method>() {
34 public int compare(Method m1, Method m2) {
47 public static final Comparator<Method> NAME_ASCENDING = new Comparator<Method>() {
48 public int compare(Method m1, Method m2) {
71 public static Method[] getSortedMethods(Class<?> clazz, Method[] methods) { in getSortedMethods()
72 Comparator<Method> comparator = getSorter(clazz.getAnnotation(FixMethodOrder.class)); in getSortedMethods()
84 private static Comparator<Method> getSorter(FixMethodOrder fixMethodOrder) { in getSorter()
DSafeAndroidJUnitRunner.java27 import java.lang.reflect.Method;
89 for (Method eachMethod : getSafeDeclaredMethods(eachClass)) { in scanAnnotatedMembers()
100 private static Method[] getSafeDeclaredMethods(Class<?> clazz) { in getSafeDeclaredMethods()
102 Method[] allMethods = clazz.getMethods(); in getSafeDeclaredMethods()
103 List<Method> safeMethodsList = new ArrayList<>(); in getSafeDeclaredMethods()
104 for (Method method : allMethods) { in getSafeDeclaredMethods()
121 Method[] safeMethods = safeMethodsList.stream().toArray(Method[]::new); in getSafeDeclaredMethods()
135 Method[] sortedMethods = MethodSorter.getSortedMethods(clazz, safeMethods); in getSafeDeclaredMethods()
/packages/modules/Wifi/framework/api/
Dlint-baseline.txt17Method 'setMacRandomizationSetting' documentation mentions permissions without declaring @Requires…
19 Method 'getMacAddress' documentation mentions permissions without declaring @RequiresPermission
21Method 'addLocalOnlyConnectionFailureListener' documentation mentions permissions already declared…
23Method 'addSuggestionConnectionStatusListener' documentation mentions permissions already declared…
25Method 'allowAutojoinGlobal' documentation mentions permissions without declaring @RequiresPermiss…
27Method 'getChannelData' documentation mentions permissions already declared by @RequiresPermission
29Method 'getPasspointConfigurations' documentation mentions permissions without declaring @Requires…
31Method 'getScanResults' documentation mentions permissions already declared by @RequiresPermission
33Method 'queryAutojoinGlobal' documentation mentions permissions without declaring @RequiresPermiss…
35Method 'registerScanResultsCallback' documentation mentions permissions already declared by @Requi…
[all …]
Dmodule-lib-lint-baseline.txt27Method android.net.wifi.WifiScanner.configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSet…
29Method android.net.wifi.WifiScanner.configureWifiChange(int, int, int, int, int, android.net.wifi.…
31Method android.net.wifi.WifiScanner.startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], …
33Method android.net.wifi.WifiScanner.startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChang…
35Method android.net.wifi.WifiScanner.stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener)…
37Method android.net.wifi.WifiScanner.stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChange…
51Method 'setMacRandomizationSetting' documentation mentions permissions without declaring @Requires…
53Method 'setRepeaterEnabled' documentation mentions permissions already declared by @RequiresPermis…
55 Method 'getMacAddress' documentation mentions permissions without declaring @RequiresPermission
57Method 'addLocalOnlyConnectionFailureListener' documentation mentions permissions already declared…
[all …]
Dsystem-lint-baseline.txt27Method android.net.wifi.WifiScanner.configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSet…
29Method android.net.wifi.WifiScanner.configureWifiChange(int, int, int, int, int, android.net.wifi.…
31Method android.net.wifi.WifiScanner.startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], …
33Method android.net.wifi.WifiScanner.startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChang…
35Method android.net.wifi.WifiScanner.stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener)…
37Method android.net.wifi.WifiScanner.stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChange…
71Method 'setMacRandomizationSetting' documentation mentions permissions without declaring @Requires…
73Method 'setRepeaterEnabled' documentation mentions permissions already declared by @RequiresPermis…
75 Method 'getMacAddress' documentation mentions permissions without declaring @RequiresPermission
77Method 'addLocalOnlyConnectionFailureListener' documentation mentions permissions already declared…
[all …]
/packages/modules/Connectivity/framework/api/
Dmodule-lib-lint-baseline.txt7Method 'isTetheringSupported' documentation mentions permissions already declared by @RequiresPerm…
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
11 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
13Method 'requestRouteToHostAddress' documentation mentions permissions without declaring @RequiresP…
15Method 'getCaptivePortalApiUrl' documentation mentions permissions without declaring @RequiresPerm…
17Method 'getCaptivePortalData' documentation mentions permissions without declaring @RequiresPermis…
19 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
21Method 'getUnderlyingNetworks' documentation mentions permissions without declaring @RequiresPermi…
23Method 'setAllowedUids' documentation mentions permissions already declared by @RequiresPermission
25Method 'setSignalStrength' documentation mentions permissions already declared by @RequiresPermiss…
[all …]
Dsystem-lint-baseline.txt7Method 'isTetheringSupported' documentation mentions permissions already declared by @RequiresPerm…
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
11 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
13Method 'getCaptivePortalApiUrl' documentation mentions permissions without declaring @RequiresPerm…
15Method 'getCaptivePortalData' documentation mentions permissions without declaring @RequiresPermis…
17 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
19Method 'getUnderlyingNetworks' documentation mentions permissions without declaring @RequiresPermi…
21Method 'setSignalStrength' documentation mentions permissions already declared by @RequiresPermiss…
23Method 'setUnderlyingNetworks' documentation mentions permissions already declared by @RequiresPer…
25Method 'setSignalStrength' documentation mentions permissions already declared by @RequiresPermiss…
[all …]
Dlint-baseline.txt7 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
11 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
13Method 'setTrafficStatsUid' documentation mentions permissions without declaring @RequiresPermissi…
15Method 'setTrafficStatsUid' documentation mentions permissions without declaring @RequiresPermissi…
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DDynamicLogger.java25 import java.lang.reflect.Method;
108 private static Method getMethod(Class<?> clazz, String name, Class<?>... parameterTypes) { in getMethod()
127 private static void call(LogLevel level, String tag, @Nullable Method method, Object... args) { in call()
148 @Nullable Method method, in call()
173 private final Method mWtf;
174 private final Method mExcWtf;
175 private final Method mE;
176 private final Method mExcE;
177 private final Method mW;
178 private final Method mExcW;
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DCompatUtils.java25 import java.lang.reflect.Method;
42 public static Method getMethod(final Class<?> targetClass, final String name, in getMethod()
94 final Method method, final Object... args) { in invoke()
171 private final Method mMethod;
173 public ToObjectMethodWrapper(final Method method, final T defaultValue) { in ToObjectMethodWrapper()
184 private final Method mMethod;
186 public ToIntMethodWrapper(final Method method, final int defaultValue) { in ToIntMethodWrapper()
196 private final Method mMethod;
198 public ToFloatMethodWrapper(final Method method, final float defaultValue) { in ToFloatMethodWrapper()
208 private final Method mMethod;
[all …]
DNotificationCompatUtils.java23 import java.lang.reflect.Method;
27 private static final Method METHOD_setColor =
29 private static final Method METHOD_setVisibility =
31 private static final Method METHOD_setCategory =
33 private static final Method METHOD_setPriority =
35 private static final Method METHOD_build =
DViewCompatUtils.java21 import java.lang.reflect.Method;
29 private static final Method METHOD_getPaddingEnd = CompatUtils.getMethod(
31 private static final Method METHOD_setPaddingRelative = CompatUtils.getMethod(
35 private static final Method METHOD_setTextAlignment = CompatUtils.getMethod(
/packages/modules/Permission/framework-s/api/
Dmodule-lib-lint-baseline.txt19Method 'addOnRoleHoldersChangedListenerAsUser' documentation mentions permissions already declared…
21Method 'addRoleHolderAsUser' documentation mentions permissions already declared by @RequiresPermi…
23Method 'addRoleHolderFromController' documentation mentions permissions already declared by @Requi…
25Method 'clearRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPe…
27Method 'getRoleHolders' documentation mentions permissions already declared by @RequiresPermission
29Method 'getRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPerm…
31Method 'removeOnRoleHoldersChangedListenerAsUser' documentation mentions permissions already decla…
33Method 'removeRoleHolderAsUser' documentation mentions permissions already declared by @RequiresPe…
35Method 'removeRoleHolderFromController' documentation mentions permissions already declared by @Re…
37Method 'setBrowserRoleHolder' documentation mentions permissions already declared by @RequiresPerm…
[all …]
Dsystem-lint-baseline.txt19Method 'addOnRoleHoldersChangedListenerAsUser' documentation mentions permissions already declared…
21Method 'addRoleHolderAsUser' documentation mentions permissions already declared by @RequiresPermi…
23Method 'addRoleHolderFromController' documentation mentions permissions already declared by @Requi…
25Method 'clearRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPe…
27Method 'getRoleHolders' documentation mentions permissions already declared by @RequiresPermission
29Method 'getRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPerm…
31Method 'removeOnRoleHoldersChangedListenerAsUser' documentation mentions permissions already decla…
33Method 'removeRoleHolderAsUser' documentation mentions permissions already declared by @RequiresPe…
35Method 'removeRoleHolderFromController' documentation mentions permissions already declared by @Re…
37Method 'setRoleNamesFromController' documentation mentions permissions already declared by @Requir…
/packages/services/Car/libs/car-test-lib/src/android/car/test/
DApiHelper.java24 import java.lang.reflect.Method;
92 private static Method getMethod(String fullyQualifiedMethodName) throws ClassNotFoundException { in getMethod()
128 private static Method getMethodWithParameters(Class<?> clazz, String methodName, in getMethodWithParameters()
146 Method[] allMethods = clazz.getDeclaredMethods(); in getMethodWithParameters()
148 for (Method method : allMethods) { in getMethodWithParameters()
179 private static Method getMethodWithoutParameters(Class<?> clazz, String methodName) { in getMethodWithoutParameters()
183 List<Method> methods = new ArrayList<>(); in getMethodWithoutParameters()
184 for (Method method : clazz.getDeclaredMethods()) { in getMethodWithoutParameters()
/packages/modules/Connectivity/Tethering/common/TetheringLib/api/
Dmodule-lib-lint-baseline.txt7Method 'requestLatestTetheringEntitlementResult' documentation mentions permissions already declar…
9Method 'startTethering' documentation mentions permissions already declared by @RequiresPermission
11Method 'startTethering' documentation mentions permissions already declared by @RequiresPermission
13Method 'stopAllTethering' documentation mentions permissions already declared by @RequiresPermissi…
15Method 'stopTethering' documentation mentions permissions already declared by @RequiresPermission
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DAnnotationHelper.java25 import java.lang.reflect.Method;
42 Method[] objectMethods = Object.class.getMethods();
45 for (Method method : objectMethods) {
85 Method[] methods = Class.forName(className).getDeclaredMethods(); in checkForAnnotation()
87 Method method = methods[j]; in checkForAnnotation()
167 private static boolean containsAddedInAnnotation(Method method, in containsAddedInAnnotation()
206 private static void validatedAddInOrBeforeAnnotation(Method method, in validatedAddInOrBeforeAnnotation()
238 private static boolean isExempt(Method method) { in isExempt()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestHttpServer.kt45 val method: Method = Method.GET, in <lambda>()
64 ?: "", Method.GET, uri.query ?: ""), in <lambda>()
90 if (Method.PUT == session.method || Method.POST == session.method) { in <lambda>()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverAppTest.java30 import java.lang.reflect.Method;
95 Method method = CellBroadcastReceiverApp.class.getDeclaredMethod("clearNewMessageList"); in clearNewMessageList()
104 Method method = CellBroadcastReceiverApp.class.getDeclaredMethod( in addNewMessageToList()
116 Method method = CellBroadcastReceiverApp.class.getDeclaredMethod( in removeReadMessage()
123 Method method = CellBroadcastReceiverApp.class.getDeclaredMethod("getLatestMessage"); in getLatestMessage()
129 Method method = CellBroadcastReceiverApp.class.getDeclaredMethod("getNewMessageList"); in getNewMessageList()
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrunner/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxTestScenarioRunner.java34 import java.lang.reflect.Method;
78 Method[] testInstanceMethods = in onLoadSdk()
81 for (final Method method : testInstanceMethods) { in onLoadSdk()
103 Method methodFound = in onLoadSdk()
133 private Method findMethodOnTestInstance( in findMethodOnTestInstance()
147 final Method method, in invokeMethodOnTestInstance()
/packages/apps/Dialer/java/com/android/dialer/oem/
DSystemPropertiesAccessor.java22 import java.lang.reflect.Method;
29 private Method systemPropertiesGetMethod;
33 Method systemPropertiesGetMethod = getSystemPropertiesGetMethod(); in get()
47 private @Nullable Method getSystemPropertiesGetMethod() { in getSystemPropertiesGetMethod()
/packages/modules/AppSearch/framework/api/
Dlint-baseline.txt3Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
5Method 'setRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
7Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
9Method 'addRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
Dmodule-lib-lint-baseline.txt3Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
5Method 'setRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
7Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
9Method 'addRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
Dsystem-lint-baseline.txt3Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
5Method 'setRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
7Method 'getRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
9Method 'addRequiredPermissionsForSchemaTypeVisibility' documentation mentions permissions without …
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DApiHelperTest.java33 import java.lang.reflect.Method;
88 Method method1 = assertMethod( in testResolve_methodWithOverloadedParameters()
92 Method method2 = assertMethod( in testResolve_methodWithOverloadedParameters()
199 private static Method assertMethod(String api, Class<?> expectedClass, String expectedName, in assertMethod()
201 Method method = assertMember(api, Method.class, expectedClass, expectedName); in assertMethod()

1234567