Home
last modified time | relevance | path

Searched refs:canAccess (Results 1 – 3 of 3) sorted by relevance

/aosp12/art/test/674-hiddenapi/src-ex/
H A DChildClass.java516 boolean canAccess = (behaviour != Behaviour.Denied); in checkNullaryConstructor()
518 if (Reflection.canUseNewInstance(klass) != canAccess) { in checkNullaryConstructor()
519 throw new RuntimeException("Expected to " + (canAccess ? "" : "not ") + in checkNullaryConstructor()
526 boolean canAccess = (behaviour != Behaviour.Denied); in checkLinking()
528 if (Linking.canAccess(className, takesParameter) != canAccess) { in checkLinking()
529 throw new RuntimeException("Expected to " + (canAccess ? "" : "not ") + in checkLinking()
535 String fn, boolean canAccess) { in throwDiscoveryException() argument
537 "." + name + " to " + (canAccess ? "" : "not ") + "be discoverable with " + fn + ". " + in throwDiscoveryException()
H A DLinking.java20 public static boolean canAccess(String className, boolean takesParameter) throws Exception { in canAccess() method in Linking
/aosp12/frameworks/native/services/sensorservice/
H A DSensorService.cpp1943 bool canAccess = false; in canAccessSensor() local
1950 canAccess = true; in canAccessSensor()
1956 canAccess = (appOpMode == AppOpsManager::MODE_ALLOWED); in canAccessSensor()
1958 canAccess = true; in canAccessSensor()
1962 if (!canAccess) { in canAccessSensor()
1967 return canAccess; in canAccessSensor()