/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
D | JsonWebKeyUnittest.cpp | 53 void verifyKeys(const KeyMap& keys, const String8* clearKeys) { in verifyKeys() argument 54 if (keys.isEmpty()) { in verifyKeys() 59 for (size_t i = 0; i < keys.size(); ++i) { in verifyKeys() 60 stringFromVector(keys.valueAt(i), &keyString); in verifyKeys() 76 KeyMap keys; in TEST_F() local 77 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 78 EXPECT_TRUE(keys.isEmpty()); in TEST_F() 98 KeyMap keys; in TEST_F() local 99 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 100 EXPECT_TRUE(keys.isEmpty()); in TEST_F() [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/tests/ |
D | ClearKeyFetcherTest.cpp | 94 std::vector<KeyFetcher::KeyInfo> keys; in TEST_F() local 95 EXPECT_EQ(OK, fetcher.ObtainKey(ecm_, &asset_id, &keys)); in TEST_F() 96 EXPECT_EQ(2U, keys.size()); in TEST_F() 97 EXPECT_EQ(0, keys[0].key_id); in TEST_F() 98 EXPECT_EQ(content_key_[0]->size(), keys[0].key_bytes->size()); in TEST_F() 100 keys[0].key_bytes->data(), content_key_[0]->size())); in TEST_F() 101 EXPECT_EQ(1, keys[1].key_id); in TEST_F() 102 EXPECT_EQ(content_key_[1]->size(), keys[1].key_bytes->size()); in TEST_F() 104 keys[1].key_bytes->data(), content_key_[1]->size())); in TEST_F()
|
/frameworks/av/media/libaudiohal/impl/ |
D | VersionUtils.h | 36 hidl_vec<hidl_string> keys, Callback callback) { in getParameters() argument 37 return object->getParameters(keys, callback); in getParameters() 42 hidl_vec<ParameterValue> keys) { in setParameters() argument 43 return object->setParameters(keys); in setParameters() 48 hidl_vec<hidl_string> keys, Callback callback) { 49 return object->getParameters(context, keys, callback); 54 hidl_vec<ParameterValue> keys) { 55 return object->setParameters(context, keys);
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStatsWriter.java | 166 int[] keys; in flattenToParcel() local 173 keys = mConstants.getKeys(HealthKeys.TYPE_TIMER); in flattenToParcel() 174 for (int i=0; i<keys.length; i++) { in flattenToParcel() 176 out.writeInt(keys[i]); in flattenToParcel() 184 keys = mConstants.getKeys(HealthKeys.TYPE_MEASUREMENT); in flattenToParcel() 185 for (int i=0; i<keys.length; i++) { in flattenToParcel() 187 out.writeInt(keys[i]); in flattenToParcel() 194 keys = mConstants.getKeys(HealthKeys.TYPE_STATS); in flattenToParcel() 195 for (int i=0; i<keys.length; i++) { in flattenToParcel() 197 out.writeInt(keys[i]); in flattenToParcel() [all …]
|
D | HealthKeys.java | 103 final SortedIntArray[] keys = new SortedIntArray[mKeys.length]; in Constants() local 104 for (int i=0; i<keys.length; i++) { in Constants() 105 keys[i] = new SortedIntArray(N); in Constants() 113 if (type >= keys.length) { in Constants() 118 keys[type].addValue(field.getInt(null)); in Constants() 126 for (int i=0; i<keys.length; i++) { in Constants() 127 mKeys[i] = keys[i].getArray(); in Constants()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesUserState.java | 57 final ArraySet<Integer> keys = mAppOps.get(pkg); in removeOp() local 58 if (keys == null) { in removeOp() 61 found = keys.remove(op); in removeOp() 62 if (keys.size() == 0) { in removeOp() 103 final ArraySet<String> keys = map.get(pkg); in removeNotification() local 104 if (keys == null) { in removeNotification() 107 found = keys.remove(key); in removeNotification() 108 if (keys.size() == 0) { in removeNotification()
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | ClearKeyFetcher.cpp | 51 uint64_t* asset_id, std::vector<KeyInfo>* keys) { in ObtainKey() argument 53 CHECK(keys); in ObtainKey() 56 keys->clear(); in ObtainKey() 105 keys->resize(container.descriptor_size()); in ObtainKey() 112 keys->clear(); in ObtainKey() 121 keys->at(key.key_id & 1) = key; in ObtainKey()
|
/frameworks/base/test-base/src/android/test/ |
D | InstrumentationTestCase.java | 254 final String[] keys = keysSequence.split(" "); in sendKeys() local 255 final int count = keys.length; in sendKeys() 260 String key = keys[i]; in sendKeys() 305 public void sendKeys(int... keys) { in sendKeys() argument 306 final int count = keys.length; in sendKeys() 311 instrumentation.sendKeyDownUpSync(keys[i]); in sendKeys() 329 public void sendRepeatedKeys(int... keys) { in sendRepeatedKeys() argument 330 final int count = keys.length; in sendRepeatedKeys() 339 final int keyCount = keys[i]; in sendRepeatedKeys() 340 final int keyCode = keys[i + 1]; in sendRepeatedKeys()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | SparseLongArrayTest.java | 79 final int[] keys = new int[size]; in generateRandomKeys() local 80 keys[0] = -1 * mRandom.nextInt(size * 500); in generateRandomKeys() 82 keys[i] = keys[i - 1] + 1 + mRandom.nextInt(1000); in generateRandomKeys() 83 assertTrue(keys[i] > keys[i - 1]); in generateRandomKeys() 85 return keys; in generateRandomKeys()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | Session.cpp | 48 KeyMap keys; in provideKeyResponse() local 52 if (parser.extractKeysFromJsonWebKeySet(responseString, &keys)) { in provideKeyResponse() 53 for (size_t i = 0; i < keys.size(); ++i) { in provideKeyResponse() 54 const KeyMap::key_type& keyId = keys.keyAt(i); in provideKeyResponse() 55 const KeyMap::value_type& key = keys.valueAt(i); in provideKeyResponse()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 413 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageEmpty() local 415 keys.add(keyA); in testAddDefinedKSToPackageEmpty() 416 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageEmpty() 440 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageDoubleAlias() local 442 keys.add(keyA); in testAddDefinedKSToPackageDoubleAlias() 443 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageDoubleAlias() 444 definedKS.put("aliasA2", keys); in testAddDefinedKSToPackageDoubleAlias() 470 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageOrthoUpgr() local 472 keys.add(keyA); in testAddDefinedKSToPackageOrthoUpgr() 473 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageOrthoUpgr() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | FileBackupHelperBase.java | 55 ParcelFileDescriptor newState, String[] files, String[] keys) { in performBackup_checked() argument 66 if (files.length != keys.length) { in performBackup_checked() 68 + " keys.length=" + keys.length); in performBackup_checked() 77 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys); in performBackup_checked() 124 long data, FileDescriptor newState, String[] files, String[] keys); in performBackup_native() argument
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | EncryptionKeyHelper.java | 23 import com.android.server.backup.encryption.keys.RecoverableKeyStoreSecondaryKey; 24 import com.android.server.backup.encryption.keys.RecoverableKeyStoreSecondaryKeyManager; 25 import com.android.server.backup.encryption.keys.TertiaryKeyManager; 26 import com.android.server.backup.encryption.keys.TertiaryKeyRotationScheduler;
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | MessageUtilsTest.java | 55 private SparseArray<String> makeSparseArray(int[] keys, String[] values) throws Exception { in makeSparseArray() argument 56 assertEquals("Must specify same number of keys and values", keys.length, values.length); in makeSparseArray() 58 for (int i = 0; i < keys.length; i++) { in makeSparseArray() 59 out.put(keys[i], values[i]); in makeSparseArray()
|
/frameworks/base/startop/scripts/app_startup/lib/ |
D | args_utils.py | 17 def dict_lookup_any_key(dictionary: dict, *keys: List[Any]): 18 for k in keys: 24 keys)) 69 for illegal_key in set(src_d.keys()) - set(dst_nt._fields):
|
/frameworks/base/core/jni/ |
D | android_backup_FileBackupHelperBase.cpp | 42 jobject newState, jobjectArray files, jobjectArray keys) in performBackup_native() argument 57 const int keyCount = env->GetArrayLength(keys); in performBackup_native() 60 keysUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), NULL); in performBackup_native() 71 env->ReleaseStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), keysUTF[i]); in performBackup_native()
|
/frameworks/base/media/jni/ |
D | android_media_Streams.cpp | 105 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToKeyedVector() argument 110 if (keys != NULL && values != NULL) { in ConvertKeyValueArraysToKeyedVector() 111 nKeyValuePairs = env->GetArrayLength(keys); in ConvertKeyValueArraysToKeyedVector() 116 failed = ((keys != NULL && values == NULL) || in ConvertKeyValueArraysToKeyedVector() 117 (keys == NULL && values != NULL)); in ConvertKeyValueArraysToKeyedVector() 129 jstring key = (jstring) env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToKeyedVector() 359 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToMessage() argument 376 if (keys != NULL) { in ConvertKeyValueArraysToMessage() 381 numEntries = env->GetArrayLength(keys); in ConvertKeyValueArraysToMessage() 391 jobject keyObj = env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToMessage()
|
D | android_media_Streams.h | 59 JNIEnv *env, jobjectArray keys, jobjectArray values, 67 JNIEnv *env, jobjectArray keys, jobjectArray values,
|
/frameworks/base/media/java/android/media/ |
D | MediaMuxer.java | 297 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument 648 String[] keys = null; in addTrack() local 652 keys = new String[mapSize]; in addTrack() 656 keys[i] = entry.getKey(); in addTrack() 660 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DynamicCodeLoggerTests.java | 136 assertThat(mMessagesForUid.keys()).containsExactly(OWNER_UID); in testOneLoader_ownFile_withFileHash() 151 assertThat(mMessagesForUid.keys()).containsExactly(OWNER_UID); in testOneLoader_ownFile_noFileHash() 167 assertThat(mMessagesForUid.keys()).containsExactly(OWNER_UID); in testOneLoader_ownFile_hashingFails() 205 assertThat(mMessagesForUid.keys()).containsExactly(1001); in testOneLoader_differentOwner() 229 assertThat(mMessagesForUid.keys()).containsExactly(OWNER_UID); in testNativeCodeLoad() 252 assertThat(mMessagesForUid.keys()).containsExactly(1001, 1001, 1002, OWNER_UID); in testMultipleLoadersAndFiles()
|
/frameworks/ml/nn/runtime/test/specs/V1_0/ |
D | hashtable_lookup_float.mod.py | 18 keys = 3 variable 30 key = Input("key", "TENSOR_INT32", "{%d}" % (keys))
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | Session.cpp | 54 KeyMap keys; in provideKeyResponse() local 58 if (parser.extractKeysFromJsonWebKeySet(responseString, &keys)) { in provideKeyResponse() 59 for (auto &key : keys) { in provideKeyResponse()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeUtils.java | 116 Set<T> keys = map.keySet(); in equals() local 117 if (!keys.equals(otherMap.keySet())) { in equals() 120 for (T key : keys) { in equals()
|
/frameworks/ml/nn/runtime/test/specs/V1_1/ |
D | hashtable_lookup_float_relaxed.mod.py | 18 keys = 3 variable 30 key = Input("key", "TENSOR_INT32", "{%d}" % (keys))
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayReferenceMapperTests.kt | 75 target.packageName to target.overlayables.keys in <lambda>() 78 target.packageName to target.overlayables.keys in <lambda>() 121 target0.packageName to target0.overlayables.keys, in <lambda>() 122 target1.packageName to target1.overlayables.keys in <lambda>() 186 mockTarget().run { packageName to overlayables.keys } in <lambda>()
|