Home
last modified time | relevance | path

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

12345678910>>...16

/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.h34 hidl_vec<hidl_string> keys, Callback callback) { in getParameters() argument
35 return object->getParameters(keys, callback); in getParameters()
40 hidl_vec<ParameterValue> keys) { in setParameters() argument
41 return object->setParameters(keys); in setParameters()
46 hidl_vec<hidl_string> keys, Callback callback) {
47 return object->getParameters(context, keys, callback);
52 hidl_vec<ParameterValue> keys) {
53 return object->setParameters(context, keys);
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/data/repository/
DStickyKeysRepository.kt79 val keys = linkedMapOf<ModifierKey, Locked>() in toStickyKeysMap() constant
81 if (isAltGrModifierOn) keys[ALT_GR] = Locked(false) in toStickyKeysMap()
82 if (isAltGrModifierLocked) keys[ALT_GR] = Locked(true) in toStickyKeysMap()
83 if (isAltModifierOn) keys[ALT] = Locked(false) in toStickyKeysMap()
84 if (isAltModifierLocked) keys[ALT] = Locked(true) in toStickyKeysMap()
85 if (isCtrlModifierOn) keys[CTRL] = Locked(false) in toStickyKeysMap()
86 if (isCtrlModifierLocked) keys[CTRL] = Locked(true) in toStickyKeysMap()
87 if (isMetaModifierOn) keys[META] = Locked(false) in toStickyKeysMap()
88 if (isMetaModifierLocked) keys[META] = Locked(true) in toStickyKeysMap()
89 if (isShiftModifierOn) keys[SHIFT] = Locked(false) in toStickyKeysMap()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DBluetoothPowerCalculator.java49 public BatteryConsumer.Key[] keys; field in BluetoothPowerCalculator.PowerAndDuration
77 BatteryConsumer.Key[] keys = UNINITIALIZED_KEYS; in calculate() local
84 if (keys == UNINITIALIZED_KEYS) { in calculate()
86 keys = app.getKeys(BatteryConsumer.POWER_COMPONENT_BLUETOOTH); in calculate()
87 powerAndDuration.keys = keys; in calculate()
88 powerAndDuration.powerPerKeyMah = new double[keys.length]; in calculate()
90 keys = null; in calculate()
149 if (query.isProcessStateDataNeeded() && powerAndDuration.keys != null) { in calculateApp()
150 for (int j = 0; j < powerAndDuration.keys.length; j++) { in calculateApp()
151 BatteryConsumer.Key key = powerAndDuration.keys[j]; in calculateApp()
[all …]
DWifiPowerCalculator.java58 public BatteryConsumer.Key[] keys; field in WifiPowerCalculator.PowerDurationAndTraffic
91 BatteryConsumer.Key[] keys = UNINITIALIZED_KEYS; in calculate() local
99 if (keys == UNINITIALIZED_KEYS) { in calculate()
101 keys = app.getKeys(BatteryConsumer.POWER_COMPONENT_WIFI); in calculate()
102 powerDurationAndTraffic.keys = keys; in calculate()
103 powerDurationAndTraffic.powerPerKeyMah = new double[keys.length]; in calculate()
105 keys = null; in calculate()
126 if (query.isProcessStateDataNeeded() && keys != null) { in calculate()
127 for (int j = 0; j < keys.length; j++) { in calculate()
128 BatteryConsumer.Key key = keys[j]; in calculate()
[all …]
DCpuPowerCalculator.java107 BatteryConsumer.Key[] keys = UNINITIALIZED_KEYS; in calculate() local
116 if (keys == UNINITIALIZED_KEYS) { in calculate()
118 keys = app.getKeys(BatteryConsumer.POWER_COMPONENT_CPU); in calculate()
120 keys = null; in calculate()
123 calculateApp(app, app.getBatteryStatsUid(), query, result, keys); in calculate()
143 BatteryUsageStatsQuery query, Result result, BatteryConsumer.Key[] keys) { in calculateApp() argument
153 if (query.isProcessStateDataNeeded() && keys != null) { in calculateApp()
156 calculateEnergyConsumptionPerProcessState(app, u, keys); in calculateApp()
159 calculateModeledPowerPerProcessState(app, u, keys, result); in calculateApp()
166 BatteryStats.Uid u, BatteryConsumer.Key[] keys) { in calculateEnergyConsumptionPerProcessState() argument
[all …]
/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/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/scaffold/
DRestrictedMenuItemTest.kt53 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
62 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
71 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
81 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
91 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
102 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
112 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
123 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
133 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
145 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
[all …]
/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/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/preference/
DRestrictedTwoTargetSwitchPreferenceTest.kt62 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
72 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
82 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
93 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
104 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
115 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
126 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
138 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
149 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
160 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
[all …]
DRestrictedSwitchPreferenceTest.kt61 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
71 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
81 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
92 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
103 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
114 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
125 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
137 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
148 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
160 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
DRestrictedPreferenceTest.kt56 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
65 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
75 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
85 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
96 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
106 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
117 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
127 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
DRestrictedMainSwitchPreferenceTest.kt59 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
69 val restrictions = Restrictions(userId = USER_ID, keys = emptyList()) in <lambda>()
79 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
90 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
101 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
112 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
123 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
135 val restrictions = Restrictions(userId = USER_ID, keys = listOf(RESTRICTION_KEY)) in <lambda>()
/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/PackageManagerServiceTests/server/src/com/android/server/pm/
DKeySetManagerServiceTest.java418 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageEmpty() local
420 keys.add(keyA); in testAddDefinedKSToPackageEmpty()
421 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageEmpty()
445 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageDoubleAlias() local
447 keys.add(keyA); in testAddDefinedKSToPackageDoubleAlias()
448 definedKS.put("aliasA", keys); in testAddDefinedKSToPackageDoubleAlias()
449 definedKS.put("aliasA2", keys); in testAddDefinedKSToPackageDoubleAlias()
475 ArraySet<PublicKey> keys = new ArraySet<PublicKey>(); in testAddDefinedKSToPackageOrthoUpgr() local
477 keys.add(keyA); in testAddDefinedKSToPackageOrthoUpgr()
478 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/core/java/android/os/
DPowerComponents.java67 final BatteryConsumer.Key[] keys = in getConsumedPower() local
70 for (int i = keys.length - 1; i >= 0; i--) { in getConsumedPower()
71 totalPowerMah += mData.getDouble(keys[i].mPowerColumnIndex); in getConsumedPower()
224 final BatteryConsumer.Key[] keys = mData.getKeys(componentId); in writeStatsProtoImpl() local
225 for (BatteryConsumer.Key key : keys) { in writeStatsProtoImpl()
334 final BatteryConsumer.Key[] keys = mData.getKeys(componentId); in writeToXml() local
335 for (BatteryConsumer.Key key : keys) { in writeToXml()
471 for (BatteryConsumer.Key[] keys : mData.layout.keys) { in Builder()
472 for (BatteryConsumer.Key key : keys) { in Builder()
564 final BatteryConsumer.Key[] keys = mData.layout.keys[componentId]; in addPowerAndDuration() local
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/
DRestrictionsProvider.kt38 val keys: List<String>, in <lambda>() constant in com.android.settingslib.spaprivileged.model.enterprise.Restrictions
42 return keys.isEmpty() && enhancedConfirmation == null in <lambda>()
79 for (key in restrictions.keys) { in restrictedModeState()
84 for (key in restrictions.keys) { in restrictedModeState()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DMessageUtilsTest.java59 private SparseArray<String> makeSparseArray(int[] keys, String[] values) throws Exception { in makeSparseArray() argument
60 assertEquals("Must specify same number of keys and values", keys.length, values.length); in makeSparseArray()
62 for (int i = 0; i < keys.length; i++) { in makeSparseArray()
63 out.put(keys[i], values[i]); in makeSparseArray()

12345678910>>...16