/frameworks/base/tools/aapt2/filter/ |
D | Filter_test.cpp | 29 FilterChain chain; in TEST() local 30 ASSERT_TRUE(chain.Keep("some/random/path")); in TEST() 32 chain.AddFilter(util::make_unique<PrefixFilter>("keep/")); in TEST() 34 ASSERT_FALSE(chain.Keep("removed/path")); in TEST() 35 ASSERT_TRUE(chain.Keep("keep/path/1")); in TEST() 36 ASSERT_TRUE(chain.Keep("keep/path/2")); in TEST() 38 chain.AddFilter(util::make_unique<PrefixFilter>("keep/")); in TEST() 39 chain.AddFilter(util::make_unique<PrefixFilter>("keep/really/")); in TEST() 41 ASSERT_FALSE(chain.Keep("removed/path")); in TEST() 42 ASSERT_FALSE(chain.Keep("/keep/really/wrong/prefix")); in TEST() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | NetworkSecurityTrustManager.java | 67 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument 69 mDelegate.checkClientTrusted(chain, authType); in checkClientTrusted() 118 private void checkPins(List<X509Certificate> chain) throws CertificateException { in checkPins() argument 122 || !isPinningEnforced(chain)) { in checkPins() 128 for (int i = chain.size() - 1; i >= 0 ; i--) { in checkPins() 129 X509Certificate cert = chain.get(i); in checkPins() 151 private boolean isPinningEnforced(List<X509Certificate> chain) throws CertificateException { in isPinningEnforced() argument 152 if (chain.isEmpty()) { in isPinningEnforced() 155 X509Certificate anchorCert = chain.get(chain.size() - 1); in isPinningEnforced()
|
D | RootTrustManager.java | 53 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument 58 config.getTrustManager().checkClientTrusted(chain, authType); in checkClientTrusted()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 489 private void syncFirewallChainLocked(int chain, String name) { in syncFirewallChainLocked() argument 492 final SparseIntArray uidFirewallRules = getUidFirewallRulesLR(chain); in syncFirewallChainLocked() 508 setFirewallUidRuleLocked(chain, rules.keyAt(i), rules.valueAt(i)); in syncFirewallChainLocked() 608 for (int chain : chains) { in prepareNativeDaemon() 609 if (getFirewallChainState(chain)) { in prepareNativeDaemon() 610 setFirewallChainEnabled(chain, true); in prepareNativeDaemon() 1603 private void closeSocketsForFirewallChainLocked(int chain, String chainName) { in closeSocketsForFirewallChainLocked() argument 1611 if (getFirewallType(chain) == FIREWALL_WHITELIST) { in closeSocketsForFirewallChainLocked() 1620 final SparseIntArray rules = getUidFirewallRulesLR(chain); in closeSocketsForFirewallChainLocked() 1642 final SparseIntArray rules = getUidFirewallRulesLR(chain); in closeSocketsForFirewallChainLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkManagementInternalTest.java | 128 BiFunction<Integer, Integer, String> errorMsg = (chain, state) -> { in testIsNetworkRestrictedForUid() 130 valueToString(NetworkPolicyManager.class, "FIREWALL_CHAIN_", chain), in testIsNetworkRestrictedForUid() 133 for (int chain : chains) { in testIsNetworkRestrictedForUid() 134 final ArrayMap<Integer, Boolean> expectedValues = expected.get(chain); in testIsNetworkRestrictedForUid() 135 mInjector.setFirewallChainState(chain, true); in testIsNetworkRestrictedForUid() 137 mInjector.setFirewallRule(chain, TEST_UID, state); in testIsNetworkRestrictedForUid() 138 assertEquals(errorMsg.apply(chain, state), in testIsNetworkRestrictedForUid()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyLogger.java | 170 void uidFirewallRuleChanged(int chain, int uid, int rule) { in uidFirewallRuleChanged() argument 172 if (LOGV) Slog.v(TAG, getUidFirewallRuleChangedLog(chain, uid, rule)); in uidFirewallRuleChanged() 173 mEventsBuffer.uidFirewallRuleChanged(chain, uid, rule); in uidFirewallRuleChanged() 177 void firewallChainEnabled(int chain, boolean enabled) { in firewallChainEnabled() argument 179 if (LOGD) Slog.d(TAG, getFirewallChainEnabledLog(chain, enabled)); in firewallChainEnabled() 180 mEventsBuffer.firewallChainEnabled(chain, enabled); in firewallChainEnabled() 184 void firewallRulesChanged(int chain, int[] uids, int[] rules) { in firewallRulesChanged() argument 186 final String log = "Firewall rules changed for " + getFirewallChainName(chain) in firewallRulesChanged() 282 private static String getUidFirewallRuleChangedLog(int chain, int uid, int rule) { in getUidFirewallRuleChangedLog() argument 284 uid, getFirewallChainName(chain), getFirewallRuleName(rule)); in getUidFirewallRuleChangedLog() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 105 void encode(int tick, AudioStream *chain); 264 void AudioStream::encode(int tick, AudioStream *chain) in encode() argument 308 while (chain) { in encode() 309 if (chain != this) { in encode() 310 data |= chain->mix(buffer, tick - mInterval, tick, mSampleRate); in encode() 312 chain = chain->mNext; in encode() 710 for (AudioStream *chain = mChain; chain->mNext; chain = chain->mNext) { in remove() local 711 if (chain->mNext == stream) { in remove() 716 chain->mNext = stream->mNext; in remove() 732 AudioStream *chain = mGroup->mChain; in threadLoop() local [all …]
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator_test.cpp | 111 FilterChain chain; in TEST_F() local 117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 138 FilterChain chain; in TEST_F() local 144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 163 FilterChain chain; in TEST_F() local 169 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
|
D | MultiApkGenerator.h | 58 FilterChain* chain);
|
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
D | LockFindingClassVisitor.java | 52 public LockFindingClassVisitor(List<LockTarget> targets, ClassVisitor chain) { in LockFindingClassVisitor() argument 53 super(Utils.ASM_VERSION, chain); in LockFindingClassVisitor() 62 MethodVisitor chain = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod() local 63 return new LockFindingMethodVisitor(this.className, mn, chain); in visitMethod() 75 private MethodVisitor chain; field in LockFindingClassVisitor.LockFindingMethodVisitor 77 public LockFindingMethodVisitor(String owner, MethodNode mn, MethodVisitor chain) { in LockFindingMethodVisitor() argument 81 this.chain = chain; in LockFindingMethodVisitor() 182 mn.accept(chain); in visitEnd()
|
/frameworks/av/services/audioflinger/ |
D | Threads.cpp | 911 sp<EffectChain> chain = mEffectChains[i]; in dumpEffectChains_l() local 912 if (chain != 0) { in dumpEffectChains_l() 913 chain->dump(fd, args); in dumpEffectChains_l() 1053 sp<EffectChain> chain = getEffectChain_l(sessionId); in setEffectSuspended_l() local 1054 if (chain != 0) { in setEffectSuspended_l() 1056 chain->setEffectSuspended_l(type, suspend); in setEffectSuspended_l() 1058 chain->setEffectSuspendedAll_l(suspend); in setEffectSuspended_l() 1065 void AudioFlinger::ThreadBase::checkSuspendOnAddEffectChain_l(const sp<EffectChain>& chain) in checkSuspendOnAddEffectChain_l() argument 1067 ssize_t index = mSuspendedSessions.indexOfKey(chain->sessionId()); in checkSuspendOnAddEffectChain_l() 1079 chain->setEffectSuspendedAll_l(true); in checkSuspendOnAddEffectChain_l() [all …]
|
D | AudioFlinger.cpp | 2058 sp<EffectChain> chain = getOrphanEffectChain_l(sessionId); in createRecord() local 2059 if (chain != 0) { in createRecord() 2061 thread->addEffectChain_l(chain); in createRecord() 2837 sp<EffectChain> chain; in closeInput_nonvirtual() local 2843 chain = effectChains[0]; in closeInput_nonvirtual() 2846 if (chain != 0) { in closeInput_nonvirtual() 2856 if (t->hasAudioSession(chain->sessionId()) != 0) { in closeInput_nonvirtual() 2859 t->id(), chain->sessionId()); in closeInput_nonvirtual() 2860 t->addEffectChain_l(chain); in closeInput_nonvirtual() 2866 putOrphanEffectChain_l(chain); in closeInput_nonvirtual() [all …]
|
D | Effects.h | 65 virtual wp<EffectChain> chain() const = 0; 516 EffectCallback(EffectChain *chain, ThreadBase *thread, AudioFlinger *audioFlinger) in EffectCallback() argument 517 : mChain(chain), mThread(thread), mAudioFlinger(audioFlinger) {} in EffectCallback() 550 wp<EffectChain> chain() const override { return mChain; } in chain() function 690 wp<EffectChain> chain() const override { return nullptr; } in chain() function
|
/frameworks/base/core/java/android/net/http/ |
D | X509TrustManagerExtensions.java | 95 public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, String authType, in checkServerTrusted() argument 98 return mDelegate.checkServerTrusted(chain, authType, host); in checkServerTrusted() 101 return (List<X509Certificate>) mCheckServerTrusted.invoke(mTrustManager, chain, in checkServerTrusted()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarFile.java | 189 for (Certificate[] chain : certChains) { in getCertificates() 190 count += chain.length; in getCertificates() 196 for (Certificate[] chain : certChains) { in getCertificates() 197 System.arraycopy(chain, 0, certs, i, chain.length); in getCertificates() 198 i += chain.length; in getCertificates()
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | X509TrustManagerExtensionsTest.java | 34 public void checkClientTrusted(X509Certificate[] chain, String authType) {} in checkClientTrusted() argument 36 public void checkServerTrusted(X509Certificate[] chain, String authType) {} in checkServerTrusted() argument
|
/frameworks/base/keystore/java/android/security/ |
D | KeyChain.java | 665 Collection<X509Certificate> chain = toCertificates(certChainBytes); in getCertificateChain() local 666 ArrayList<X509Certificate> fullChain = new ArrayList<>(chain.size() + 1); in getCertificateChain() 668 fullChain.addAll(chain); in getCertificateChain() 682 List<X509Certificate> chain = store.getCertificateChain(leafCert); in getCertificateChain() local 683 return chain.toArray(new X509Certificate[chain.size()]); in getCertificateChain()
|
/frameworks/base/core/java/android/content/pm/ |
D | Signature.java | 224 Signature[] chain = new Signature[1 + mCertificateChain.length]; in getChainSignatures() local 225 chain[0] = this; in getChainSignatures() 229 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures() 232 return chain; in getChainSignatures()
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 324 void setFirewallUidRule(int chain, int uid, int rule); in setFirewallUidRule() argument 325 void setFirewallUidRules(int chain, in int[] uids, in int[] rules); in setFirewallUidRules() argument 326 void setFirewallChainEnabled(int chain, boolean enable); in setFirewallChainEnabled() argument
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreSpi.java | 287 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) in engineSetKeyEntry() argument 294 setPrivateKeyEntry(alias, (PrivateKey) key, chain, null); in engineSetKeyEntry() 355 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, in setPrivateKeyEntry() argument 384 if ((chain == null) || (chain.length == 0)) { in setPrivateKeyEntry() 389 X509Certificate[] x509chain = new X509Certificate[chain.length]; in setPrivateKeyEntry() 390 for (int i = 0; i < chain.length; i++) { in setPrivateKeyEntry() 391 if (!"X.509".equals(chain[i].getType())) { in setPrivateKeyEntry() 396 if (!(chain[i] instanceof X509Certificate)) { in setPrivateKeyEntry() 401 x509chain[i] = (X509Certificate) chain[i]; in setPrivateKeyEntry() 417 if (chain.length > 1) { in setPrivateKeyEntry() [all …]
|
D | AttestationUtils.java | 271 public static boolean isChainValid(KeymasterCertificateChain chain) { in isChainValid() argument 272 return chain != null && chain.getCertificates().size() >= 2; in isChainValid()
|
/frameworks/native/vulkan/libvulkan/ |
D | api.cpp | 1083 LayerChain chain(true, logger, in CreateInstance() local 1086 VkResult result = chain.ActivateLayers(create_info->ppEnabledLayerNames, in CreateInstance() 1095 if (!chain.Empty()) { in CreateInstance() 1097 chain.ModifyCreateInfo(local_create_info); in CreateInstance() 1101 return chain.Create(create_info, allocator, instance_out); in CreateInstance() 1109 LayerChain chain( in CreateDevice() local 1113 VkResult result = chain.ActivateLayers( in CreateDevice() 1122 if (!chain.Empty()) { in CreateDevice() 1124 chain.ModifyCreateInfo(local_create_info); in CreateDevice() 1128 return chain.Create(physical_dev, create_info, allocator, dev_out); in CreateDevice()
|
/frameworks/base/core/java/android/webkit/ |
D | ClientCertRequest.java | 73 public abstract void proceed(PrivateKey privateKey, X509Certificate[] chain); in proceed() argument
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
D | ConfigParser.java | 467 Certificate[] chain = ks.getCertificateChain(alias); in parsePkcs12() local 468 if (chain != null) { in parsePkcs12() 470 for (Certificate certificate : chain) { in parsePkcs12()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuServerConnection.java | 586 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument 594 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument 602 mServerCerts = mDelegate.getTrustedChainForServer(chain, authType, in checkServerTrusted() 608 for (X509Certificate cert : chain) { in checkServerTrusted()
|