Searched defs:keys (Results 1 - 25 of 84) sorted by relevance

1234

/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyFetcher.cpp51 uint64_t* asset_id, std::vector<KeyInfo>* keys) {
53 CHECK(keys);
56 keys->clear();
75 "content keys have same parity, id0=%d, id1=%d",
105 keys->resize(container.descriptor_size());
112 keys->clear();
116 // should be keys[1].
121 keys->at(key.key_id & 1) = key;
50 ObtainKey(const sp<ABuffer>& buffer, uint64_t* asset_id, std::vector<KeyInfo>* keys) argument
/frameworks/av/drm/mediacas/plugins/clearkey/tests/
H A DClearKeyFetcherTest.cpp94 std::vector<KeyFetcher::KeyInfo> keys; local
95 EXPECT_EQ(OK, fetcher.ObtainKey(ecm_, &asset_id, &keys));
96 EXPECT_EQ(2, keys.size());
97 EXPECT_EQ(0, keys[0].key_id);
98 EXPECT_EQ(content_key_[0]->size(), keys[0].key_bytes->size());
100 keys[0].key_bytes->data(), content_key_[0]->size()));
101 EXPECT_EQ(1, keys[1].key_id);
102 EXPECT_EQ(content_key_[1]->size(), keys[1].key_bytes->size());
104 keys[1].key_bytes->data(), content_key_[1]->size()));
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
H A DJsonWebKeyUnittest.cpp53 void verifyKeys(const KeyMap& keys, const String8* clearKeys) { argument
54 if (keys.isEmpty()) {
59 for (size_t i = 0; i < keys.size(); ++i) {
60 stringFromVector(keys.valueAt(i), &keyString);
76 KeyMap keys; local
77 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys));
78 EXPECT_TRUE(keys.isEmpty());
98 KeyMap keys; local
99 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys));
100 EXPECT_TRUE(keys
120 KeyMap keys; local
145 KeyMap keys; local
183 KeyMap keys; local
193 KeyMap keys; local
212 KeyMap keys; local
241 KeyMap keys; local
272 KeyMap keys; local
311 KeyMap keys; local
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
H A DAbstractPreferenceController.java43 * Updates non-indexable keys for search provider.
47 public void updateNonIndexableKeys(List<String> keys) { argument
49 keys.add(getPreferenceKey());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeTunerService.java31 public void addTunable(Tunable tunable, String... keys) { argument
32 for (String key : keys) {
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java101 public static Bundle checkUserRestrictions(String... keys) { argument
102 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys));
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DSession.cpp48 KeyMap keys; local
52 if (parser.extractKeysFromJsonWebKeySet(responseString, &keys)) {
53 for (size_t i = 0; i < keys.size(); ++i) {
54 const KeyMap::key_type& keyId = keys.keyAt(i);
55 const KeyMap::value_type& key = keys.valueAt(i);
H A DJsonWebKey.cpp26 const android::String8 kKeysTag("keys");
47 * pairs from the JSON Web Key Set. Both key ids and keys are base64url
53 KeyMap* keys) {
55 keys->clear();
61 // all the base64 encoded keys. Each key is also stored separately as
63 // number of keys in the set.
95 keys->add(decodedKeyId, decodedKey);
172 ALOGE("JSON Web Key does not contain keys.");
52 extractKeysFromJsonWebKeySet(const String8& jsonWebKeySet, KeyMap* keys) argument
/frameworks/av/media/libaudiohal/
H A DConversionHelperHidl.cpp30 status_t ConversionHelperHidl::keysFromHal(const String8& keys, hidl_vec<hidl_string> *hidlKeys) { argument
31 AudioParameter halKeys(keys);
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DMessageUtilsTest.java55 private SparseArray<String> makeSparseArray(int[] keys, String[] values) throws Exception { argument
56 assertEquals("Must specify same number of keys and values", keys.length, values.length);
58 for (int i = 0; i < keys.length; i++) {
59 out.put(keys[i], values[i]);
/frameworks/base/legacy-test/src/android/test/
H A DInstrumentationTestCase.java246 * of keys is a string containing the key names as specified in KeyEvent, without the
251 * @param keysSequence The sequence of keys.
254 final String[] keys = keysSequence.split(" ");
255 final int count = keys.length;
260 String key = keys[i];
303 * @param keys The series of key codes to send through instrumentation.
305 public void sendKeys(int... keys) { argument
306 final int count = keys.length;
311 instrumentation.sendKeyDownUpSync(keys[i]);
327 * @param keys Th
329 sendRepeatedKeys(int... keys) argument
[all...]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
H A DBrowseFragmentTest.java215 private void sendKeys(int ...keys) { argument
216 for (int i = 0; i < keys.length; i++) {
217 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(keys[i]);
H A DBrowseSupportFragmentTest.java218 private void sendKeys(int ...keys) { argument
219 for (int i = 0; i < keys.length; i++) {
220 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(keys[i]);
H A DSingleFragmentTestBase.java38 public void sendKeys(int ...keys) { argument
39 for (int i = 0; i < keys.length; i++) {
40 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(keys[i]);
H A DSingleSupportFragmentTestBase.java41 public void sendKeys(int ...keys) { argument
42 for (int i = 0; i < keys.length; i++) {
43 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(keys[i]);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DDatePickerTest.java378 private void sendKeys(int ...keys) { argument
379 for (int i = 0; i < keys.length; i++) {
380 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(keys[i]);
/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java49 public BlobBackupHelper(int currentBlobVersion, String... keys) { argument
51 mKeys = keys;
70 * for restore in lexical order by key, <i>not</i> in the order in which the keys
84 * [Int=N] : number of keys represented in the state blob
101 Log.i(TAG, " " + numKeys + " keys in state record");
H A DFileBackupHelperBase.java54 ParcelFileDescriptor newState, String[] files, String[] keys) {
64 // the length of files and keys must be the same
65 if (files.length != keys.length) {
67 + " keys.length=" + keys.length);
76 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys);
122 long data, FileDescriptor newState, String[] files, String[] keys);
53 performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState, String[] files, String[] keys) argument
121 performBackup_native(FileDescriptor oldState, long data, FileDescriptor newState, String[] files, String[] keys) argument
H A DWallpaperBackupHelper.java69 // Use old keys to keep legacy data compatibility and avoid writing two wallpapers
96 public WallpaperBackupHelper(Context context, String[] files, String[] keys) { argument
101 mKeys = keys;
/frameworks/base/core/jni/
H A Dandroid_backup_FileBackupHelperBase.cpp42 jobject newState, jobjectArray files, jobjectArray keys)
57 const int keyCount = env->GetArrayLength(keys);
60 keysUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), NULL);
71 env->ReleaseStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), keysUTF[i]);
41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, jlong data, jobject newState, jobjectArray files, jobjectArray keys) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DExtensionController.java55 String[] keys(); method in interface:ExtensionController.TunerFactory
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DNavBarTuner.java112 private void addTunable(Tunable tunable, String... keys) { argument
114 Dependency.get(TunerService.class).addTunable(tunable, keys);
H A DTunerService.java49 public abstract void addTunable(Tunable tunable, String... keys); argument
H A DTunerServiceImpl.java64 // Map of Uris we listen on to their settings keys.
66 // Map of settings keys to the listener.
150 public void addTunable(Tunable tunable, String... keys) { argument
151 for (String key : keys) {
/frameworks/base/services/core/java/com/android/server/notification/
H A DGroupHelper.java40 // Map of user : <Map of package : notification keys>. Only contains notifications that are not
143 private void adjustNotificationBundling(List<String> keys, boolean group) { argument
144 for (String key : keys) {

Completed in 431 milliseconds

1234