Home
last modified time | relevance | path

Searched refs:keyType (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java46 private final int keyType; field in ImsiEncryptionInfo
52 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
54 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime, carrierId); in ImsiEncryptionInfo()
58 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
65 this.keyType = keyType; in ImsiEncryptionInfo()
81 keyType = in.readInt(); in ImsiEncryptionInfo()
112 return this.keyType; in getKeyType()
166 dest.writeInt(keyType); in writeToParcel()
178 + ", keyType=" + keyType in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierInfoManager.java69 public static ImsiEncryptionInfo getCarrierInfoForImsiEncryption(int keyType, in getCarrierInfoForImsiEncryption() argument
96 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
98 Log.d(LOG_TAG, "No rows found for keyType: " + keyType); in getCarrierInfoForImsiEncryption()
121 if (!CarrierKeyDownloadManager.isKeyEnabled(keyType, keyAvailabilityBitmask)) { in getCarrierInfoForImsiEncryption()
122 Log.d(LOG_TAG, "Backup key does not have matching keyType. keyType=" + keyType in getCarrierInfoForImsiEncryption()
128 if (keyType == TelephonyManager.KEY_TYPE_EPDG) { in getCarrierInfoForImsiEncryption()
132 } else if (keyType == TelephonyManager.KEY_TYPE_WLAN) { in getCarrierInfoForImsiEncryption()
140 + keyType); in getCarrierInfoForImsiEncryption()
145 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyId, in getCarrierInfoForImsiEncryption()
149 Log.e(LOG_TAG, "More than 1 row found for the keyType: " + keyType); in getCarrierInfoForImsiEncryption()
[all …]
DCarrierKeyDownloadManager.java520 public boolean isKeyEnabled(int keyType) { in isKeyEnabled() argument
522 return isKeyEnabled(keyType, mKeyAvailability); in isKeyEnabled()
529 public static boolean isKeyEnabled(int keyType, int keyAvailability) { in isKeyEnabled() argument
531 int returnValue = (keyAvailability >> (keyType - 1)) & 1; in isKeyEnabled()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DInitDataParser.cpp49 V1_0::KeyType keyType, in parse() argument
73 if (keyType == V1_0::KeyType::RELEASE) { in parse()
78 std::string requestJson = generateRequest(keyType, keyIds); in parse()
150 std::string InitDataParser::generateRequest(V1_0::KeyType keyType, in generateRequest() argument
168 if (keyType == V1_0::KeyType::STREAMING) { in generateRequest()
170 } else if (keyType == V1_0::KeyType::OFFLINE || in generateRequest()
171 keyType == V1_0::KeyType::RELEASE) { in generateRequest()
DDrmPlugin.cpp175 KeyType keyType, in getKeyRequestCommon() argument
186 if (keyType == KeyType::OFFLINE && 0 == initData.size()) { in getKeyRequestCommon()
195 (keyType != KeyType::STREAMING && in getKeyRequestCommon()
196 keyType != KeyType::OFFLINE && in getKeyRequestCommon()
197 keyType != KeyType::RELEASE)) { in getKeyRequestCommon()
203 if (keyType == KeyType::STREAMING || keyType == KeyType::OFFLINE) { in getKeyRequestCommon()
216 session->getKeyRequest(initData, mimeType, keyType, request)); in getKeyRequestCommon()
218 if (keyType == KeyType::RELEASE) { in getKeyRequestCommon()
248 KeyType keyType, in getKeyRequest() argument
257 scope, initData, mimeType, keyType, optionalParameters, in getKeyRequest()
[all …]
DSession.cpp45 V1_0::KeyType keyType, in getKeyRequest() argument
48 return parser.parse(initData, mimeType, keyType, keyRequest); in getKeyRequest()
/frameworks/base/keystore/java/android/security/
DKeyPairGeneratorSpec.java113 public KeyPairGeneratorSpec(Context context, String keyStoreAlias, String keyType, int keySize, in KeyPairGeneratorSpec() argument
138 mKeyType = keyType; in KeyPairGeneratorSpec()
331 public Builder setKeyType(@NonNull @KeyProperties.KeyAlgorithmEnum String keyType) in setKeyType() argument
333 if (keyType == null) { in setKeyType()
337 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm(keyType); in setKeyType()
339 throw new NoSuchAlgorithmException("Unsupported key type: " + keyType); in setKeyType()
342 mKeyType = keyType; in setKeyType()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DInitDataParser.cpp44 CdmKeyType keyType, in parse() argument
66 if (keyType == clearkeydrm::KEY_TYPE_RELEASE) { in parse()
71 std::string requestJson = generateRequest(keyType, keyIds); in parse()
140 std::string InitDataParser::generateRequest(CdmKeyType keyType, in generateRequest() argument
158 if (keyType == clearkeydrm::KEY_TYPE_STREAMING) { in generateRequest()
160 } else if (keyType == clearkeydrm::KEY_TYPE_OFFLINE || in generateRequest()
161 keyType == clearkeydrm::KEY_TYPE_RELEASE) { in generateRequest()
DSession.cpp33 CdmKeyType keyType, in getKeyRequest() argument
36 return parser.parse(initData, mimeType, keyType, keyRequest); in getKeyRequest()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/
DInitDataParser.h27 CdmKeyType keyType, std::vector<uint8_t>* licenseRequest);
35 std::string generateRequest(CdmKeyType keyType, const std::vector<const uint8_t*>& keyIds);
DSession.h38 CdmKeyType keyType,
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DInitDataParser.h38 V1_0::KeyType keyType,
47 std::string generateRequest(V1_0::KeyType keyType,
DDrmPlugin.h87 KeyType keyType,
95 KeyType keyType,
103 KeyType keyType,
400 KeyType keyType,
DSession.h50 V1_0::KeyType keyType,
/frameworks/av/media/ndk/include/media/
DNdkMediaDrm.h190 AMediaDrmKeyStatusType keyType; member
336 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
400 const char *mimeType, AMediaDrmKeyType keyType,
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/fuzzer/
DREADME.md14 3. Key Type (parameter name: `keyType`)
21 | `keyType` | 0.`KeyType::OFFLINE` 1.`KeyType::STREAMING` 2.`KeyType::RELEASE` | Value obtained fro…
DclearkeyV1.4_fuzzer.cpp367 KeyType keyType = mFDP->ConsumeBool() in invokeDrmDecryptEncryptAPI() local
372 mSessionId, initData, mimeType, keyType, optionalParameters, in invokeDrmDecryptEncryptAPI()
376 mSessionIdV1, initData, mimeType, keyType, optionalParameters, in invokeDrmDecryptEncryptAPI()
382 keyType, optionalParameters, in invokeDrmDecryptEncryptAPI()
/frameworks/av/drm/libmediadrm/fuzzer/
DREADME.md14 3. Key Type (parameter name: `keyType`)
21 | `keyType` | 0.`DrmPlugin::kKeyType_Offline` 1.`DrmPlugin::kKeyType_Streaming` 2.`DrmPlugin::kKeyT…
Dmediadrm_fuzzer.cpp236 DrmPlugin::KeyType keyType; in invokeDrmDecryptEncryptAPI() local
239 keyType = static_cast<DrmPlugin::KeyType>(mFuzzedDataProvider->ConsumeIntegral<size_t>()); in invokeDrmDecryptEncryptAPI()
241 keyType = kKeyType[mFuzzedDataProvider->ConsumeIntegralInRange<size_t>(0, kNumKeyType - 1)]; in invokeDrmDecryptEncryptAPI()
247 mDrm->getKeyRequest(mSessionId, initData, mimeType, keyType, mdOptionalParameters, keyRequest, in invokeDrmDecryptEncryptAPI()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DDrmPlugin.cpp87 KeyType keyType, in getKeyRequest() argument
97 if (keyType != kKeyType_Streaming) { in getKeyRequest()
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp73 String8 const& mimeType, DrmPlugin::KeyType keyType, in getKeyRequest() argument
78 return mDrmHalAidl->getKeyRequest(sessionId, initData, mimeType, keyType, in getKeyRequest()
80 return mDrmHalHidl->getKeyRequest(sessionId, initData, mimeType, keyType, optionalParameters, in getKeyRequest()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp169 jclass keyType);
766 jclass keyType) { in CameraMetadata_getAllVendorKeys() argument
799 if (env->IsSameObject(keyType, gMetadataOffsets.mCharacteristicsKey)) { in CameraMetadata_getAllVendorKeys()
802 } else if (env->IsSameObject(keyType, gMetadataOffsets.mResultKey)) { in CameraMetadata_getAllVendorKeys()
805 } else if (env->IsSameObject(keyType, gMetadataOffsets.mRequestKey)) { in CameraMetadata_getAllVendorKeys()
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneSubInfo.aidl147 ImsiEncryptionInfo getCarrierInfoForImsiEncryption(int subId, int keyType, in getCarrierInfoForImsiEncryption() argument
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp140 keyStatus.keyType = static_cast<AMediaDrmKeyStatusType>(drmKeyStatus.type); in sendKeysChange()
417 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, in AMediaDrm_getKeyRequest() argument
422 scope, init, initSize, mimeType, keyType, optionalParameters, in AMediaDrm_getKeyRequest()
430 const char *mimeType, AMediaDrmKeyType keyType, in AMediaDrm_getKeyRequestWithDefaultUrlAndType() argument
451 switch (keyType) { in AMediaDrm_getKeyRequestWithDefaultUrlAndType()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp114 String8 const &mimeType, KeyType keyType, in getKeyRequest() argument
123 keyType, stringMapToString(optionalParameters).string()); in getKeyRequest()
141 keyTypeStr.appendFormat("%d", (int)keyType); in getKeyRequest()

123