/aosp14/frameworks/base/location/java/android/location/util/identity/ |
H A D | CallerIdentity.java | 37 public final class CallerIdentity { class 43 public static CallerIdentity forTest(int uid, int pid, String packageName, in forTest() 52 public static CallerIdentity forTest(int uid, int pid, String packageName, in forTest() 62 public static CallerIdentity forAggregation(CallerIdentity callerIdentity) { in forAggregation() 74 public static CallerIdentity fromContext(Context context) { in fromContext() 84 public static CallerIdentity fromBinder(Context context, String packageName, in fromBinder() 110 public static CallerIdentity fromBinderUnsafe(String packageName, in fromBinderUnsafe() 121 public static CallerIdentity fromBinderUnsafe(String packageName, in fromBinderUnsafe() 144 private CallerIdentity(int uid, int pid, String packageName, in CallerIdentity() method in CallerIdentity 251 if (!(o instanceof CallerIdentity)) { in equals() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
H A D | LocationEventLog.java | 35 import android.location.util.identity.CallerIdentity; 98 CallerIdentity aggregate = CallerIdentity.forAggregation(identity); in getAggregateStats() 152 public void logProviderClientActive(String provider, CallerIdentity identity) { in logProviderClientActive() 205 CallerIdentity identity) { in logProviderDeliveredLocations() 304 private final CallerIdentity mIdentity; 329 private final CallerIdentity mIdentity; 332 CallerIdentity identity) { in ProviderClientForegroundEvent() 348 private final CallerIdentity mIdentity; 396 @Nullable private final CallerIdentity mIdentity; 399 @Nullable CallerIdentity identity) { in ProviderDeliverLocationEvent() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | AppOpsHelper.java | 19 import android.location.util.identity.CallerIdentity; 68 public abstract boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity); in startOpNoThrow() 73 public abstract void finishOp(int appOp, CallerIdentity callerIdentity); in finishOp() 78 public abstract boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity); in checkOpNoThrow() 83 public abstract boolean noteOp(int appOp, CallerIdentity callerIdentity); in noteOp() 88 public abstract boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity); in noteOpNoThrow()
|
H A D | SystemAppOpsHelper.java | 21 import android.location.util.identity.CallerIdentity; 60 public boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity) { in startOpNoThrow() 78 public void finishOp(int appOp, CallerIdentity callerIdentity) { in finishOp() 94 public boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity) { in checkOpNoThrow() 109 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() 126 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow()
|
H A D | LocationPermissionsHelper.java | 22 import android.location.util.identity.CallerIdentity; 96 CallerIdentity identity) { in hasLocationPermissions() 108 protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); in hasPermission()
|
H A D | SystemLocationPermissionsHelper.java | 22 import android.location.util.identity.CallerIdentity; 56 protected boolean hasPermission(String permission, CallerIdentity callerIdentity) { in hasPermission()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | SystemAppOpsHelperTest.java | 42 import android.location.util.identity.CallerIdentity; 107 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp() 117 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp() 130 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow() 143 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow() 158 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testStartOp() 173 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testFinishOp() 181 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOp()
|
H A D | FakeAppOpsHelper.java | 19 import android.location.util.identity.CallerIdentity; 61 public boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity) { in startOpNoThrow() 71 public void finishOp(int appOp, CallerIdentity callerIdentity) { in finishOp() 78 public boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity) { in checkOpNoThrow() 84 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() 94 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow()
|
H A D | FakeLocationPermissionsHelper.java | 19 import android.location.util.identity.CallerIdentity; 49 protected boolean hasPermission(String permission, CallerIdentity identity) { in hasPermission()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/ |
H A D | GnssListenerMultiplexer.java | 28 import android.location.util.identity.CallerIdentity; 76 private final CallerIdentity mIdentity; 83 protected GnssListenerRegistration(TRequest request, CallerIdentity identity, in GnssListenerRegistration() 94 public final CallerIdentity getIdentity() { in getIdentity() 259 protected void addListener(CallerIdentity identity, TListener listener) { in addListener() 266 protected void addListener(TRequest request, CallerIdentity callerIdentity, in addListener() 281 CallerIdentity callerIdentity, TListener listener) { in createRegistration() 303 CallerIdentity identity = registration.getIdentity(); in isActive() 309 private boolean isActive(CallerIdentity identity) { in isActive() 332 private boolean isBackgroundRestrictionExempt(CallerIdentity identity) { in isBackgroundRestrictionExempt()
|
H A D | GnssManagerService.java | 38 import android.location.util.identity.CallerIdentity; 175 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in registerGnssStatusCallback() 194 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in registerGnssNmeaCallback() 216 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in addGnssMeasurementsListener() 247 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in addGnssNavigationMessageListener() 265 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in addGnssAntennaInfoListener()
|
H A D | GnssNavigationMessageProvider.java | 25 import android.location.util.identity.CallerIdentity; 44 CallerIdentity callerIdentity, in GnssNavigationMessageListenerRegistration() 76 public void addListener(CallerIdentity identity, IGnssNavigationMessageListener listener) { in addListener() 82 CallerIdentity callerIdentity, IGnssNavigationMessageListener listener) { in createRegistration()
|
H A D | GnssAntennaInfoProvider.java | 25 import android.location.util.identity.CallerIdentity; 52 private final CallerIdentity mIdentity; 54 protected AntennaInfoListenerRegistration(CallerIdentity identity, in AntennaInfoListenerRegistration() 99 public void addListener(CallerIdentity callerIdentity, IGnssAntennaInfoListener listener) { in addListener()
|
H A D | GnssMeasurementsProvider.java | 30 import android.location.util.identity.CallerIdentity; 57 CallerIdentity callerIdentity, in GnssMeasurementListenerRegistration() 103 public void addListener(GnssMeasurementRequest request, CallerIdentity identity, in addListener() 110 CallerIdentity callerIdentity, IGnssMeasurementsListener listener) { in createRegistration()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 4707 CallerIdentity caller; 4761 CallerIdentity caller; 4815 CallerIdentity caller; 5959 CallerIdentity caller; 6062 CallerIdentity caller; 7564 CallerIdentity caller; 8645 CallerIdentity caller; 8964 CallerIdentity caller; 8998 CallerIdentity caller; 9027 CallerIdentity caller; [all …]
|
H A D | CallerIdentity.java | 28 final class CallerIdentity { class 36 CallerIdentity(int uid, @Nullable String packageName, @Nullable ComponentName componentName) { in CallerIdentity() method in CallerIdentity
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/ |
H A D | AbstractLocationProvider.java | 23 import android.location.util.identity.CallerIdentity; 88 @Nullable public final CallerIdentity identity; 96 private State(boolean allowed, ProviderProperties properties, CallerIdentity identity, in State() 129 public State withIdentity(@Nullable CallerIdentity identity) { in withIdentity() 221 protected AbstractLocationProvider(Executor executor, @Nullable CallerIdentity identity, in AbstractLocationProvider() 289 protected void setIdentity(@Nullable CallerIdentity identity) { in setIdentity()
|
H A D | MockLocationProvider.java | 26 import android.location.util.identity.CallerIdentity; 42 public MockLocationProvider(ProviderProperties properties, CallerIdentity identity, in MockLocationProvider()
|
H A D | PassiveLocationProvider.java | 28 import android.location.util.identity.CallerIdentity; 51 super(DIRECT_EXECUTOR, CallerIdentity.fromContext(context), PROPERTIES, in PassiveLocationProvider()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationManagerService.java | 752 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in getCurrentLocation() 781 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in registerLocationListener() 806 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in registerLocationPendingIntent() 842 CallerIdentity identity) { in validateLocationRequest() 959 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag); in getLastLocation() 1352 CallerIdentity identity = CallerIdentity.fromBinder(mContext, params.getClientPackage(), in getFromLocation() 1373 CallerIdentity identity = CallerIdentity.fromBinder(mContext, params.getClientPackage(), in getFromLocationName() 1394 CallerIdentity identity = CallerIdentity.fromBinderUnsafe(packageName, attributionTag); in addTestProvider() 1407 CallerIdentity identity = CallerIdentity.fromBinderUnsafe(packageName, attributionTag); in removeTestProvider() 1429 CallerIdentity identity = CallerIdentity.fromBinderUnsafe(packageName, in setTestProviderLocation() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/ |
H A D | GnssNavigationMessageProviderTest.java | 30 import android.location.util.identity.CallerIdentity; 50 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
|
H A D | GnssNmeaProviderTest.java | 31 import android.location.util.identity.CallerIdentity; 60 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
|
H A D | GnssStatusProviderTest.java | 31 import android.location.util.identity.CallerIdentity; 59 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
|
/aosp14/frameworks/base/location/java/android/location/ |
H A D | LocationManagerInternal.java | 21 import android.location.util.identity.CallerIdentity; 87 public abstract boolean isProvider(@Nullable String provider, @NonNull CallerIdentity identity); in isProvider()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/geofence/ |
H A D | GeofenceManager.java | 34 import android.location.util.identity.CallerIdentity; 118 private final CallerIdentity mIdentity; 131 GeofenceRegistration(Geofence geofence, CallerIdentity identity, in GeofenceRegistration() 152 public CallerIdentity getIdentity() { in getIdentity() 352 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, in addGeofence() 381 private boolean isActive(CallerIdentity identity) { in isActive()
|