Home
last modified time | relevance | path

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

12345678910>>...32

/aosp12/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
H A DJsonWebKeyUnittest.cpp54 if (keys.isEmpty()) { in verifyKeys()
76 KeyMap keys; in TEST_F() local
98 KeyMap keys; in TEST_F() local
120 KeyMap keys; in TEST_F() local
145 KeyMap keys; in TEST_F() local
183 KeyMap keys; in TEST_F() local
193 KeyMap keys; in TEST_F() local
212 KeyMap keys; in TEST_F() local
241 KeyMap keys; in TEST_F() local
272 KeyMap keys; in TEST_F() local
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DExpectedKeyboardBuilder.java73 return keys; in replaceKeyAt()
79 keys.length - 1 - columnIndex); in replaceKeyAt()
91 ExpectedKey[] keys = getRowAt(row); in replaceKeyOf() local
99 keys = replaceKeyAt(keys, columnIndex, replacingKeys); in replaceKeyOf()
101 setRowAt(row, keys); in replaceKeyOf()
118 for (final Object key : keys) { in joinKeys()
140 setRowAt(row, joinKeys(keys)); in setKeysOfRow()
221 final Object ... keys) { in insertKeysAtRow() argument
238 final Object ... keys) { in addKeysOnTheLeftOfRow() argument
256 final Object ... keys) { in addKeysOnTheRightOfRow() argument
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A 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()
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()
94 for (int i = 0; i < keys.length; i++) { in testKeyValueAt()
95 map.put(keys[i], values[i]); in testKeyValueAt()
[all …]
/aosp12/build/blueprint/
H A Dglob.go85 keys := make([]globKey, 0, len(c.globs))
87 keys = append(keys, k)
90 sort.Slice(keys, func(i, j int) bool {
91 if keys[i].pattern != keys[j].pattern {
92 return keys[i].pattern < keys[j].pattern
94 return keys[i].excludes < keys[j].excludes
97 globs := make(pathtools.MultipleGlobResults, len(keys))
98 for i, key := range keys {
/aosp12/packages/services/Car/service/src/com/android/car/
H A DFastPairUtils.java46 List<FastPairUtils.AccountKey> keys = new ArrayList<>(); in getAccountKeyAdvertisement() local
48 keys = readStoredAccountKeys(context); in getAccountKeyAdvertisement()
51 byte[] bloomResults = bloom(keys, salt[0]); in getAccountKeyAdvertisement()
66 static byte[] bloom(List<AccountKey> keys, byte salt) { in bloom() argument
67 int size = (int) 1.2 * keys.size() + 3; in bloom()
70 for (AccountKey key : keys) { in bloom()
88 List<AccountKey> keys = new ArrayList<>(); in readStoredAccountKeys() local
96 keys.add(new FastPairUtils.AccountKey(readAccountKey)); in readStoredAccountKeys()
103 return keys; in readStoredAccountKeys()
109 int accountKeyCount = keys.size(); in writeStoredAccountKeys()
[all …]
/aosp12/frameworks/av/drm/mediacas/plugins/clearkey/tests/
H A 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()
/aosp12/frameworks/base/core/java/android/os/health/
H A DHealthStatsWriter.java166 int[] keys; in flattenToParcel() local
174 for (int i=0; i<keys.length; i++) { in flattenToParcel()
176 out.writeInt(keys[i]); in flattenToParcel()
185 for (int i=0; i<keys.length; i++) { in flattenToParcel()
187 out.writeInt(keys[i]); in flattenToParcel()
195 for (int i=0; i<keys.length; i++) { in flattenToParcel()
197 out.writeInt(keys[i]); in flattenToParcel()
205 for (int i=0; i<keys.length; i++) { in flattenToParcel()
207 out.writeInt(keys[i]); in flattenToParcel()
215 for (int i=0; i<keys.length; i++) { in flattenToParcel()
[all …]
H A 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()
/aosp12/art/test/922-properties/src/art/
H A DTest922.java63 Set<String> keys = new TreeSet<String>(); in getRecommendedProperties() local
64 keys.add("java.vm.vendor"); in getRecommendedProperties()
65 keys.add("java.vm.version"); in getRecommendedProperties()
66 keys.add("java.vm.name"); in getRecommendedProperties()
67 keys.add("java.vm.info"); in getRecommendedProperties()
68 keys.add("java.library.path"); in getRecommendedProperties()
69 keys.add("java.class.path"); in getRecommendedProperties()
70 return keys; in getRecommendedProperties()
74 Set<String> keys = new TreeSet<String>(); in getAllProperties() local
77 keys.add(p); in getAllProperties()
[all …]
/aosp12/frameworks/av/media/libaudiohal/impl/
H A 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);
/aosp12/hardware/qcom/sm7150/gps/utils/
H A DLocUnorderedSetMap.h112 unordered_set<KEY> keys(0); in getKeys()
114 keys.insert(entry.first); in getKeys()
116 return keys; in getKeys()
127 inline void trimOrRemove(unordered_set<KEY>&& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
129 trimOrRemove(keys, rVals, goneKeys, goneVals); in trimOrRemove()
131 inline void trimOrRemove(unordered_set<KEY>& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
133 for (auto key : keys) { in trimOrRemove()
160 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>&& newVals, in add() argument
162 add(keys, newVals, newKeys); in add()
164 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>& newVals, in add() argument
[all …]
/aosp12/hardware/qcom/sm8150/gps/utils/
H A DLocUnorderedSetMap.h120 unordered_set<KEY> keys = {}; in getKeys() local
122 keys.insert(entry.first); in getKeys()
124 return keys; in getKeys()
135 inline void trimOrRemove(unordered_set<KEY>&& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
137 trimOrRemove(keys, rVals, goneKeys, goneVals); in trimOrRemove()
140 inline void trimOrRemove(unordered_set<KEY>& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
142 for (auto key : keys) { in trimOrRemove()
169 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>&& newVals, in add() argument
171 add(keys, newVals, newKeys); in add()
174 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>& newVals, in add() argument
[all …]
/aosp12/hardware/qcom/sm8150p/gps/utils/
H A DLocUnorderedSetMap.h112 unordered_set<KEY> keys(0); in getKeys()
114 keys.insert(entry.first); in getKeys()
116 return keys; in getKeys()
127 inline void trimOrRemove(unordered_set<KEY>&& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
129 trimOrRemove(keys, rVals, goneKeys, goneVals); in trimOrRemove()
131 inline void trimOrRemove(unordered_set<KEY>& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
133 for (auto key : keys) { in trimOrRemove()
160 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>&& newVals, in add() argument
162 add(keys, newVals, newKeys); in add()
164 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>& newVals, in add() argument
[all …]
/aosp12/hardware/qcom/sm7250/gps/utils/
H A DLocUnorderedSetMap.h120 unordered_set<KEY> keys = {}; in getKeys() local
122 keys.insert(entry.first); in getKeys()
124 return keys; in getKeys()
135 inline void trimOrRemove(unordered_set<KEY>&& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
137 trimOrRemove(keys, rVals, goneKeys, goneVals); in trimOrRemove()
140 inline void trimOrRemove(unordered_set<KEY>& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
142 for (auto key : keys) { in trimOrRemove()
169 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>&& newVals, in add() argument
171 add(keys, newVals, newKeys); in add()
174 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>& newVals, in add() argument
[all …]
/aosp12/hardware/qcom/sdm845/gps/sdm845/utils/
H A DLocUnorderedSetMap.h112 unordered_set<KEY> keys(0); in getKeys()
114 keys.insert(entry.first); in getKeys()
116 return keys; in getKeys()
127 inline void trimOrRemove(unordered_set<KEY>&& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
129 trimOrRemove(keys, rVals, goneKeys, goneVals); in trimOrRemove()
131 inline void trimOrRemove(unordered_set<KEY>& keys, const unordered_set<VAL>& rVals, in trimOrRemove() argument
133 for (auto key : keys) { in trimOrRemove()
160 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>&& newVals, in add() argument
162 add(keys, newVals, newKeys); in add()
164 inline void add(const unordered_set<KEY>& keys, const unordered_set<VAL>& newVals, in add() argument
[all …]
/aosp12/art/tools/dexfuzz/src/dexfuzz/program/
H A DMSwitchInsn.java33 public int[] keys; field in MSwitchInsn
46 newInsn.keys = new int[keys.length]; in clone()
47 System.arraycopy(keys, 0, newInsn.keys, 0, keys.length); in clone()
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactLocaleUtilsTest.java182 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseContactLocaleUtils() local
184 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseContactLocaleUtils()
187 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_1_KEY); in testChineseContactLocaleUtils()
190 verifyKeys(keys, CHINESE_LATIN_MIX_NAME_2_KEY); in testChineseContactLocaleUtils()
201 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testPinyinEnabledSecondaryLocale() local
203 verifyKeys(keys, CHINESE_NAME_KEY); in testPinyinEnabledSecondaryLocale()
236 Iterator<String> keys = getNameLookupKeys(CHINESE_NAME, in testChineseStyleNameWithDifferentLocale() local
238 verifyKeys(keys, CHINESE_NAME_KEY); in testChineseStyleNameWithDifferentLocale()
239 keys = getNameLookupKeys(LATIN_NAME, FullNameStyle.WESTERN); in testChineseStyleNameWithDifferentLocale()
240 verifyKeys(keys, LATIN_NAME_KEY); in testChineseStyleNameWithDifferentLocale()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/dashboard/
H A DUiBlockerController.java47 public UiBlockerController(@NonNull List<String> keys) { in UiBlockerController() argument
48 this(keys, TIMEOUT_MILLIS); in UiBlockerController()
51 public UiBlockerController(@NonNull List<String> keys, long timeout) { in UiBlockerController() argument
52 mCountDownLatch = new CountDownLatch(keys.size()); in UiBlockerController()
53 mBlockerFinished = keys.isEmpty(); in UiBlockerController()
54 mKeys = new HashSet<>(keys); in UiBlockerController()
/aosp12/frameworks/base/test-base/src/android/test/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DKeySetManagerServiceTest.java417 keys.add(keyA); in testAddDefinedKSToPackageEmpty()
444 keys.add(keyA); in testAddDefinedKSToPackageDoubleAlias()
474 keys.add(keyA); in testAddDefinedKSToPackageOrthoUpgr()
481 keys.add(keyB); in testAddDefinedKSToPackageOrthoUpgr()
514 keys.add(keyA); in testAddDefinedKSToPackageOrthoUpgrAliasSame()
521 keys.add(keyB); in testAddDefinedKSToPackageOrthoUpgrAliasSame()
659 keys.add(keyA); in testAddUpgradeKSToPackageEmpty()
681 keys.add(keyA); in testAddUpgradeKSToPackageWrong()
708 keys.add(keyA); in testAddUpgradeKSToPackageDisappear()
717 keys.add(keyB); in testAddUpgradeKSToPackageDisappear()
[all …]
/aosp12/system/bt/stack/btm/
H A Dbtm_ble.cc1039 p_dev_rec->ble.keys.local_counter++; in btm_ble_increment_sign_ctr()
1041 p_dev_rec->ble.keys.counter++; in btm_ble_increment_sign_ctr()
1087 if (p_dev_rec && p_dev_rec->ble.keys.div) { in btm_get_local_div()
1089 *p_div = p_dev_rec->ble.keys.div; in btm_get_local_div()
1177 p_rec->ble.keys.srk_sec_level, p_rec->ble.keys.counter); in btm_sec_save_le_key()
1190 p_rec->ble.key_type, p_rec->ble.keys.div, p_rec->ble.keys.key_size, in btm_sec_save_le_key()
1191 p_rec->ble.keys.sec_level); in btm_sec_save_le_key()
1205 p_rec->ble.keys.local_counter); in btm_sec_save_le_key()
1476 p_rec->ble.keys.ediv, p_rec->ble.keys.pltk); in btm_ble_start_encrypt()
1556 p_cb->key_size = p_rec->ble.keys.key_size; in btm_ble_ltk_request_reply()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
H A DBasePreferenceControllerTest.java181 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey() local
184 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
186 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnavailable_shouldAddKey()
191 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey() local
194 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
196 assertThat(keys).containsExactly(mPreferenceController.getPreferenceKey()); in updateNonIndexableKeys_controllerUnsearchable_shouldAddKey()
201 final List<String> keys = new ArrayList<>(); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey() local
204 mPreferenceController.updateNonIndexableKeys(keys); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey()
206 assertThat(keys).isEmpty(); in updateNonIndexableKeys_controllerAvailable_shouldNotAddKey()
/aosp12/hardware/interfaces/audio/core/all-versions/default/
H A DParametersUtil.cpp64 AudioParameter keys; in getParam() local
65 keys.addKey(halName); in getParam()
66 std::unique_ptr<AudioParameter> params = getParams(keys); in getParam()
78 const hidl_vec<ParameterValue>& context, const hidl_vec<hidl_string>& keys, in getParametersImpl() argument
84 for (size_t i = 0; i < keys.size(); ++i) { in getParametersImpl()
85 halKeys.addKey(String8(keys[i].c_str())); in getParametersImpl()
89 (keys.size() == 0 || halValues->size() != 0) ? Result::OK : Result::NOT_SUPPORTED; in getParametersImpl()
106 std::unique_ptr<AudioParameter> ParametersUtil::getParams(const AudioParameter& keys) { in getParams() argument
108 char* halValues = halGetParameters(keys.keysToString().string()); in getParams()
/aosp12/frameworks/av/drm/mediacas/plugins/clearkey/
H A 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()

12345678910>>...32