Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DPackageKeySetData.java44 protected void setProperSigningKeySet(long ks) { in setProperSigningKeySet() argument
45 mProperSigningKeySet = ks; in setProperSigningKeySet()
59 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet() local
60 if (ks != null) { in addUpgradeKeySet()
61 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySet()
73 protected void addUpgradeKeySetById(long ks) { in addUpgradeKeySetById() argument
74 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySetById()
105 protected void addDefinedKeySet(long ks, String alias) { in addDefinedKeySet() argument
106 mKeySetAliases.put(alias, ks); in addDefinedKeySet()
DKeySetManagerService.java131 public boolean packageIsSignedByLPr(String packageName, KeySetHandle ks) { in packageIsSignedByLPr() argument
139 long id = getIdByKeySetLPr(ks); in packageIsSignedByLPr()
157 public boolean packageIsSignedByExactlyLPr(String packageName, KeySetHandle ks) { in packageIsSignedByExactlyLPr() argument
167 long id = getIdByKeySetLPr(ks); in packageIsSignedByExactlyLPr()
258 KeySetHandle ks = addKeySetLPw(signingKeys); in addSigningKeySetToPackageLPw() local
259 long id = ks.getId(); in addSigningKeySetToPackageLPw()
268 private long getIdByKeySetLPr(KeySetHandle ks) { in getIdByKeySetLPr() argument
271 if (ks.equals(value)) { in getIdByKeySetLPr()
293 KeySetHandle ks = addKeySetLPw(pubKeys); in addDefinedKeySetsToPackageLPw() local
294 newKeySetAliases.put(alias, ks.getId()); in addDefinedKeySetsToPackageLPw()
[all …]
DPackageManagerService.java23375 public boolean isPackageSignedByKeySet(String packageName, KeySet ks) {
23380 if (packageName == null || ks == null) {
23391 IBinder ksh = ks.getToken();
23401 public boolean isPackageSignedByKeySetExactly(String packageName, KeySet ks) {
23406 if (packageName == null || ks == null) {
23417 IBinder ksh = ks.getToken();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java436 void handleKeepaliveStarted(final int slot, KeepaliveStatus ks) { in handleKeepaliveStarted() argument
437 switch (ks.statusCode) { in handleKeepaliveStarted()
440 keepaliveStatusErrorToPacketKeepaliveError(ks.errorCode)); in handleKeepaliveStarted()
448 + ks.sessionHandle + " slot = " + slot); in handleKeepaliveStarted()
449 mKeepalives.put(ks.sessionHandle, in handleKeepaliveStarted()
451 slot, ks.statusCode)); in handleKeepaliveStarted()
454 logd("Invalid KeepaliveStatus Code: " + ks.statusCode); in handleKeepaliveStarted()
459 void handleKeepaliveStatus(KeepaliveStatus ks) { in handleKeepaliveStatus() argument
461 kr = mKeepalives.get(ks.sessionHandle); in handleKeepaliveStatus()
467 loge("Discarding keepalive event for different data connection:" + ks); in handleKeepaliveStatus()
[all …]
DDataConnection.java2497 KeepaliveStatus ks = (KeepaliveStatus) ar.result; in processMessage() local
2498 if (ks == null) { in processMessage()
2501 mNetworkAgent.keepaliveTracker.handleKeepaliveStarted(slot, ks); in processMessage()
2514 KeepaliveStatus ks = (KeepaliveStatus) ar.result; in processMessage() local
2515 mNetworkAgent.keepaliveTracker.handleKeepaliveStatus(ks); in processMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DCertificateVerifier.java51 KeyStore ks = KeyStore.getInstance("AndroidCAStore"); in verifyCaCert() local
52 ks.load(null, null); in verifyCaCert()
53 PKIXParameters params = new PKIXParameters(ks); in verifyCaCert()
DPasspointObjectFactory.java184 public TrustManagerImpl getTrustManagerImpl(KeyStore ks) { in getTrustManagerImpl() argument
185 return new TrustManagerImpl(ks); in getTrustManagerImpl()
/frameworks/base/core/java/android/security/net/config/
DRootTrustManagerFactorySpi.java52 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit() argument
53 if (ks != null) { in engineInit()
54 mApplicationConfig = new ApplicationConfig(new KeyStoreConfigSource(ks)); in engineInit()
DKeyStoreConfigSource.java31 public KeyStoreConfigSource(KeyStore ks) { in KeyStoreConfigSource() argument
35 new CertificatesEntryRef(new KeyStoreCertificateSource(ks), false)) in KeyStoreConfigSource()
DKeyStoreCertificateSource.java40 public KeyStoreCertificateSource(KeyStore ks) { in KeyStoreCertificateSource() argument
41 mKeyStore = ks; in KeyStoreCertificateSource()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/
DConfigParser.java450 KeyStore ks = KeyStore.getInstance("PKCS12"); in parsePkcs12() local
452 ks.load(in, new char[0]); in parsePkcs12()
456 if (ks.size() != 1) { in parsePkcs12()
457 throw new IOException("Unexpected key size: " + ks.size()); in parsePkcs12()
460 String alias = ks.aliases().nextElement(); in parsePkcs12()
465 PrivateKey clientKey = (PrivateKey) ks.getKey(alias, null); in parsePkcs12()
467 Certificate[] chain = ks.getCertificateChain(alias); in parsePkcs12()
/frameworks/base/core/java/android/content/pm/
DKeySet.java50 KeySet ks = (KeySet) o; in equals() local
51 return token == ks.token; in equals()
DIPackageManager.aidl674 boolean isPackageSignedByKeySet(String packageName, in KeySet ks); in isPackageSignedByKeySet() argument
675 boolean isPackageSignedByKeySetExactly(String packageName, in KeySet ks); in isPackageSignedByKeySetExactly() argument
DPackageManager.java6519 public abstract boolean isSignedBy(@NonNull String packageName, @NonNull KeySet ks); in isSignedBy() argument
6528 public abstract boolean isSignedByExactly(@NonNull String packageName, @NonNull KeySet ks); in isSignedByExactly() argument
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java124 KeySpec ks = new PBEKeySpec(pwArray, salt, rounds, PBKDF2_KEY_SIZE); in buildCharArrayKey() local
125 return keyFactory.generateSecret(ks); in buildCharArrayKey()
/frameworks/base/identity/java/android/security/identity/
DCredstoreIdentityCredential.java93 KeyStore ks = KeyStore.getInstance("PKCS12"); in ensureEphemeralKeyPair() local
95 ks.load(bais, password); in ensureEphemeralKeyPair()
96 PrivateKey privKey = (PrivateKey) ks.getKey(alias, password); in ensureEphemeralKeyPair()
98 Certificate cert = ks.getCertificate(alias); in ensureEphemeralKeyPair()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java2227 KeySet ks; in testGetSigningKeySet() local
2229 ks = pm.getSigningKeySet(null); in testGetSigningKeySet()
2234 ks = pm.getSigningKeySet("keysets.test.bogus.package"); in testGetSigningKeySet()
2241 ks = pm.getSigningKeySet(otherPkgName); in testGetSigningKeySet()
2247 ks = pm.getSigningKeySet(mContext.getPackageName()); in testGetSigningKeySet()
2248 assertNotNull(ks); in testGetSigningKeySet()
2259 KeySet ks; in testGetKeySetByAlias() local
2261 ks = pm.getKeySetByAlias(null, null); in testGetKeySetByAlias()
2266 ks = pm.getKeySetByAlias(null, "keysetBogus"); in testGetKeySetByAlias()
2271 ks = pm.getKeySetByAlias("keysets.test.bogus.package", null); in testGetKeySetByAlias()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java602 final KeyStore ks = KeyStore.getInstance(); in ensureProfileKeystoreUnlocked() local
603 if (ks.state(userId) == KeyStore.State.LOCKED in ensureProfileKeystoreUnlocked()
677 final KeyStore ks = KeyStore.getInstance();
680 ks.onUserAdded(userHandle, parentHandle);
1145 final KeyStore ks = KeyStore.getInstance(); in setKeystorePassword() local
1148 ks.onUserPasswordChanged(userHandle, passwordString); in setKeystorePassword()
1155 final KeyStore ks = KeyStore.getInstance(); in unlockKeystore() local
1156 ks.unlock(userHandle, passwordString); in unlockKeystore()
2133 final KeyStore ks = KeyStore.getInstance(); in removeUser() local
2134 ks.onUserRemoved(userId); in removeUser()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java832 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument
837 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java873 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument
878 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java968 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument
974 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2643 public boolean isSignedBy(String packageName, KeySet ks) { in isSignedBy() argument
2645 Preconditions.checkNotNull(ks); in isSignedBy()
2647 return mPM.isPackageSignedByKeySet(packageName, ks); in isSignedBy()
2655 public boolean isSignedByExactly(String packageName, KeySet ks) { in isSignedByExactly() argument
2657 Preconditions.checkNotNull(ks); in isSignedByExactly()
2659 return mPM.isPackageSignedByKeySetExactly(packageName, ks); in isSignedByExactly()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioIndication.java994 KeepaliveStatus ks = new KeepaliveStatus(halStatus.sessionHandle, halStatus.code); in keepaliveStatus() local
995 mRil.mNattKeepaliveStatusRegistrants.notifyRegistrants(new AsyncResult(null, ks, null)); in keepaliveStatus()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java2133 KeyStore ks = KeyStore.getInstance("AndroidCAStore"); in verifyCert() local
2134 ks.load(null, null); in verifyCert()
2135 PKIXParameters params = new PKIXParameters(ks); in verifyCert()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java3504 KeySpec ks = new PBEKeySpec(mKey.toCharArray(), mObbInfo.salt, in handleExecute() local
3506 SecretKey key = factory.generateSecret(ks); in handleExecute()

12