Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
DJsonWebKeyUnittest.cpp53 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/base/core/tests/coretests/src/android/util/
DSparseDoubleArrayTest.java46 final int[] keys = {1, 6, -14, 53251, 5, -13412, 12, 0, 2}; in testPutGet() local
52 for (int i = 0; i < keys.length; i++) { in testPutGet()
53 sda.put(keys[i], values[i]); in testPutGet()
56 assertEquals("Wrong size array", keys.length, sda.size()); in testPutGet()
58 for (int i = 0; i < keys.length; i++) { in testPutGet()
59 assertEquals("Wrong value at index " + i, values[i], sda.get(keys[i]), EXACT_PRECISION); in testPutGet()
82 final int[] keys = {1, 6, -14, 53251, 5, -13412, 12, 0, 2}; in testKeyValueAt() local
88 for (int i = 0; i < keys.length; i++) { in testKeyValueAt()
89 sda.put(keys[i], values[i]); in testKeyValueAt()
93 final ArrayMap<Integer, Double> map = new ArrayMap<>(keys.length); in testKeyValueAt()
[all …]
DSparseLongArrayTest.java79 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/mediacas/plugins/clearkey/tests/
DClearKeyFetcherTest.cpp94 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/
DParameterUtils.h35 hidl_vec<hidl_string> keys, Callback callback) { in getParameters() argument
36 return object->getParameters(keys, callback); in getParameters()
41 hidl_vec<ParameterValue> keys) { in setParameters() argument
42 return object->setParameters(keys); in setParameters()
47 hidl_vec<hidl_string> keys, Callback callback) {
48 return object->getParameters(context, keys, callback);
53 hidl_vec<ParameterValue> keys) {
54 return object->setParameters(context, keys);
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java166 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 …]
DHealthKeys.java103 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/
DForegroundServicesUserState.java57 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/
DClearKeyFetcher.cpp51 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/
DInstrumentationTestCase.java254 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/mediadrm/plugins/clearkey/default/
DSession.cpp48 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/
DKeySetManagerServiceTest.java415 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageEmpty() local
417 keys.add(keyA); in testAddDefinedKSToPackageEmpty()
418 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageEmpty()
442 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageDoubleAlias() local
444 keys.add(keyA); in testAddDefinedKSToPackageDoubleAlias()
445 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageDoubleAlias()
446 definedKS.put("aliasA2", keys); in testAddDefinedKSToPackageDoubleAlias()
472 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageOrthoUpgr() local
474 keys.add(keyA); in testAddDefinedKSToPackageOrthoUpgr()
475 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageOrthoUpgr()
[all …]
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java55 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/
DEncryptionKeyHelper.java23 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/
DMessageUtilsTest.java55 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/
Dargs_utils.py17 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/services/core/java/com/android/server/pm/
DSnapshotStatistics.java409 int[] keys = mTimeBins.userKeys(); in dumpTimes() local
410 for (int i = 0; i < keys.length; i++) { in dumpTimes()
412 TextUtils.formatSimple("<= %dms", keys[i])); in dumpTimes()
415 TextUtils.formatSimple("> %dms", keys[keys.length - 1])); in dumpTimes()
430 int[] keys = mUseBins.userKeys(); in dumpUsage() local
431 for (int i = 0; i < keys.length; i++) { in dumpUsage()
432 pw.format(Locale.US, " %10s", TextUtils.formatSimple("<= %d", keys[i])); in dumpUsage()
435 TextUtils.formatSimple("> %d", keys[keys.length - 1])); in dumpUsage()
/frameworks/base/core/jni/
Dandroid_backup_FileBackupHelperBase.cpp42 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/
Dandroid_media_Streams.cpp105 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()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp61 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey() argument
63 return keys.find(key) != keys.end(); in hasMetadataKey()
189 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata() local
195 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata()
196 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y) && in getSupportedPerFrameMetadata()
197 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_X) && in getSupportedPerFrameMetadata()
198 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_Y) && in getSupportedPerFrameMetadata()
199 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X) && in getSupportedPerFrameMetadata()
200 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y) && in getSupportedPerFrameMetadata()
201 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::WHITE_POINT_X) && in getSupportedPerFrameMetadata()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDynamicCodeLoggerTests.java136 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/
DSession.cpp54 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/
DBluetoothLeUtils.java116 Set<T> keys = map.keySet(); in equals() local
117 if (!keys.equals(otherMap.keySet())) { in equals()
120 for (T key : keys) { in equals()
/frameworks/base/media/java/android/media/
DMediaMuxer.java298 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument
649 String[] keys = null; in addTrack() local
653 keys = new String[mapSize]; in addTrack()
657 keys[i] = entry.getKey(); in addTrack()
661 trackIndex = nativeAddTrack(mNativeObject, keys, values); in addTrack()
/frameworks/base/packages/SystemUI/src/com/android/systemui/backup/
DBackupHelper.kt69 val keys = PeopleBackupHelper.getFilesToBackup() in onCreate() constant
71 this, userHandle, keys.toTypedArray())) in onCreate()
99 ) : FileBackupHelper(context, *fileNamesAndPostProcess.keys.toTypedArray()) {

12345678910>>...12