Home
last modified time | relevance | path

Searched refs:identity (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DKey.kt27 sealed class Key(val debugName: String, val identity: Any) { constant in com.android.compose.animation.scene.Key
31 return identity == (other as? Key)?.identity in equals()
35 return identity.hashCode() in hashCode()
46 identity: Any = Object(),
47 ) : Key(debugName, identity) {
54 val rootElementKey = ElementKey(debugName, identity)
64 identity: Any = Object(),
71 ) : Key(debugName, identity), ElementMatcher {
90 return predicate(key.identity) in withIdentity()
98 class ValueKey(debugName: String, identity: Any = Object()) : Key(debugName, identity) {
[all …]
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java36 import android.location.util.identity.CallerIdentity;
96 private AggregateStats getAggregateStats(String provider, CallerIdentity identity) { in getAggregateStats() argument
103 CallerIdentity aggregate = CallerIdentity.forAggregation(identity); in getAggregateStats()
124 CallerIdentity identity) { in getGnssMeasurementAggregateStats() argument
126 CallerIdentity aggregate = CallerIdentity.forAggregation(identity); in getGnssMeasurementAggregateStats()
167 public void logProviderClientRegistered(String provider, CallerIdentity identity, in logProviderClientRegistered() argument
169 addLog(new ProviderClientRegisterEvent(provider, true, identity, request)); in logProviderClientRegistered()
170 getAggregateStats(provider, identity).markRequestAdded(request.getIntervalMillis()); in logProviderClientRegistered()
174 public void logProviderClientUnregistered(String provider, CallerIdentity identity) { in logProviderClientUnregistered() argument
175 addLog(new ProviderClientRegisterEvent(provider, false, identity, null)); in logProviderClientUnregistered()
[all …]
/frameworks/base/services/core/java/com/android/server/location/provider/
DAbstractLocationProvider.java23 import android.location.util.identity.CallerIdentity;
88 @Nullable public final CallerIdentity identity; field in AbstractLocationProvider.State
96 private State(boolean allowed, ProviderProperties properties, CallerIdentity identity, in State() argument
100 this.identity = identity; in State()
111 return new State(allowed, properties, identity, extraAttributionTags); in withAllowed()
122 return new State(allowed, properties, identity, extraAttributionTags); in withProperties()
129 public State withIdentity(@Nullable CallerIdentity identity) { in withIdentity() argument
130 if (Objects.equals(identity, this.identity)) { in withIdentity()
133 return new State(allowed, properties, identity, extraAttributionTags); in withIdentity()
144 return new State(allowed, properties, identity, extraAttributionTags); in withExtraAttributionTags()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppOpsHelperTest.java42 import android.location.util.identity.CallerIdentity;
107 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp() local
111 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testCheckOp()
115 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testCheckOp()
117 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp()
121 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testCheckOp()
125 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isFalse(); in testCheckOp()
130 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow() local
135 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow()
140 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewarePermission.java80 Identity identity = getIdentity(); in listModules() local
81 enforcePermissionForPreflight(mContext, identity, CAPTURE_AUDIO_HOTWORD); in listModules()
89 Identity identity = getIdentity(); in attach() local
90 enforcePermissionsForPreflight(identity); in attach()
91 ModuleWrapper wrapper = new ModuleWrapper(identity, callback, isTrusted); in attach()
117 private void enforcePermissionsForPreflight(@NonNull Identity identity) { in enforcePermissionsForPreflight() argument
118 enforcePermissionForPreflight(mContext, identity, RECORD_AUDIO); in enforcePermissionsForPreflight()
119 enforcePermissionForPreflight(mContext, identity, CAPTURE_AUDIO_HOTWORD); in enforcePermissionsForPreflight()
125 void enforcePermissionsForDataDelivery(@NonNull Identity identity, @NonNull String reason) { in enforcePermissionsForDataDelivery() argument
126 enforceSoundTriggerRecordAudioPermissionForDataDelivery(identity, reason); in enforcePermissionsForDataDelivery()
[all …]
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAppOpsHelper.java21 import android.location.util.identity.CallerIdentity;
63 final long identity = Binder.clearCallingIdentity(); in startOpNoThrow() local
73 Binder.restoreCallingIdentity(identity); in startOpNoThrow()
81 final long identity = Binder.clearCallingIdentity(); in finishOp() local
89 Binder.restoreCallingIdentity(identity); in finishOp()
97 final long identity = Binder.clearCallingIdentity(); in checkOpNoThrow() local
104 Binder.restoreCallingIdentity(identity); in checkOpNoThrow()
112 final long identity = Binder.clearCallingIdentity(); in noteOp() local
121 Binder.restoreCallingIdentity(identity); in noteOp()
129 final long identity = Binder.clearCallingIdentity(); in noteOpNoThrow() local
[all …]
DSystemUserInfoHelper.java107 final long identity = Binder.clearCallingIdentity(); in getRunningUserIds() local
113 Binder.restoreCallingIdentity(identity); in getRunningUserIds()
124 final long identity = Binder.clearCallingIdentity(); in isCurrentUserId() local
128 Binder.restoreCallingIdentity(identity); in isCurrentUserId()
139 final long identity = Binder.clearCallingIdentity(); in getCurrentUserId() local
143 Binder.restoreCallingIdentity(identity); in getCurrentUserId()
158 final long identity = Binder.clearCallingIdentity(); in isVisibleUserId() local
164 Binder.restoreCallingIdentity(identity); in isVisibleUserId()
175 final long identity = Binder.clearCallingIdentity(); in getProfileIds() local
179 Binder.restoreCallingIdentity(identity); in getProfileIds()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java148 final long identity = Binder.clearCallingIdentity(); in print() local
157 Binder.restoreCallingIdentity(identity); in print()
187 final long identity = Binder.clearCallingIdentity(); in print() local
192 Binder.restoreCallingIdentity(identity); in print()
209 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos() local
213 Binder.restoreCallingIdentity(identity); in getPrintJobInfos()
234 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo() local
238 Binder.restoreCallingIdentity(identity); in getPrintJobInfo()
255 final long identity = Binder.clearCallingIdentity(); in getCustomPrinterIcon() local
260 Binder.restoreCallingIdentity(identity); in getCustomPrinterIcon()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssListenerMultiplexer.java28 import android.location.util.identity.CallerIdentity;
83 protected GnssListenerRegistration(TRequest request, CallerIdentity identity, in GnssListenerRegistration() argument
85 super(identity.isMyProcess() ? FgThread.getExecutor() : DIRECT_EXECUTOR, listener); in GnssListenerRegistration()
87 mIdentity = identity; in GnssListenerRegistration()
259 protected void addListener(CallerIdentity identity, TListener listener) { in addListener() argument
260 addListener(null, identity, listener); in addListener()
268 final long identity = Binder.clearCallingIdentity(); in addListener() local
273 Binder.restoreCallingIdentity(identity); in addListener()
289 final long identity = Binder.clearCallingIdentity(); in removeListener() local
293 Binder.restoreCallingIdentity(identity); in removeListener()
[all …]
DGnssAntennaInfoProvider.java25 import android.location.util.identity.CallerIdentity;
54 protected AntennaInfoListenerRegistration(CallerIdentity identity, in AntennaInfoListenerRegistration() argument
56 super(identity.isMyProcess() ? FgThread.getExecutor() : DIRECT_EXECUTOR, listener); in AntennaInfoListenerRegistration()
57 mIdentity = identity; in AntennaInfoListenerRegistration()
100 final long identity = Binder.clearCallingIdentity(); in addListener() local
105 Binder.restoreCallingIdentity(identity); in addListener()
110 final long identity = Binder.clearCallingIdentity(); in removeListener() local
114 Binder.restoreCallingIdentity(identity); in removeListener()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java160 final long identity = Binder.clearCallingIdentity(); in injectInputEvent() local
177 Binder.restoreCallingIdentity(identity); in injectInputEvent()
213 final long identity = Binder.clearCallingIdentity(); in setRotation() local
225 Binder.restoreCallingIdentity(identity); in setRotation()
238 final long identity = Binder.clearCallingIdentity(); in takeScreenshot() local
247 Binder.restoreCallingIdentity(identity); in takeScreenshot()
263 final long identity = Binder.clearCallingIdentity(); in takeSurfaceControlScreenshot() local
275 Binder.restoreCallingIdentity(identity); in takeSurfaceControlScreenshot()
289 final long identity = Binder.clearCallingIdentity(); in clearWindowContentFrameStats() local
297 Binder.restoreCallingIdentity(identity); in clearWindowContentFrameStats()
[all …]
/frameworks/base/media/java/android/media/permission/
DPermissionUtil.java176 @NonNull Identity identity, in checkPermissionForDataDelivery() argument
180 identity.pid, identity.uid, identity.packageName, identity.attributionTag, in checkPermissionForDataDelivery()
196 @NonNull Identity identity, in checkPermissionForPreflight() argument
199 identity.pid, identity.uid, identity.packageName); in checkPermissionForPreflight()
DIdentityContext.java59 SafeCloseable create(@Nullable Identity identity) { in create() argument
60 return new IdentityContext(identity); in create()
88 private IdentityContext(@Nullable Identity identity) { in IdentityContext() argument
89 set(identity); in IdentityContext()
97 private static void set(@Nullable Identity identity) { in set() argument
98 sThreadLocalIdentity.set(identity); in set()
/frameworks/base/core/java/android/credentials/
DCredentialManager.java655 final long identity = Binder.clearCallingIdentity(); in onResponse() local
660 Binder.restoreCallingIdentity(identity); in onResponse()
666 final long identity = Binder.clearCallingIdentity(); in onError() local
671 Binder.restoreCallingIdentity(identity); in onError()
705 final long identity = Binder.clearCallingIdentity(); in onResponse() local
709 Binder.restoreCallingIdentity(identity); in onResponse()
719 final long identity = Binder.clearCallingIdentity(); in onError() local
723 Binder.restoreCallingIdentity(identity); in onError()
748 final long identity = Binder.clearCallingIdentity(); in onResponse() local
752 Binder.restoreCallingIdentity(identity); in onResponse()
[all …]
/frameworks/av/media/libstagefright/renderfright/
DDescription.cpp41 const mat4 identity; in hasInputTransformMatrix() local
42 return inputTransformMatrix != identity; in hasInputTransformMatrix()
46 const mat4 identity; in hasOutputTransformMatrix() local
47 return outputTransformMatrix != identity; in hasOutputTransformMatrix()
51 const mat4 identity; in hasColorMatrix() local
52 return colorMatrix != identity; in hasColorMatrix()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DCaptioningManagerImpl.java44 final long identity = Binder.clearCallingIdentity(); in setSystemAudioCaptioningEnabled() local
49 Binder.restoreCallingIdentity(identity); in setSystemAudioCaptioningEnabled()
61 final long identity = Binder.clearCallingIdentity(); in isSystemAudioCaptioningUiEnabled() local
67 Binder.restoreCallingIdentity(identity); in isSystemAudioCaptioningUiEnabled()
79 final long identity = Binder.clearCallingIdentity(); in setSystemAudioCaptioningUiEnabled() local
84 Binder.restoreCallingIdentity(identity); in setSystemAudioCaptioningUiEnabled()
DAbstractAccessibilityServiceConnection.java481 final long identity = Binder.clearCallingIdentity(); in setOnKeyEventResult() local
485 Binder.restoreCallingIdentity(identity); in setOnKeyEventResult()
519 final long identity = Binder.clearCallingIdentity(); in setServiceInfo() local
541 Binder.restoreCallingIdentity(identity); in setServiceInfo()
589 final long identity = Binder.clearCallingIdentity(); in getWindows() local
610 Binder.restoreCallingIdentity(identity); in getWindows()
644 final long identity = Binder.clearCallingIdentity(); in getWindow() local
655 Binder.restoreCallingIdentity(identity); in getWindow()
1108 final long identity = Binder.clearCallingIdentity(); in performGlobalAction() local
1112 Binder.restoreCallingIdentity(identity); in performGlobalAction()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java84 import android.location.util.identity.CallerIdentity;
778 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in getCurrentLocation() local
780 int permissionLevel = LocationPermissions.getPermissionLevel(mContext, identity.getUid(), in getCurrentLocation()
781 identity.getPid()); in getCurrentLocation()
786 identity.getUid(), permissionLevel, PERMISSION_COARSE); in getCurrentLocation()
792 LocationPermissions.enforceLocationPermission(identity.getUid(), permissionLevel, in getCurrentLocation()
797 Preconditions.checkState(identity.getPid() != Process.myPid() || attributionTag != null); in getCurrentLocation()
799 request = validateLocationRequest(provider, request, identity); in getCurrentLocation()
805 return manager.getCurrentLocation(request, identity, permissionLevel, consumer); in getCurrentLocation()
818 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag, in registerLocationListener() local
[all …]
/frameworks/base/core/java/android/content/pm/
DVerifierDeviceIdentity.java62 public VerifierDeviceIdentity(long identity) { in VerifierDeviceIdentity() argument
63 mIdentity = identity; in VerifierDeviceIdentity()
64 mIdentityString = encodeBase32(identity); in VerifierDeviceIdentity()
68 final long identity = source.readLong(); in VerifierDeviceIdentity() local
70 mIdentity = identity; in VerifierDeviceIdentity()
71 mIdentityString = encodeBase32(identity); in VerifierDeviceIdentity()
94 long identity = rng.nextLong(); in generate() local
95 return new VerifierDeviceIdentity(identity); in generate()
/frameworks/base/services/core/java/com/android/server/tv/interactive/
DTvInteractiveAppManagerService.java920 final long identity = Binder.clearCallingIdentity(); in getTvAdServiceList() local
935 Binder.restoreCallingIdentity(identity); in getTvAdServiceList()
943 final long identity = Binder.clearCallingIdentity(); in sendAppLinkCommand() local
970 Binder.restoreCallingIdentity(identity); in sendAppLinkCommand()
981 final long identity = Binder.clearCallingIdentity(); in createSession() local
1035 Binder.restoreCallingIdentity(identity); in createSession()
1047 final long identity = Binder.clearCallingIdentity(); in releaseSession() local
1053 Binder.restoreCallingIdentity(identity); in releaseSession()
1063 final long identity = Binder.clearCallingIdentity(); in setSurface() local
1079 Binder.restoreCallingIdentity(identity); in setSurface()
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiKeystore.java58 final long identity = Binder.clearCallingIdentity(); in put() local
66 Binder.restoreCallingIdentity(identity); in put()
81 final long identity = Binder.clearCallingIdentity(); in get() local
97 Binder.restoreCallingIdentity(identity); in get()
113 final long identity = Binder.clearCallingIdentity(); in remove() local
127 Binder.restoreCallingIdentity(identity); in remove()
143 final long identity = Binder.clearCallingIdentity(); in list() local
161 Binder.restoreCallingIdentity(identity); in list()
/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp295 std::vector<uint8_t> identity(1024); in TEST() local
296 genRandomData(identity); in TEST()
298 identity.data(), identity.size() * sizeof(decltype(identity)::value_type)); in TEST()
324 ASSERT_FALSE(ShaderCacheTestUtils::validateCache(ShaderCache::get(), identity)); in TEST()
330 identity.data(), identity.size() * sizeof(decltype(identity)::value_type)); in TEST()
331 ASSERT_TRUE(ShaderCacheTestUtils::validateCache(ShaderCache::get(), identity)); in TEST()
338 ShaderCache::get().initShaderDiskCache(identity.data(), -1); in TEST()
343 nullptr, identity.size() * sizeof(decltype(identity)::value_type)); in TEST()
350 identity.data(), identity.size() * sizeof(decltype(identity)::value_type)); in TEST()
351 ASSERT_TRUE(ShaderCacheTestUtils::validateCache(ShaderCache::get(), identity)); in TEST()
[all …]
/frameworks/native/services/sensorservice/
DBatteryService.cpp61 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in enableSensorImpl() local
63 IPCThreadState::self()->restoreCallingIdentity(identity); in enableSensorImpl()
70 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in disableSensorImpl() local
72 IPCThreadState::self()->restoreCallingIdentity(identity); in disableSensorImpl()
79 int64_t identity = IPCThreadState::self()->clearCallingIdentity(); in noteWakeupSensorEventImpl() local
81 IPCThreadState::self()->restoreCallingIdentity(identity); in noteWakeupSensorEventImpl()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java233 final long identity = Binder.clearCallingIdentity(); in createTestSession() local
238 Binder.restoreCallingIdentity(identity); in createTestSession()
249 final long identity = Binder.clearCallingIdentity(); in getSensorProperties() local
255 Binder.restoreCallingIdentity(identity); in getSensorProperties()
316 final long identity = Binder.clearCallingIdentity(); in authenticate() local
326 Binder.restoreCallingIdentity(identity); in authenticate()
351 final long identity = Binder.clearCallingIdentity(); in cancelAuthentication() local
355 Binder.restoreCallingIdentity(identity); in cancelAuthentication()
372 final long identity = Binder.clearCallingIdentity(); in canAuthenticate() local
383 Binder.restoreCallingIdentity(identity); in canAuthenticate()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DAccessCheckDelegate.java271 final long identity = Binder.clearCallingIdentity(); in checkPermission() local
276 Binder.restoreCallingIdentity(identity); in checkPermission()
299 final long identity = Binder.clearCallingIdentity(); in checkUidPermission() local
304 Binder.restoreCallingIdentity(identity); in checkUidPermission()
325 final long identity = Binder.clearCallingIdentity(); in checkOperation() local
329 Binder.restoreCallingIdentity(identity); in checkOperation()
341 final long identity = Binder.clearCallingIdentity(); in checkAudioOperation() local
345 Binder.restoreCallingIdentity(identity); in checkAudioOperation()
360 final long identity = Binder.clearCallingIdentity(); in noteOperation() local
365 Binder.restoreCallingIdentity(identity); in noteOperation()
[all …]

12345678910>>...12