Home
last modified time | relevance | path

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

123456

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastAssistantCallback.java107 final long identity = Binder.clearCallingIdentity(); in onSearchStarted() local
111 Binder.restoreCallingIdentity(identity); in onSearchStarted()
122 final long identity = Binder.clearCallingIdentity(); in onSearchStartFailed() local
126 Binder.restoreCallingIdentity(identity); in onSearchStartFailed()
137 final long identity = Binder.clearCallingIdentity(); in onSearchStopped() local
141 Binder.restoreCallingIdentity(identity); in onSearchStopped()
152 final long identity = Binder.clearCallingIdentity(); in onSearchStopFailed() local
156 Binder.restoreCallingIdentity(identity); in onSearchStopFailed()
167 final long identity = Binder.clearCallingIdentity(); in onSourceFound() local
171 Binder.restoreCallingIdentity(identity); in onSourceFound()
[all …]
/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp166 for (const auto& [identity, server] : tmp) { in setDot()
167 if (tracker.find(identity) == tracker.end()) { in setDot()
168 tracker[identity] = server; in setDot()
172 for (auto& [identity, server] : tracker) { in setDot()
173 const bool active = tmp.find(identity) != tmp.end(); in setDot()
178 updateServerState(identity, Validation::success_but_expired, netId); in setDot()
182 updateServerState(identity, Validation::in_process, netId); in setDot()
183 startDotValidation(identity, netId, false); in setDot()
301 const ServerIdentity& identity, in requestDotValidation() argument
315 auto result = getDotServerLocked(identity, netId); in requestDotValidation()
[all …]
DPrivateDnsConfiguration.h122 base::Result<void> requestDotValidation(unsigned netId, const ServerIdentity& identity,
144 base::Result<DnsTlsServer*> getDotServer(const ServerIdentity& identity, unsigned netId)
147 base::Result<DnsTlsServer*> getDotServerLocked(const ServerIdentity& identity, unsigned netId)
155 void startDotValidation(const ServerIdentity& identity, unsigned netId, bool isRevalidation)
158 bool recordDotValidation(const ServerIdentity& identity, unsigned netId, bool success,
161 void sendPrivateDnsValidationEvent(const ServerIdentity& identity, unsigned netId,
169 void updateServerState(const ServerIdentity& identity, Validation state, uint32_t netId)
190 bool needReportEvent(uint32_t netId, ServerIdentity identity, bool success) const
305 RecordEntry(uint32_t netId, const ServerIdentity& identity, Validation state) in RecordEntry()
306 : netId(netId), serverIdentity(identity), state(state) {} in RecordEntry()
DPrivateDnsConfigurationTest.cpp130 bool hasPrivateDnsServer(const ServerIdentity& identity, unsigned netId) { in hasPrivateDnsServer() argument
131 return mPdc.getDotServer(identity, netId).ok(); in hasPrivateDnsServer()
322 const ServerIdentity identity(server); in TEST_F() local
350 EXPECT_TRUE(mPdc.requestDotValidation(kNetId, identity, kMark).ok()); in TEST_F()
353 EXPECT_FALSE(mPdc.requestDotValidation(kNetId, identity, kMark).ok()); in TEST_F()
355 EXPECT_FALSE(mPdc.requestDotValidation(kNetId, identity, kMark).ok()); in TEST_F()
359 EXPECT_FALSE(mPdc.requestDotValidation(kNetId, identity, kMark).ok()); in TEST_F()
360 EXPECT_FALSE(mPdc.requestDotValidation(kNetId, identity, kMark + 1).ok()); in TEST_F()
361 EXPECT_FALSE(mPdc.requestDotValidation(kNetId + 1, identity, kMark).ok()); in TEST_F()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java2602 final long identity = Binder.clearCallingIdentity(); in dialForSubscriber() local
2617 Binder.restoreCallingIdentity(identity); in dialForSubscriber()
2641 final long identity = Binder.clearCallingIdentity(); in callForSubscriber() local
2667 Binder.restoreCallingIdentity(identity); in callForSubscriber()
2688 final long identity = Binder.clearCallingIdentity(); in supplyPinReportResultForSubscriber() local
2695 Binder.restoreCallingIdentity(identity); in supplyPinReportResultForSubscriber()
2705 final long identity = Binder.clearCallingIdentity(); in supplyPukReportResultForSubscriber() local
2712 Binder.restoreCallingIdentity(identity); in supplyPukReportResultForSubscriber()
2889 final long identity = Binder.clearCallingIdentity(); in updateServiceLocationWithPackageName() local
2893 Binder.restoreCallingIdentity(identity); in updateServiceLocationWithPackageName()
[all …]
DImsRcsController.java686 final long identity = Binder.clearCallingIdentity(); in createSipDelegate() local
699 Binder.restoreCallingIdentity(identity); in createSipDelegate()
710 final long identity = Binder.clearCallingIdentity(); in destroySipDelegate() local
721 Binder.restoreCallingIdentity(identity); in destroySipDelegate()
730 final long identity = Binder.clearCallingIdentity(); in triggerNetworkRegistration() local
741 Binder.restoreCallingIdentity(identity); in triggerNetworkRegistration()
754 final long identity = Binder.clearCallingIdentity(); in registerSipDialogStateCallback() local
772 Binder.restoreCallingIdentity(identity); in registerSipDialogStateCallback()
785 final long identity = Binder.clearCallingIdentity(); in unregisterSipDialogStateCallback() local
803 Binder.restoreCallingIdentity(identity); in unregisterSipDialogStateCallback()
[all …]
DEmergencyAssistanceHelper.java119 long identity = Binder.clearCallingIdentity(); in getDefaultEmergencyPackage() local
125 Binder.restoreCallingIdentity(identity); in getDefaultEmergencyPackage()
130 long identity = Binder.clearCallingIdentity(); in setDefaultEmergencyPackageAsync() local
140 Binder.restoreCallingIdentity(identity); in setDefaultEmergencyPackageAsync()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DMatrixUtils.h44 Matrix33(bool identity) { in Matrix33() argument
45 initialize(identity); in Matrix33()
51 void initialize(bool identity = false) {
53 if (identity) {
102 Matrix9(bool identity) { in Matrix9() argument
103 initialize(identity); in Matrix9()
109 void initialize(bool identity = false) {
111 if (identity) {
/packages/modules/Uwb/framework/java/android/uwb/
DUwbOemExtensionCallbackListener.java94 final long identity = Binder.clearCallingIdentity(); in onSessionStatusNotificationReceived() local
101 Binder.restoreCallingIdentity(identity); in onSessionStatusNotificationReceived()
113 final long identity = Binder.clearCallingIdentity(); in onDeviceStatusNotificationReceived() local
120 Binder.restoreCallingIdentity(identity); in onDeviceStatusNotificationReceived()
135 final long identity = Binder.clearCallingIdentity(); in onSessionConfigurationReceived() local
154 Binder.restoreCallingIdentity(identity); in onSessionConfigurationReceived()
167 final long identity = Binder.clearCallingIdentity(); in onRangingReportReceived() local
189 Binder.restoreCallingIdentity(identity); in onRangingReportReceived()
203 final long identity = Binder.clearCallingIdentity(); in onCheckPointedTarget() local
223 Binder.restoreCallingIdentity(identity); in onCheckPointedTarget()
DUwbVendorUciCallbackListener.java83 final long identity = Binder.clearCallingIdentity(); in onVendorResponseReceived() local
92 Binder.restoreCallingIdentity(identity); in onVendorResponseReceived()
101 final long identity = Binder.clearCallingIdentity(); in onVendorNotificationReceived() local
110 Binder.restoreCallingIdentity(identity); in onVendorNotificationReceived()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java98 final long identity = clearCallingIdentityInternal(); in insert() local
106 restoreCallingIdentityInternal(identity); in insert()
126 final long identity = clearCallingIdentityInternal(); in bulkInsert() local
137 restoreCallingIdentityInternal(identity); in bulkInsert()
153 final long identity = clearCallingIdentityInternal(); in update() local
162 restoreCallingIdentityInternal(identity); in update()
186 final long identity = clearCallingIdentityInternal(); in delete() local
194 restoreCallingIdentityInternal(identity); in delete()
227 final long identity = clearCallingIdentityInternal(); in applyBatch() local
244 restoreCallingIdentityInternal(identity); in applyBatch()
[all …]
/packages/modules/Permission/service/java/com/android/permission/util/
DUserUtils.java76 final long identity = Binder.clearCallingIdentity(); in getUserHandles() local
80 Binder.restoreCallingIdentity(identity); in getUserHandles()
88 final long identity = Binder.clearCallingIdentity(); in isManagedProfile() local
92 Binder.restoreCallingIdentity(identity); in isManagedProfile()
108 final long identity = Binder.clearCallingIdentity(); in isPrivateProfile() local
115 Binder.restoreCallingIdentity(identity); in isPrivateProfile()
136 final long identity = Binder.clearCallingIdentity(); in isProfileRunning() local
141 Binder.restoreCallingIdentity(identity); in isProfileRunning()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java254 final long identity = Binder.clearCallingIdentity(); in onDeviceRoleChanged() local
258 Binder.restoreCallingIdentity(identity); in onDeviceRoleChanged()
264 final long identity = Binder.clearCallingIdentity(); in onPartitionIdChanged() local
268 Binder.restoreCallingIdentity(identity); in onPartitionIdChanged()
274 final long identity = Binder.clearCallingIdentity(); in onThreadEnableStateChanged() local
278 Binder.restoreCallingIdentity(identity); in onThreadEnableStateChanged()
376 final long identity = Binder.clearCallingIdentity(); in onActiveOperationalDatasetChanged() local
380 Binder.restoreCallingIdentity(identity); in onActiveOperationalDatasetChanged()
387 final long identity = Binder.clearCallingIdentity(); in onPendingOperationalDatasetChanged() local
392 Binder.restoreCallingIdentity(identity); in onPendingOperationalDatasetChanged()
[all …]
/packages/services/Car/car-lib/src/android/car/app/
DRemoteCarDefaultRootTaskView.java66 long identity = Binder.clearCallingIdentity();
79 Binder.restoreCallingIdentity(identity);
92 long identity = Binder.clearCallingIdentity();
102 Binder.restoreCallingIdentity(identity);
119 long identity = Binder.clearCallingIdentity();
129 Binder.restoreCallingIdentity(identity);
144 long identity = Binder.clearCallingIdentity();
154 Binder.restoreCallingIdentity(identity);
DControlledRemoteCarTaskView.java75 long identity = Binder.clearCallingIdentity();
85 Binder.restoreCallingIdentity(identity);
91 long identity = Binder.clearCallingIdentity();
99 Binder.restoreCallingIdentity(identity);
105 long identity = Binder.clearCallingIdentity();
110 Binder.restoreCallingIdentity(identity);
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockServiceImpl.java315 final long identity = Binder.clearCallingIdentity(); in canDlcBeDisabledForFinalizedUser() local
329 Binder.restoreCallingIdentity(identity); in canDlcBeDisabledForFinalizedUser()
656 final long identity = Binder.clearCallingIdentity();
658 Binder.restoreCallingIdentity(identity);
674 final long identity = Binder.clearCallingIdentity();
687 Binder.restoreCallingIdentity(identity);
709 private void reportResult(boolean accepted, long identity,
711 Binder.restoreCallingIdentity(identity);
719 @NonNull RemoteCallback remoteCallback, @NonNull UserHandle userHandle, long identity,
725 reportResult(accepted, identity, remoteCallback);
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/
DFastAdvertisement.java65 byte[] identity = request.getCredential().getMetadataEncryptionKey(); in createFromRequest()
71 identity.length == IDENTITY_LENGTH, in createFromRequest()
81 identity, in createFromRequest()
110 byte[] identity, in FastAdvertisement() argument
116 this.mIdentity = identity; in FastAdvertisement()
123 + identity.length in FastAdvertisement()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/permissions/
DDiscoveryPermissions.java31 import com.android.server.nearby.util.identity.CallerIdentity;
90 CallerIdentity identity, @Nullable String message) { in noteAppOpAllowed() argument
92 identity.getUid(), identity.getPackageName(), identity.getAttributionTag(), message) in noteAppOpAllowed()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java243 final long identity = Binder.clearCallingIdentity();
247 Binder.restoreCallingIdentity(identity);
315 final long identity = Binder.clearCallingIdentity();
319 Binder.restoreCallingIdentity(identity);
354 final long identity = Binder.clearCallingIdentity();
358 Binder.restoreCallingIdentity(identity);
596 final long identity = Binder.clearCallingIdentity(); in handleCarrierAppAvailableNetworks() local
602 Binder.restoreCallingIdentity(identity); in handleCarrierAppAvailableNetworks()
619 final long identity = Binder.clearCallingIdentity(); in handleCarrierAppAvailableNetworks() local
650 Binder.restoreCallingIdentity(identity); in handleCarrierAppAvailableNetworks()
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/
DNearbyService.java51 import com.android.server.nearby.util.identity.CallerIdentity;
112 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag); in registerScanListener() local
113 DiscoveryPermissions.enforceDiscoveryPermission(mContext, identity); in registerScanListener()
115 return mDiscoveryProviderManager.registerScanListener(scanRequest, listener, identity); in registerScanListener()
123 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag); in unregisterScanListener() local
124 DiscoveryPermissions.enforceDiscoveryPermission(mContext, identity); in unregisterScanListener()
146 CallerIdentity identity = CallerIdentity.fromBinder(mContext, packageName, attributionTag); in stopBroadcast() local
147 BroadcastPermissions.enforceBroadcastPermission(mContext, identity); in stopBroadcast()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java112 public final String identity; field in WifiInfo
151 bundle.putString(EXTRA_PROVISIONING_WIFI_IDENTITY, identity); in toPersistableBundle()
194 identity = builder.identity; in WifiInfo()
225 private String identity; field in WifiInfo.Builder
279 public Builder setIdentity(String identity) { in setIdentity() argument
280 this.identity = identity; in setIdentity()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DMatrixTest.java59 Matrix transform = Matrix.identity(); in transformPoint_identityKeepsVector()
157 Matrix inverse = Matrix.identity().invert(); in invert_identityInverseIsIdentity()
159 assertThat(inverse.data).usingTolerance(EPSILON).containsExactly(Matrix.identity().data) in invert_identityInverseIsIdentity()
175 .containsExactly(Matrix.identity().data).inOrder(); in invert_multiplyWithInverseIsIdentity()
179 .containsExactly(Matrix.identity().data).inOrder(); in invert_multiplyWithInverseIsIdentity()
192 product = Matrix.multiply(a, Matrix.identity()); in multiply_multiplyWithIdentityIsNoOp()
195 product = Matrix.multiply(Matrix.identity(), a); in multiply_multiplyWithIdentityIsNoOp()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java465 public final byte[] identity; field in EapSimAkaAttribute.AtIdentity
472 identity = new byte[identityLength]; in AtIdentity()
473 byteBuffer.get(identity); in AtIdentity()
480 public AtIdentity(int lengthInBytes, byte[] identity) in AtIdentity() argument
483 this.identity = identity; in AtIdentity()
489 byteBuffer.putShort((short) identity.length); in encode()
490 byteBuffer.put(identity); in encode()
492 int bytesUsed = MIN_ATTR_LENGTH + identity.length; in encode()
502 public static AtIdentity getAtIdentity(byte[] identity) in getAtIdentity() argument
504 int lengthInBytes = MIN_ATTR_LENGTH + identity.length; in getAtIdentity()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtIdentityTest.java56 assertArrayEquals(IDENTITY, atIdentity.identity); in testDecode()
72 assertArrayEquals(IDENTITY, atIdentity.identity); in testGetAtIdentity()
83 assertArrayEquals(atIdentity.identity, newAtIdentity.identity); in testGetAtIdentity()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java463 final long identity = Binder.clearCallingIdentity();
473 Binder.restoreCallingIdentity(identity);
492 final long identity = Binder.clearCallingIdentity();
501 Binder.restoreCallingIdentity(identity);
796 final long identity = Binder.clearCallingIdentity(); in importSms() local
802 Binder.restoreCallingIdentity(identity); in importSms()
817 final long identity = Binder.clearCallingIdentity(); in importMms() local
870 Binder.restoreCallingIdentity(identity); in importMms()
916 final long identity = Binder.clearCallingIdentity(); in updateMessageStatus() local
927 Binder.restoreCallingIdentity(identity); in updateMessageStatus()
[all …]

123456