Home
last modified time | relevance | path

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

123

/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp95 for (auto& [identity, server] : tmp) { in set()
96 if (tracker.find(identity) == tracker.end()) { in set()
97 tracker[identity] = std::move(server); in set()
101 for (auto& [identity, server] : tracker) { in set()
102 const bool active = tmp.find(identity) != tmp.end(); in set()
107 updateServerState(identity, Validation::success_but_expired, netId); in set()
111 updateServerState(identity, Validation::in_process, netId); in set()
112 startValidation(identity, netId, false); in set()
149 const ServerIdentity& identity, in requestValidation() argument
163 auto result = getPrivateDnsLocked(identity, netId); in requestValidation()
[all …]
DPrivateDnsConfiguration.h88 base::Result<void> requestValidation(unsigned netId, const ServerIdentity& identity,
102 void startValidation(const ServerIdentity& identity, unsigned netId, bool isRevalidation)
105 bool recordPrivateDnsValidation(const ServerIdentity& identity, unsigned netId, bool success,
108 void sendPrivateDnsValidationEvent(const ServerIdentity& identity, unsigned netId, bool success)
116 void updateServerState(const ServerIdentity& identity, Validation state, uint32_t netId)
120 base::Result<IPrivateDnsServer*> getPrivateDns(const ServerIdentity& identity, unsigned netId)
123 base::Result<IPrivateDnsServer*> getPrivateDnsLocked(const ServerIdentity& identity,
151 RecordEntry(uint32_t netId, const ServerIdentity& identity, Validation state) in RecordEntry()
152 : netId(netId), serverIdentity(identity), state(state) {} in RecordEntry()
DPrivateDnsConfigurationTest.cpp119 bool hasPrivateDnsServer(const ServerIdentity& identity, unsigned netId) { in hasPrivateDnsServer() argument
120 return mPdc.getPrivateDns(identity, netId).ok(); in hasPrivateDnsServer()
311 const ServerIdentity identity(server); in TEST_F() local
339 EXPECT_TRUE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F()
342 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F()
344 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F()
348 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark).ok()); in TEST_F()
349 EXPECT_FALSE(mPdc.requestValidation(kNetId, identity, kMark + 1).ok()); in TEST_F()
350 EXPECT_FALSE(mPdc.requestValidation(kNetId + 1, identity, kMark).ok()); in TEST_F()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java2252 final long identity = Binder.clearCallingIdentity(); in dialForSubscriber() local
2267 Binder.restoreCallingIdentity(identity); in dialForSubscriber()
2288 final long identity = Binder.clearCallingIdentity(); in callForSubscriber() local
2314 Binder.restoreCallingIdentity(identity); in callForSubscriber()
2331 final long identity = Binder.clearCallingIdentity(); in supplyPinReportResultForSubscriber() local
2338 Binder.restoreCallingIdentity(identity); in supplyPinReportResultForSubscriber()
2345 final long identity = Binder.clearCallingIdentity(); in supplyPukReportResultForSubscriber() local
2352 Binder.restoreCallingIdentity(identity); in supplyPukReportResultForSubscriber()
2508 final long identity = Binder.clearCallingIdentity(); in updateServiceLocationWithPackageName() local
2515 Binder.restoreCallingIdentity(identity); in updateServiceLocationWithPackageName()
[all …]
DImsRcsController.java585 final long identity = Binder.clearCallingIdentity(); in createSipDelegate() local
598 Binder.restoreCallingIdentity(identity); in createSipDelegate()
609 final long identity = Binder.clearCallingIdentity(); in destroySipDelegate() local
620 Binder.restoreCallingIdentity(identity); in destroySipDelegate()
629 final long identity = Binder.clearCallingIdentity(); in triggerNetworkRegistration() local
640 Binder.restoreCallingIdentity(identity); in triggerNetworkRegistration()
652 final long identity = Binder.clearCallingIdentity(); in registerRcsFeatureCallback() local
660 Binder.restoreCallingIdentity(identity); in registerRcsFeatureCallback()
671 final long identity = Binder.clearCallingIdentity(); in unregisterImsFeatureCallback() local
676 Binder.restoreCallingIdentity(identity); in unregisterImsFeatureCallback()
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/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/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java194 final long identity = Binder.clearCallingIdentity();
198 Binder.restoreCallingIdentity(identity);
259 final long identity = Binder.clearCallingIdentity();
263 Binder.restoreCallingIdentity(identity);
286 final long identity = Binder.clearCallingIdentity();
290 Binder.restoreCallingIdentity(identity);
430 final long identity = Binder.clearCallingIdentity(); in handleCarrierAppAvailableNetworks() local
436 Binder.restoreCallingIdentity(identity); in handleCarrierAppAvailableNetworks()
453 final long identity = Binder.clearCallingIdentity(); in handleCarrierAppAvailableNetworks() local
484 Binder.restoreCallingIdentity(identity); in handleCarrierAppAvailableNetworks()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java111 public final String identity; field in WifiInfo
150 bundle.putString(EXTRA_PROVISIONING_WIFI_IDENTITY, identity); in toPersistableBundle()
193 identity = builder.identity; in WifiInfo()
224 private String identity; field in WifiInfo.Builder
272 public Builder setIdentity(String identity) { in setIdentity() argument
273 this.identity = identity; in setIdentity()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java376 final long identity = Binder.clearCallingIdentity();
386 Binder.restoreCallingIdentity(identity);
405 final long identity = Binder.clearCallingIdentity();
414 Binder.restoreCallingIdentity(identity);
690 final long identity = Binder.clearCallingIdentity(); in importSms() local
696 Binder.restoreCallingIdentity(identity); in importSms()
711 final long identity = Binder.clearCallingIdentity(); in importMms() local
764 Binder.restoreCallingIdentity(identity); in importMms()
810 final long identity = Binder.clearCallingIdentity(); in updateMessageStatus() local
821 Binder.restoreCallingIdentity(identity); in updateMessageStatus()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java452 public final byte[] identity; field in EapSimAkaAttribute.AtIdentity
459 identity = new byte[identityLength]; in AtIdentity()
460 byteBuffer.get(identity); in AtIdentity()
467 public AtIdentity(int lengthInBytes, byte[] identity) in AtIdentity() argument
470 this.identity = identity; in AtIdentity()
476 byteBuffer.putShort((short) identity.length); in encode()
477 byteBuffer.put(identity); in encode()
479 int bytesUsed = MIN_ATTR_LENGTH + identity.length; in encode()
489 public static AtIdentity getAtIdentity(byte[] identity) in getAtIdentity() argument
491 int lengthInBytes = MIN_ATTR_LENGTH + identity.length; in getAtIdentity()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java370 String password, String identity, String anonymousIdentity, String domain, in buildTestWifiInfoForEAPWithCertificates() argument
376 .setIdentity(identity) in buildTestWifiInfoForEAPWithCertificates()
391 String password, String identity, String anonymousIdentity, String domain, in assertEnterpriseConfig() argument
393 assertEnterpriseConfigBase(wifiConf, password, identity, anonymousIdentity, domain); in assertEnterpriseConfig()
398 String password, String identity, String anonymousIdentity, String domain) { in assertEnterpriseConfigWithoutCertificates() argument
399 assertEnterpriseConfigBase(wifiConf, password, identity, anonymousIdentity, domain); in assertEnterpriseConfigWithoutCertificates()
404 String identity, String anonymousIdentity, String domain) { in assertEnterpriseConfigBase() argument
407 assertEquals(identity, wifiConf.enterpriseConfig.getIdentity()); in assertEnterpriseConfigBase()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java134 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy()
144 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy_Raw()
153 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_SortOrder_Simple()
167 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_SortOrder_Locale()
180 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_SortOrder_Raw()
191 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_Limit()
202 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_Limit_Raw()
/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/modules/Permission/service/java/com/android/role/
DRoleService.java586 final long identity = Binder.clearCallingIdentity(); in isUserExistent() local
590 Binder.restoreCallingIdentity(identity); in isUserExistent()
634 final long identity = Binder.clearCallingIdentity(); in getBrowserRoleHolder() local
639 Binder.restoreCallingIdentity(identity); in getBrowserRoleHolder()
644 final long identity = Binder.clearCallingIdentity(); in isInstantApp() local
658 Binder.restoreCallingIdentity(identity); in isInstantApp()
685 final long identity = Binder.clearCallingIdentity(); in setBrowserRoleHolder() local
699 Binder.restoreCallingIdentity(identity); in setBrowserRoleHolder()
713 final long identity = Binder.clearCallingIdentity(); in getSmsRoleHolder() local
718 Binder.restoreCallingIdentity(identity); in getSmsRoleHolder()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java215 for (Pair<Locale, String> identity : ServiceProviderVerifier.getProviderNames( in validateProvider()
217 if (identity.first == null || TextUtils.isEmpty(identity.second)) continue; in validateProvider()
220 if (TextUtils.equals(identity.second, in validateProvider()
221 friendlyNames.get(identity.first.getISO3Language()))) { in validateProvider()
224 + identity.first.getISO3Language() + "/" + identity.second); in validateProvider()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java794 String identity = buildIdentity(getSimMethodForConfig(config), simInfo.imsi, in getSimIdentity() local
796 if (identity == null) { in getSimIdentity()
802 return Pair.create(identity, ""); in getSimIdentity()
815 return Pair.create(identity, ""); in getSimIdentity()
818 String encryptedIdentity = buildEncryptedIdentity(identity, in getSimIdentity()
826 return Pair.create(identity, encryptedIdentity); in getSimIdentity()
900 private static String buildEncryptedIdentity(String identity, in buildEncryptedIdentity() argument
906 if (identity == null) { in buildEncryptedIdentity()
913 imsiEncryptionInfo.getPublicKey(), identity.getBytes(), Base64.NO_WRAP); in buildEncryptedIdentity()
1007 public static boolean isAnonymousAtRealmIdentity(String identity) { in isAnonymousAtRealmIdentity() argument
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeMethodStateMachine.java157 protected ChallengeState buildChallengeState(byte[] identity) { in buildChallengeState() argument
158 return new ChallengeState(identity); in buildChallengeState()
173 ChallengeState(byte[] identity) { in ChallengeState() argument
174 super(identity); in ChallengeState()
DEapSimMethodStateMachine.java335 String identity = "1" + imsi; in getIdentityResponse() local
336 mIdentity = identity.getBytes(StandardCharsets.US_ASCII); in getIdentityResponse()
337 LOG.d(mTAG, "EAP-SIM/Identity=" + LOG.pii(identity)); in getIdentityResponse()
362 protected ChallengeState(List<Integer> versions, AtNonceMt atNonceMt, byte[] identity) { in ChallengeState() argument
365 mIdentity = identity; in ChallengeState()
DEapAkaMethodStateMachine.java167 protected ChallengeState buildChallengeState(byte[] identity) { in buildChallengeState() argument
168 return new ChallengeState(identity); in buildChallengeState()
322 ChallengeState(byte[] identity) { in ChallengeState() argument
323 this.mIdentity = identity; in ChallengeState()
/packages/apps/Launcher3/ext_tests/src/com/android/launcher3/testing/
DDebugTestInformationHandler.java151 final long identity = Binder.clearCallingIdentity(); in call() local
159 Binder.restoreCallingIdentity(identity); in call()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java28 identity(); in ColorSpaceMatrix()
52 public void identity() { in identity() method in ColorSpaceMatrix
/packages/providers/MediaProvider/src/com/android/providers/media/
DTranscodeHelperImpl.java666 LocalCallingIdentity identity = mMediaProvider.getCachedCallingIdentityForTranscoding(uid); in doesAppNeedTranscoding() local
667 final String[] callingPackages = identity.getSharedPackageNames(); in doesAppNeedTranscoding()
671 Optional<Boolean> appManifestResult = checkManifestSupport(callingPackage, identity, in doesAppNeedTranscoding()
839 LocalCallingIdentity identity, int fileFlags) { in checkManifestSupport() argument
846 int supportedFlags = identity.getApplicationMediaCapabilitiesSupportedFlags(); in checkManifestSupport()
847 int unsupportedFlags = identity.getApplicationMediaCapabilitiesUnsupportedFlags(); in checkManifestSupport()
863 identity.setApplicationMediaCapabilitiesFlags(supportedFlags, unsupportedFlags); in checkManifestSupport()
/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/
DTypes.java18 import static java.util.function.Function.identity;
80 .collect(toMap(KnownDifference::getTestCaseId, identity())); in buildIdMap()

123