Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/tools/aapt2/filter/
DFilter_test.cpp29 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/
DNetworkSecurityTrustManager.java67 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()
DRootTrustManager.java53 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
58 config.getTrustManager().checkClientTrusted(chain, authType); in checkClientTrusted()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DAnimateToScene.kt128 val chain = interruptionResult.chain in animateToScene() constant
129 if (chain && animateFrom != transitionState.currentScene) { in animateToScene()
139 chain = chain, in animateToScene()
155 chain: Boolean = true, in CoroutineScope()
182 layoutState.startTransition(transition, chain) in CoroutineScope()
DInterruptionHandler.kt68 val chain: Boolean = true, in onInterruption() constant in com.android.compose.animation.scene.InterruptionResult
82 chain = true, in onInterruption()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkManagementService.java387 private void syncFirewallChainLocked(int chain, String name) { in syncFirewallChainLocked() argument
390 final SparseIntArray uidFirewallRules = getUidFirewallRulesLR(chain); in syncFirewallChainLocked()
406 setFirewallUidRuleLocked(chain, rules.keyAt(i), rules.valueAt(i)); in syncFirewallChainLocked()
527 for (int chain : chainsToEnable) { in prepareNativeDaemon()
528 if (getFirewallChainState(chain)) { in prepareNativeDaemon()
529 setFirewallChainEnabled(chain, true); in prepareNativeDaemon()
1244 public void setFirewallChainEnabled(int chain, boolean enable) { in setFirewallChainEnabled() argument
1248 if (getFirewallChainState(chain) == enable) { in setFirewallChainEnabled()
1253 setFirewallChainState(chain, enable); in setFirewallChainEnabled()
1256 if (!isValidFirewallChainForSetEnabled(chain)) { in setFirewallChainEnabled()
[all …]
DNetworkPolicyLogger.java220 void uidFirewallRuleChanged(int chain, int uid, int rule) { in uidFirewallRuleChanged() argument
224 getUidFirewallRuleChangedLog(chain, uid, rule)); in uidFirewallRuleChanged()
226 mEventsBuffer.uidFirewallRuleChanged(chain, uid, rule); in uidFirewallRuleChanged()
230 void firewallChainEnabled(int chain, boolean enabled) { in firewallChainEnabled() argument
234 getFirewallChainEnabledLog(chain, enabled)); in firewallChainEnabled()
236 mEventsBuffer.firewallChainEnabled(chain, enabled); in firewallChainEnabled()
240 void firewallRulesChanged(int chain, int[] uids, int[] rules) { in firewallRulesChanged() argument
242 final String log = "Firewall rules changed for " + getFirewallChainName(chain) in firewallRulesChanged()
363 private static String getUidFirewallRuleChangedLog(int chain, int uid, int rule) { in getUidFirewallRuleChangedLog() argument
365 uid, getFirewallChainName(chain), getFirewallRuleName(rule)); in getUidFirewallRuleChangedLog()
[all …]
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp109 void encode(int tick, AudioStream *chain);
268 void AudioStream::encode(int tick, AudioStream *chain) in encode() argument
312 while (chain) { in encode()
313 if (chain != this) { in encode()
314 data |= chain->mix(buffer, tick - mInterval, tick, mSampleRate); in encode()
316 chain = chain->mNext; in encode()
712 for (AudioStream *chain = mChain; chain->mNext; chain = chain->mNext) { in remove() local
713 if (chain->mNext == stream) { in remove()
718 chain->mNext = stream->mNext; in remove()
734 AudioStream *chain = mGroup->mChain; in threadLoop() local
[all …]
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator_test.cpp111 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkManagementServiceTest.java429 BiFunction<Integer, Integer, String> errorMsg = (chain, state) -> { in testFirewallChains()
431 valueToString(INetd.class, "FIREWALL_CHAIN_", chain), in testFirewallChains()
434 for (int chain : chains) { in testFirewallChains()
435 final ArrayMap<Integer, Boolean> expectedValues = expected.get(chain); in testFirewallChains()
436 mNMService.setFirewallChainEnabled(chain, true); in testFirewallChains()
437 verify(mCm).setFirewallChainEnabled(chain, true /* enabled */); in testFirewallChains()
439 mNMService.setFirewallUidRule(chain, TEST_UID, state); in testFirewallChains()
440 assertEquals(errorMsg.apply(chain, state), in testFirewallChains()
443 mNMService.setFirewallChainEnabled(chain, false); in testFirewallChains()
444 verify(mCm).setFirewallChainEnabled(chain, false /* enabled */); in testFirewallChains()
/frameworks/av/services/audioflinger/
DThreads.cpp1157 sp<IAfEffectChain> chain = mEffectChains[i]; in dumpEffectChains_l() local
1158 if (chain != 0) { in dumpEffectChains_l()
1159 chain->dump(fd, args); in dumpEffectChains_l()
1307 sp<IAfEffectChain> chain = getEffectChain_l(sessionId); in setEffectSuspended_l() local
1308 if (chain != 0) { in setEffectSuspended_l()
1310 chain->setEffectSuspended_l(type, suspend); in setEffectSuspended_l()
1312 chain->setEffectSuspendedAll_l(suspend); in setEffectSuspended_l()
1319 void ThreadBase::checkSuspendOnAddEffectChain_l(const sp<IAfEffectChain>& chain) in checkSuspendOnAddEffectChain_l() argument
1321 ssize_t index = mSuspendedSessions.indexOfKey(chain->sessionId()); in checkSuspendOnAddEffectChain_l()
1333 chain->setEffectSuspendedAll_l(true); in checkSuspendOnAddEffectChain_l()
[all …]
DAudioFlinger.cpp2444 sp<IAfEffectChain> chain = getOrphanEffectChain_l(sessionId); in createRecord() local
2445 if (chain != 0) { in createRecord()
2447 thread->addEffectChain_l(chain); in createRecord()
3373 sp<IAfEffectChain> chain; in closeInput_nonvirtual() local
3379 chain = effectChains[0]; in closeInput_nonvirtual()
3382 if (chain != 0) { in closeInput_nonvirtual()
3392 if (t->hasAudioSession(chain->sessionId()) != 0) { in closeInput_nonvirtual()
3395 t->id(), chain->sessionId()); in closeInput_nonvirtual()
3396 t->addEffectChain_l(chain); in closeInput_nonvirtual()
3402 putOrphanEffectChain_l(chain); in closeInput_nonvirtual()
[all …]
/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
DTraceInjectionClassVisitor.java38 MethodVisitor chain = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod() local
39 return new TraceInjectionMethodAdapter(chain, access, name, desc, mParams); in visitMethod()
/frameworks/base/core/java/android/net/http/
DX509TrustManagerExtensions.java95 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/proto_logging/stats/
Dattribution_node.proto25 * This proto represents a node of an attribution chain.
31 // The uid for a given element in the attribution chain.
34 // The (optional) string tag for an element in the attribution chain. If the
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl240 void setFirewallUidRule(int chain, int uid, int rule); in setFirewallUidRule() argument
241 void setFirewallUidRules(int chain, in int[] uids, in int[] rules); in setFirewallUidRules() argument
242 void setFirewallChainEnabled(int chain, boolean enable); in setFirewallChainEnabled() argument
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java189 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/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockFindingClassVisitor.java66 public LockFindingClassVisitor(List<LockTarget> targets, ClassVisitor chain) { in LockFindingClassVisitor() argument
67 super(Utils.ASM_VERSION, chain); in LockFindingClassVisitor()
76 MethodVisitor chain = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod() local
77 return new LockFindingMethodVisitor(this.className, mn, chain); in visitMethod()
89 private MethodVisitor chain; field in LockFindingClassVisitor.LockFindingMethodVisitor
93 public LockFindingMethodVisitor(String owner, MethodNode mn, MethodVisitor chain) { in LockFindingMethodVisitor() argument
97 this.chain = chain; in LockFindingMethodVisitor()
227 mn.accept(chain); in visitEnd()
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java208 public static boolean isChainValid(KeymasterCertificateChain chain) { in isChainValid() argument
209 return chain != null && chain.getCertificates().size() >= 2; in isChainValid()
/frameworks/base/core/tests/coretests/src/android/net/http/
DX509TrustManagerExtensionsTest.java34 public void checkClientTrusted(X509Certificate[] chain, String authType) {} in checkClientTrusted() argument
36 public void checkServerTrusted(X509Certificate[] chain, String authType) {} in checkServerTrusted() argument
/frameworks/base/core/java/android/content/pm/
DSignature.java244 Signature[] chain = new Signature[1 + mCertificateChain.length]; in getChainSignatures() local
245 chain[0] = this; in getChainSignatures()
249 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures()
252 return chain; in getChainSignatures()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java284 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) in engineSetKeyEntry() argument
291 setPrivateKeyEntry(alias, (PrivateKey) key, chain, null); in engineSetKeyEntry()
352 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, in setPrivateKeyEntry() argument
385 if ((chain == null) || (chain.length == 0)) { in setPrivateKeyEntry()
390 X509Certificate[] x509chain = new X509Certificate[chain.length]; in setPrivateKeyEntry()
391 for (int i = 0; i < chain.length; i++) { in setPrivateKeyEntry()
392 if (!"X.509".equals(chain[i].getType())) { in setPrivateKeyEntry()
397 if (!(chain[i] instanceof X509Certificate)) { in setPrivateKeyEntry()
402 x509chain[i] = (X509Certificate) chain[i]; in setPrivateKeyEntry()
418 if (chain.length > 1) { in setPrivateKeyEntry()
[all …]
/frameworks/base/core/java/android/webkit/
DClientCertRequest.java73 public abstract void proceed(PrivateKey privateKey, X509Certificate[] chain); in proceed() argument
/frameworks/base/keystore/java/android/security/
DKeyChain.java871 Collection<X509Certificate> chain = toCertificates(certChainBytes); in getCertificateChain() local
872 ArrayList<X509Certificate> fullChain = new ArrayList<>(chain.size() + 1); in getCertificateChain()
874 fullChain.addAll(chain); in getCertificateChain()
888 List<X509Certificate> chain = store.getCertificateChain(leafCert); in getCertificateChain() local
889 return chain.toArray(new X509Certificate[chain.size()]); in getCertificateChain()
/frameworks/native/libs/input/
DInputConsumer.cpp437 uint32_t chain = 0; in consumeSamples() local
444 seqChain.chain = chain; in consumeSamples()
450 chain = msg.header.seq; in consumeSamples()
454 *outSeq = chain; in consumeSamples()
722 currentSeq = seqChain.chain; in sendFinishedSignal()
737 seqChain.chain = chainSeqs[chainIndex]; in sendFinishedSignal()
944 for (const SeqChain& chain : mSeqChains) { in dump() local
945 out += android::base::StringPrintf(" chain: seq = %" PRIu32 " chain=%" PRIu32, chain.seq, in dump()
946 chain.chain); in dump()

123