/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 | 55 final ArraySet<Integer> keys = mAppOps.get(pkg); in removeOp() local 56 if (keys == null) { in removeOp() 59 found = keys.remove(op); in removeOp() 60 if (keys.size() == 0) { in removeOp() 101 final ArraySet<String> keys = map.get(pkg); in removeNotification() local 102 if (keys == null) { in removeNotification() 105 found = keys.remove(key); in removeNotification() 106 if (keys.size() == 0) { in removeNotification()
|
/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/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/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/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/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/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/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/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/java/android/media/ |
D | MediaMuxer.java | 297 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument 625 String[] keys = null; in addTrack() local 629 keys = new String[mapSize]; in addTrack() 633 keys[i] = entry.getKey(); in addTrack() 637 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
|
/frameworks/base/media/jni/ |
D | android_media_Streams.cpp | 166 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToKeyedVector() argument 171 if (keys != NULL && values != NULL) { in ConvertKeyValueArraysToKeyedVector() 172 nKeyValuePairs = env->GetArrayLength(keys); in ConvertKeyValueArraysToKeyedVector() 177 failed = ((keys != NULL && values == NULL) || in ConvertKeyValueArraysToKeyedVector() 178 (keys == NULL && values != NULL)); in ConvertKeyValueArraysToKeyedVector() 190 jstring key = (jstring) env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToKeyedVector() 420 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToMessage() argument 437 if (keys != NULL) { in ConvertKeyValueArraysToMessage() 442 numEntries = env->GetArrayLength(keys); in ConvertKeyValueArraysToMessage() 452 jobject keyObj = env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToMessage()
|
/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/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_0/ |
D | hashtable_lookup_quant8.mod.py | 18 keys = 3 variable 30 key = Input("key", "TENSOR_INT32", "{%d}" % (keys))
|
D | hashtable_lookup_float.mod.py | 18 keys = 3 variable 30 key = Input("key", "TENSOR_INT32", "{%d}" % (keys))
|
/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/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 58 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey() argument 60 return keys.find(key) != keys.end(); in hasMetadataKey() 411 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata() local 417 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata() 418 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y) && in getSupportedPerFrameMetadata() 419 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_X) && in getSupportedPerFrameMetadata() 420 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_Y) && in getSupportedPerFrameMetadata() 421 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X) && in getSupportedPerFrameMetadata() 422 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y) && in getSupportedPerFrameMetadata() 423 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::WHITE_POINT_X) && in getSupportedPerFrameMetadata() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImplTest.java | 90 String[] keys = new String[] { "key1", "key2" }; in testTuner() local 93 public String[] keys() { in testTuner() 94 return keys; in testTuner() 105 verify(mTunerService).addTunable(any(), eq(keys[0]), eq(keys[1])); in testTuner()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtils.java | 158 SecretKey recoveryKey, Map<String, Pair<SecretKey, byte[]>> keys) in encryptKeysWithRecoveryKey() argument 161 for (String alias : keys.keySet()) { in encryptKeysWithRecoveryKey() 162 SecretKey key = keys.get(alias).first; in encryptKeysWithRecoveryKey() 163 byte[] metadata = keys.get(alias).second; in encryptKeysWithRecoveryKey()
|