Home
last modified time | relevance | path

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

12

/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java46 private final int keyType; field in ImsiEncryptionInfo
51 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
53 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime); in ImsiEncryptionInfo()
57 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
64 this.keyType = keyType; in ImsiEncryptionInfo()
79 keyType = in.readInt(); in ImsiEncryptionInfo()
104 return this.keyType; in getKeyType()
158 dest.writeInt(keyType); in writeToParcel()
169 + ", keyType=" + keyType in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierInfoManager.java69 public static ImsiEncryptionInfo getCarrierInfoForImsiEncryption(int keyType, in getCarrierInfoForImsiEncryption() argument
94 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
96 Log.d(LOG_TAG, "No rows found for keyType: " + keyType); in getCarrierInfoForImsiEncryption()
119 if (!CarrierKeyDownloadManager.isKeyEnabled(keyType, keyAvailabilityBitmask)) { in getCarrierInfoForImsiEncryption()
120 Log.d(LOG_TAG, "Backup key does not have matching keyType. keyType=" + keyType in getCarrierInfoForImsiEncryption()
126 if (keyType == TelephonyManager.KEY_TYPE_EPDG) { in getCarrierInfoForImsiEncryption()
130 } else if (keyType == TelephonyManager.KEY_TYPE_WLAN) { in getCarrierInfoForImsiEncryption()
138 + keyType); in getCarrierInfoForImsiEncryption()
143 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyId, in getCarrierInfoForImsiEncryption()
147 Log.e(LOG_TAG, "More than 1 row found for the keyType: " + keyType); in getCarrierInfoForImsiEncryption()
[all …]
DCarrierKeyDownloadManager.java498 public boolean isKeyEnabled(int keyType) { in isKeyEnabled() argument
500 return isKeyEnabled(keyType, mKeyAvailability); in isKeyEnabled()
507 public static boolean isKeyEnabled(int keyType, int keyAvailability) { in isKeyEnabled() argument
509 int returnValue = (keyAvailability >> (keyType - 1)) & 1; in isKeyEnabled()
DPhoneSubInfoController.java89 public ImsiEncryptionInfo getCarrierInfoForImsiEncryption(int subId, int keyType, in getCarrierInfoForImsiEncryption() argument
93 (phone)-> phone.getCarrierInfoForImsiEncryption(keyType, true)); in getCarrierInfoForImsiEncryption()
/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()
249 KeyType keyType, in getKeyRequest() argument
258 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/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.h155 AMediaDrmKeyStatusType keyType; member
295 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
/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.cpp232 DrmPlugin::KeyType keyType; in invokeDrmDecryptEncryptAPI() local
235 keyType = static_cast<DrmPlugin::KeyType>(mFuzzedDataProvider->ConsumeIntegral<size_t>()); in invokeDrmDecryptEncryptAPI()
237 keyType = kKeyType[mFuzzedDataProvider->ConsumeIntegralInRange<size_t>(0, kNumKeyType - 1)]; in invokeDrmDecryptEncryptAPI()
243 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/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/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()
DMockDrmCryptoPlugin.h64 String8 const &mimeType, KeyType keyType,
/frameworks/base/core/java/android/widget/
DGridLayout.java2294 private final Class<K> keyType;
2297 private Assoc(Class<K> keyType, Class<V> valueType) {
2298 this.keyType = keyType;
2302 public static <K, V> Assoc<K, V> of(Class<K> keyType, Class<V> valueType) {
2303 return new Assoc<K, V>(keyType, valueType);
2313 K[] keys = (K[]) Array.newInstance(keyType, N);
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp138 keyStatus.keyType = static_cast<AMediaDrmKeyStatusType>(drmKeyStatus.type); in sendKeysChange()
415 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, in AMediaDrm_getKeyRequest() argument
434 switch (keyType) { in AMediaDrm_getKeyRequest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleBackupHelper.java228 SharedFileEntryType keyType = getEntryType(entry); in restoreKey() local
230 switch (keyType) { in restoreKey()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DIDrm.h63 String8 const &mimeType, DrmPlugin::KeyType keyType,
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h54 KeyType keyType,
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h233 String8 const &mimeType, KeyType keyType,

12