Home
last modified time | relevance | path

Searched refs:ca (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/SecureElement/src/com/android/se/security/
DChannelAccess.java54 ChannelAccess ca = new ChannelAccess(); in clone() local
55 ca.setAccess(mAccess, mReason); in clone()
56 ca.setPackageName(mPackageName); in clone()
57 ca.setApduAccess(mApduAccess); in clone()
58 ca.setCallingPid(mCallingPid); in clone()
59 ca.setNFCEventAccess(mNFCEventAccess); in clone()
60 ca.setUseApduFilter(mUseApduFilter); in clone()
67 ca.setApduFilter(apduFilter); in clone()
69 ca.setApduFilter(null); in clone()
71 return ca; in clone()
[all …]
DAccessRuleCache.java163 ChannelAccess ca = mRuleCache.get(refDo); in putWithMerge() local
168 if (ca.getAccess() != ChannelAccess.ACCESS.DENIED) { in putWithMerge()
170 ca.setAccess(ChannelAccess.ACCESS.DENIED, channelAccess.getReason()); in putWithMerge()
172 ca.setAccess(ChannelAccess.ACCESS.ALLOWED, ""); in putWithMerge()
179 if (ca.getNFCEventAccess() != ChannelAccess.ACCESS.DENIED) { in putWithMerge()
181 ca.setNFCEventAccess(ChannelAccess.ACCESS.DENIED); in putWithMerge()
183 ca.setNFCEventAccess(ChannelAccess.ACCESS.ALLOWED); in putWithMerge()
190 if (ca.getApduAccess() != ChannelAccess.ACCESS.DENIED) { in putWithMerge()
192 ca.setApduAccess(ChannelAccess.ACCESS.DENIED); in putWithMerge()
193 } else if (ca.isUseApduFilter() || channelAccess.isUseApduFilter()) { in putWithMerge()
[all …]
DAccessControlEnforcer.java237 ChannelAccess ca = channel.getChannelAccess(); in checkCommand() local
238 if (ca == null) { in checkCommand()
241 String reason = ca.getReason(); in checkCommand()
246 Log.i(mTag, "checkCommand() : Access = " + ca.getAccess() + " APDU Access = " in checkCommand()
247 + ca.getApduAccess() + " Reason = " + reason); in checkCommand()
249 if (ca.getAccess() != ACCESS.ALLOWED) { in checkCommand()
252 if (ca.isUseApduFilter()) { in checkCommand()
253 ApduFilter[] accessConditions = ca.getApduFilter(); in checkCommand()
266 if (ca.getApduAccess() == ChannelAccess.ACCESS.ALLOWED) { in checkCommand()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DBaselinePerfTest.java43 CustomAudience ca = in test_joinCustomAudience_success() local
47 .joinCustomAudience(ca) in test_joinCustomAudience_success()
50 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in test_joinCustomAudience_success()
67 for (CustomAudience ca : customAudienceList) { in testAdSelectionAndReporting_normalFlow_success()
69 .joinCustomAudience(ca) in testAdSelectionAndReporting_normalFlow_success()
94 for (CustomAudience ca : customAudienceList) { in testAdSelectionAndReporting_normalFlow_success()
96 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in testAdSelectionAndReporting_normalFlow_success()
115 for (CustomAudience ca : customAudienceList) { in testAdSelectionAndReporting_normalFlowWithThrottling_success()
118 .joinCustomAudience(ca) in testAdSelectionAndReporting_normalFlowWithThrottling_success()
145 for (CustomAudience ca : customAudienceList) { in testAdSelectionAndReporting_normalFlowWithThrottling_success()
[all …]
DSelectAdsTestServerLatency.java40 for (CustomAudience ca : sCustomAudiences) { in tearDownAfterClass()
42 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in tearDownAfterClass()
52 for (CustomAudience ca : sCustomAudiences) { in tearDown()
54 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in tearDown()
56 removedCAs.add(ca); in tearDown()
DFledgeAppNotAllowedMemoryTest.java92 CustomAudience ca = in tryToJoinAndLeaveCA() local
96 () -> mCustomAudienceClient.joinCustomAudience(ca).get(5, TimeUnit.SECONDS), in tryToJoinAndLeaveCA()
101 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in tryToJoinAndLeaveCA()
DLimitPerfTests.java132 for (CustomAudience ca : caList) { in joinAll()
134 .joinCustomAudience(ca) in joinAll()
140 for (CustomAudience ca : caList) { in leaveAll()
142 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in leaveAll()
DAdSelectionDataE2ETest.java490 for (CustomAudience ca : customAudiences) { in getWinningAdRenderIdForDummyScripts()
493 if (ca.getName().equals("winningCA")) { in getWinningAdRenderIdForDummyScripts()
494 return ca.getAds().get(0).getAdRenderId(); in getWinningAdRenderIdForDummyScripts()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DScheduledUpdatesHandlerTest.java182 .map(ca -> ca.getName()) in testPerformScheduledUpdates_Success()
224 .map(ca -> ca.getName()) in testPerformScheduledUpdates_Success()
228 .map(ca -> ca.getName()) in testPerformScheduledUpdates_Success()
257 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled()
299 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled()
303 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled()
339 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled()
381 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled()
385 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled()
425 .map(ca -> ca.getName()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabledButNoFlagsInResponse()
[all …]
DScheduleCustomAudienceUpdateTestUtils.java119 CustomAudience ca = in generateCustomAudienceWithName() local
123 ca.getBuyer(), in generateCustomAudienceWithName()
125 ca.getActivationTime(), in generateCustomAudienceWithName()
126 ca.getExpirationTime(), in generateCustomAudienceWithName()
127 ca.getDailyUpdateUri(), in generateCustomAudienceWithName()
128 ca.getBiddingLogicUri(), in generateCustomAudienceWithName()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DPartialCustomAudienceTest.java54 PartialCustomAudience ca = VALID_PARTIAL_CA; in testBuildValidPartialCARequestParcel_Success() local
60 ca.writeToParcel(p, 0); in testBuildValidPartialCARequestParcel_Success()
64 expect.that(ca.getName()).isEqualTo(fromParcel.getName()); in testBuildValidPartialCARequestParcel_Success()
65 expect.that(ca.getActivationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success()
67 expect.that(ca.getExpirationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success()
69 expect.that(ca.getUserBiddingSignals()).isEqualTo(fromParcel.getUserBiddingSignals()); in testBuildValidPartialCARequestParcel_Success()
119 PartialCustomAudience ca = VALID_PARTIAL_CA; in testToString() local
127 expect.that(expected).isEqualTo(ca.toString()); in testToString()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DPartialCustomAudienceTest.java74 PartialCustomAudience ca = VALID_PARTIAL_CA; in testBuildValidPartialCARequestParcel_Success() local
80 ca.writeToParcel(p, 0); in testBuildValidPartialCARequestParcel_Success()
84 expect.that(ca.getName()).isEqualTo(fromParcel.getName()); in testBuildValidPartialCARequestParcel_Success()
85 expect.that(ca.getActivationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success()
87 expect.that(ca.getExpirationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success()
89 expect.that(ca.getUserBiddingSignals()).isEqualTo(fromParcel.getUserBiddingSignals()); in testBuildValidPartialCARequestParcel_Success()
134 PartialCustomAudience ca = VALID_PARTIAL_CA; in testToString() local
142 expect.that(expected).isEqualTo(ca.toString()); in testToString()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DFrequencyCapAdFiltererImpl.java75 for (DBCustomAudience ca : cas) { in filterCustomAudiences()
79 totalAds += ca.getAds().size(); in filterCustomAudiences()
80 for (DBAdData ad : ca.getAds()) { in filterCustomAudiences()
82 ad, ca.getBuyer(), ca.getOwner(), ca.getName(), currentTime)) { in filterCustomAudiences()
87 toReturn.add(new DBCustomAudience.Builder(ca).setAds(filteredAds).build()); in filterCustomAudiences()
DAppInstallAdFiltererImpl.java72 for (DBCustomAudience ca : cas) { in filterCustomAudiences()
76 totalAds += ca.getAds().size(); in filterCustomAudiences()
77 for (DBAdData ad : ca.getAds()) { in filterCustomAudiences()
78 if (doesAdPassAppInstallFilters(ad, ca.getBuyer())) { in filterCustomAudiences()
83 toReturn.add(new DBCustomAudience.Builder(ca).setAds(filteredAds).build()); in filterCustomAudiences()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/utils/
DCustomAudienceTestFixture.java65 for (CustomAudience ca : cas) { in leaveCustomAudience()
67 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in leaveCustomAudience()
135 for (CustomAudience ca : customAudiences) { in joinCustomAudiences()
137 .joinCustomAudience(ca) in joinCustomAudiences()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/
DCustomAudienceSetupRule.java146 for (CustomAudience ca : mCustomAudiences) { in joinCas()
149 .joinCustomAudience(ca) in joinCas()
163 for (CustomAudience ca : mCustomAudiences) { in apply()
166 .leaveCustomAudience(ca.getBuyer(), ca.getName()) in apply()
DStaticAdTechServerUtils.java216 public static String getAdRenderUri(int buyerIndex, String ca, int adId) { in getAdRenderUri() argument
217 String adPath = String.format(AD_URI_PATH_FORMAT, ca, adId); in getAdRenderUri()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceDaoTest.java844 DBCustomAudience.Builder ca = in testListDebuggableCustomAudiences_happyPath() local
846 DBCustomAudience ca1 = ca.setName("ca1").build(); in testListDebuggableCustomAudiences_happyPath()
847 DBCustomAudience ca2 = ca.setName("ca2").build(); in testListDebuggableCustomAudiences_happyPath()
884 DBCustomAudience ca = in testListBackgroundDebuggableCustomAudiences_happyPath() local
889 mCustomAudienceDao.persistCustomAudience(ca); in testListBackgroundDebuggableCustomAudiences_happyPath()
899 ca.getOwner(), ca.getBuyer()); in testListBackgroundDebuggableCustomAudiences_happyPath()
901 assertThat(caList).containsExactly(ca, ca2); in testListBackgroundDebuggableCustomAudiences_happyPath()
930 DBCustomAudience ca = in testViewBackgroundDebuggableCustomAudiences_happyPath() local
936 .setBuyer(ca.getBuyer()) in testViewBackgroundDebuggableCustomAudiences_happyPath()
937 .setName(ca.getName()) in testViewBackgroundDebuggableCustomAudiences_happyPath()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java211 double ca = cos(azimuth); in fromSphericalVector() local
214 double az = acos(sqrt(max(ce * ce * ca * ca, 0) + se * se)) in fromSphericalVector()
DSphericalVector.java161 double ca = cos(azimuth); in fromAoAVector() local
163 double azz = sqrt(max(ca * ca - se * se, 0)) / cos(vec.elevation); in fromAoAVector()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java247 for (String ca : aliases) { in removeKeys()
248 if (!TextUtils.isEmpty(ca)) { in removeKeys()
250 Log.d(TAG, "removing CA cert: " + ca); in removeKeys()
252 removeEntryFromKeyStore(ca); in removeKeys()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdFiltererImplTest.java336 for (DBCustomAudience ca : caList) { in validateAppInstallDBCalls()
337 for (DBAdData ad : ca.getAds()) { in validateAppInstallDBCalls()
345 calls.merge(new Pair<>(ca.getBuyer(), PACKAGE_NAME_TO_FILTER), 1, Integer::sum); in validateAppInstallDBCalls()
349 calls.merge(new Pair<>(ca.getBuyer(), packageName), 1, Integer::sum); in validateAppInstallDBCalls()
/packages/modules/Bluetooth/android/pandora/test/
Davatar.sh60 isort --profile black -l 119 --ds --lbt 1 --ca "$@" "${_PY_SOURCES[@]}"
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java164 X509Certificate ca = mTestKeyStore.getRootCertificate("RSA"); in testCaInstall() local
167 intent.putExtra(KeyChain.EXTRA_CERTIFICATE, ca.getEncoded()); in testCaInstall()
/packages/modules/Wifi/framework/tests/assets/hsr1/
DHSR1ProfileWithCACert.conf50 Content-Type: application/x-x509-ca-cert

123