/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/ |
H A D | Key.kt | 23 sealed class Key(val name: String, val identity: Any) { 27 return identity == (other as? Key)?.identity 31 return identity.hashCode() 42 identity: Any = Object(), 43 ) : Key(name, identity) { 46 val rootElementKey = ElementKey(name, identity) 56 identity: Any = Object(), 63 ) : Key(name, identity), ElementMatcher { 76 override fun matches(key: ElementKey): Boolean = predicate(key.identity) 83 class ValueKey(name: String, identity: Any = Object()) : Key(name, identity) {
|
/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; field in AbstractLocationProvider.State 100 this.identity = identity; in State() 130 if (Objects.equals(identity, this.identity)) { in withIdentity() 159 && Objects.equals(identity, state.identity) in equals() 223 Preconditions.checkArgument(identity == null || identity.getListenerId() == null); in AbstractLocationProvider() 227 .withIdentity(identity) in AbstractLocationProvider() 260 Binder.restoreCallingIdentity(identity); in setState() 290 Preconditions.checkArgument(identity == null || identity.getListenerId() == null); in setIdentity() 291 setState(state -> state.withIdentity(identity)); in setIdentity() [all …]
|
H A D | LocationProviderManager.java | 750 CallerIdentity identity, in LocationRegistration() argument 1018 super(request, identity, 1161 identity, 1722 identity)) { 1744 CallerIdentity identity) { 1751 identity.getPackageName(), identity.getAttributionTag()) 1771 identity.getPackageName(), identity.getAttributionTag())) { 1880 identity, 1934 identity, 2245 if (identity.isSystemServer()) { [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
H A D | LocationEventLog.java | 35 import android.location.util.identity.CallerIdentity; 148 getAggregateStats(provider, identity).markRequestRemoved(); in logProviderClientUnregistered() 153 getAggregateStats(provider, identity).markRequestActive(); in logProviderClientActive() 205 CallerIdentity identity) { in logProviderDeliveredLocations() argument 311 mIdentity = identity; in ProviderClientRegisterEvent() 332 CallerIdentity identity) { in ProviderClientForegroundEvent() argument 335 mIdentity = identity; in ProviderClientForegroundEvent() 353 mIdentity = identity; in ProviderClientPermittedEvent() 399 @Nullable CallerIdentity identity) { in ProviderDeliverLocationEvent() argument 402 mIdentity = identity; in ProviderDeliverLocationEvent() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | SystemAppOpsHelperTest.java | 42 import android.location.util.identity.CallerIdentity; 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() 135 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow() 140 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow() 143 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow() 148 assertThat(mHelper.noteOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow() 175 mHelper.finishOp(OP_MONITOR_LOCATION, identity); in testFinishOp() 186 assertThat(mHelper.noteOp(OP_MOCK_LOCATION, identity)).isTrue(); in testNoteOp() [all …]
|
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
H A D | SoundTriggerMiddlewarePermission.java | 80 Identity identity = getIdentity(); in listModules() local 89 Identity identity = getIdentity(); in attach() local 90 enforcePermissionsForPreflight(identity); in attach() 118 enforcePermissionForPreflight(mContext, identity, RECORD_AUDIO); in enforcePermissionsForPreflight() 141 @NonNull Identity identity, in enforcePermissionForDataDelivery() argument 148 ObjectPrinter.print(identity, 16))); in enforcePermissionForDataDelivery() 153 @NonNull Identity identity, @NonNull String reason) { in enforceSoundTriggerRecordAudioPermissionForDataDelivery() 157 identity.packageName, identity.attributionTag, reason); in enforceSoundTriggerRecordAudioPermissionForDataDelivery() 161 ObjectPrinter.print(identity, 16))); in enforceSoundTriggerRecordAudioPermissionForDataDelivery() 175 @NonNull Identity identity, @NonNull String permission) { in enforcePermissionForPreflight() argument [all …]
|
/aosp14/frameworks/base/services/print/java/com/android/server/print/ |
H A D | PrintManagerService.java | 192 Binder.restoreCallingIdentity(identity); in print() 213 Binder.restoreCallingIdentity(identity); in getPrintJobInfos() 238 Binder.restoreCallingIdentity(identity); in getPrintJobInfo() 260 Binder.restoreCallingIdentity(identity); in getCustomPrinterIcon() 317 Binder.restoreCallingIdentity(identity); in cancelPrintJob() 343 Binder.restoreCallingIdentity(identity); in restartPrintJob() 367 Binder.restoreCallingIdentity(identity); in getPrintServices() 401 Binder.restoreCallingIdentity(identity); in setPrintServiceEnabled() 449 Binder.restoreCallingIdentity(identity); in getPrintServiceRecommendations() 471 Binder.restoreCallingIdentity(identity); in createPrinterDiscoverySession() [all …]
|
H A D | RemotePrintService.java | 694 Binder.restoreCallingIdentity(identity); in getPrintJobInfos() 709 Binder.restoreCallingIdentity(identity); in getPrintJobInfo() 723 Binder.restoreCallingIdentity(identity); in setPrintJobState() 737 Binder.restoreCallingIdentity(identity); in setPrintJobTag() 751 Binder.restoreCallingIdentity(identity); in writePrintJobData() 765 Binder.restoreCallingIdentity(identity); in setProgress() 778 Binder.restoreCallingIdentity(identity); in setStatus() 792 Binder.restoreCallingIdentity(identity); in setStatusRes() 808 Binder.restoreCallingIdentity(identity); in onPrintersAdded() 824 Binder.restoreCallingIdentity(identity); in onPrintersRemoved() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/ |
H A D | GnssListenerMultiplexer.java | 28 import android.location.util.identity.CallerIdentity; 87 mIdentity = identity; in GnssListenerRegistration() 260 addListener(null, identity, listener); in addListener() 273 Binder.restoreCallingIdentity(identity); in addListener() 293 Binder.restoreCallingIdentity(identity); in removeListener() 306 && isActive(identity); in isActive() 310 if (identity.isSystemServer()) { in isActive() 317 identity.getUserId())) { in isActive() 324 identity.getPackageName())) { in isActive() 333 if (identity.getUid() == Process.SYSTEM_UID) { in isBackgroundRestrictionExempt() [all …]
|
H A D | GnssAntennaInfoProvider.java | 25 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | SystemAppOpsHelper.java | 21 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 …]
|
H A D | SystemUserInfoHelper.java | 107 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()
|
H A D | SystemDeviceStationaryHelper.java | 44 final long identity = Binder.clearCallingIdentity(); in addListener() local 48 Binder.restoreCallingIdentity(identity); in addListener() 56 final long identity = Binder.clearCallingIdentity(); in removeListener() local 60 Binder.restoreCallingIdentity(identity); in removeListener()
|
/aosp14/frameworks/base/media/java/android/media/permission/ |
H A D | PermissionUtil.java | 176 @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()
|
H A D | IdentityContext.java | 59 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()
|
/aosp14/frameworks/base/core/java/android/credentials/ |
H A D | CredentialManager.java | 573 Binder.restoreCallingIdentity(identity); in onResponse() 584 Binder.restoreCallingIdentity(identity); in onError() 685 Binder.restoreCallingIdentity(identity); in onResponse() 696 Binder.restoreCallingIdentity(identity); in onError() 743 Binder.restoreCallingIdentity(identity); in onResponse() 754 Binder.restoreCallingIdentity(identity); in onError() 777 Binder.restoreCallingIdentity(identity); in onSuccess() 789 Binder.restoreCallingIdentity(identity); in onError() 811 Binder.restoreCallingIdentity(identity); in onResponse() 821 Binder.restoreCallingIdentity(identity); in onResponse() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | UiAutomationConnection.java | 176 Binder.restoreCallingIdentity(identity); in injectInputEvent() 223 Binder.restoreCallingIdentity(identity); in setRotation() 245 Binder.restoreCallingIdentity(identity); in takeScreenshot() 273 Binder.restoreCallingIdentity(identity); in takeSurfaceControlScreenshot() 295 Binder.restoreCallingIdentity(identity); in clearWindowContentFrameStats() 315 Binder.restoreCallingIdentity(identity); in getWindowContentFrameStats() 330 Binder.restoreCallingIdentity(identity); in clearWindowAnimationFrameStats() 347 Binder.restoreCallingIdentity(identity); in getWindowAnimationFrameStats() 363 Binder.restoreCallingIdentity(identity); in grantRuntimePermission() 379 Binder.restoreCallingIdentity(identity); in revokeRuntimePermission() [all …]
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | CaptioningManagerImpl.java | 44 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationManagerService.java | 755 identity.getPid()); in getCurrentLocation() 784 identity.getPid()); in registerLocationListener() 809 identity.getPid()); in registerLocationPendingIntent() 961 identity.getPid()); in getLastLocation() 1208 if (identity == null) { in isProviderPackage() 1230 if (identity == null) { in getProviderPackages() 1574 if (!Objects.equals(oldState.identity, newState.identity)) { in onStateChanged() 1579 || !Objects.equals(oldState.identity, newState.identity)) { in onStateChanged() 1586 int oldUid = oldState.identity != null ? oldState.identity.getUid() : -1; in onStateChanged() 1587 int newUid = newState.identity != null ? newState.identity.getUid() : -1; in onStateChanged() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/tv/interactive/ |
H A D | TvInteractiveAppManagerService.java | 713 Binder.restoreCallingIdentity(identity); in getTvInteractiveAppServiceList() 733 Binder.restoreCallingIdentity(identity); in getAppLinkInfoList() 769 Binder.restoreCallingIdentity(identity); in registerAppLinkInfo() 805 Binder.restoreCallingIdentity(identity); in unregisterAppLinkInfo() 841 Binder.restoreCallingIdentity(identity); in sendAppLinkCommand() 907 Binder.restoreCallingIdentity(identity); in createSession() 925 Binder.restoreCallingIdentity(identity); in releaseSession() 951 Binder.restoreCallingIdentity(identity); in notifyTuned() 978 Binder.restoreCallingIdentity(identity); in notifyTrackSelected() 1005 Binder.restoreCallingIdentity(identity); in notifyTracksChanged() [all …]
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | VerifierDeviceIdentity.java | 62 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()
|
/aosp14/frameworks/base/libs/hwui/tests/unit/ |
H A D | ShaderCacheTests.cpp | 295 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() 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() 358 for (auto& data : identity) { in TEST() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 189 Binder.restoreCallingIdentity(identity); in createTestSession() 206 Binder.restoreCallingIdentity(identity); in getSensorProperties() 274 Binder.restoreCallingIdentity(identity); in authenticate() 303 Binder.restoreCallingIdentity(identity); in cancelAuthentication() 331 Binder.restoreCallingIdentity(identity); in canAuthenticate() 343 Binder.restoreCallingIdentity(identity); in hasEnrolledBiometrics() 355 Binder.restoreCallingIdentity(identity); in registerEnabledOnKeyguardCallback() 368 Binder.restoreCallingIdentity(identity); in invalidateAuthenticatorIds() 399 Binder.restoreCallingIdentity(identity); in getAuthenticatorIds() 413 Binder.restoreCallingIdentity(identity); in resetLockoutTimeBound() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 1119 Binder.restoreCallingIdentity(identity); in getTvInputList() 1135 Binder.restoreCallingIdentity(identity); in getTvInputInfo() 1160 Binder.restoreCallingIdentity(identity); in updateTvInputInfo() 1185 Binder.restoreCallingIdentity(identity); in getTvInputState() 1231 Binder.restoreCallingIdentity(identity); in getAvailableExtensionInterfaceNames() 1272 Binder.restoreCallingIdentity(identity); in getExtensionInterface() 1293 Binder.restoreCallingIdentity(identity); in getTvContentRatingSystemList() 1337 Binder.restoreCallingIdentity(identity); in sendTvInputNotifyIntent() 1359 Binder.restoreCallingIdentity(identity); in registerCallback() 1375 Binder.restoreCallingIdentity(identity); in unregisterCallback() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ambientcontext/ |
H A D | AmbientContextManager.java | 188 final long identity = Binder.clearCallingIdentity(); in queryAmbientContextServiceStatus() 192 Binder.restoreCallingIdentity(identity); in queryAmbientContextServiceStatus() 296 final long identity = Binder.clearCallingIdentity(); in registerObserver() 300 Binder.restoreCallingIdentity(identity); in registerObserver() 352 final long identity = Binder.clearCallingIdentity(); in registerObserver() 356 Binder.restoreCallingIdentity(identity); in registerObserver() 362 final long identity = Binder.clearCallingIdentity(); in registerObserver() 367 Binder.restoreCallingIdentity(identity); in registerObserver()
|