Home
last modified time | relevance | path

Searched refs:keyId (Results 1 – 25 of 53) sorted by relevance

123

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeKeyIdIdentification.java38 @NonNull public final byte[] keyId; field in IkeKeyIdIdentification
45 public IkeKeyIdIdentification(@NonNull byte[] keyId) { in IkeKeyIdIdentification() argument
47 this.keyId = keyId; in IkeKeyIdIdentification()
73 result.putPersistableBundle(KEY_ID_KEY, PersistableBundleUtils.fromByteArray(keyId)); in toPersistableBundle()
81 return Objects.hash(idType, Arrays.hashCode(keyId)); in hashCode()
90 return Arrays.equals(keyId, ((IkeKeyIdIdentification) o).keyId); in equals()
115 return keyId; in getEncodedIdData()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DTestTable.java42 public void assertHasRow(int keyId, CharSequence expected) { in assertHasRow() argument
43 assertEquals(expected, mRows.get(keyId)); in assertHasRow()
46 public void assertNotInTable (int keyId) { in assertNotInTable() argument
47 assertNull(mRows.get(keyId)); in assertNotInTable()
51 public void put(int keyId, CharSequence value) { in put() argument
52 mRows.put(keyId, value); in put()
56 public void put(int keyId, CharSequence value, OnClickListener callback) { in put() argument
57 mRows.put(keyId, value); in put()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp130 const int keyId, const int x, const int y, const bool isGeometric) const { in getNormalizedSquaredDistanceFromCenterFloatG() argument
131 const float centerX = static_cast<float>(getKeyCenterXOfKeyIdG(keyId, x, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG()
132 const float centerY = static_cast<float>(getKeyCenterYOfKeyIdG(keyId, y, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG()
196 const int keyId, const int referencePointX, const bool isGeometric) const { in getKeyCenterXOfKeyIdG() argument
197 if (keyId < 0) { in getKeyCenterXOfKeyIdG()
200 int centerX = (hasTouchPositionCorrectionData()) ? static_cast<int>(mSweetSpotCenterXs[keyId]) in getKeyCenterXOfKeyIdG()
201 : mCenterXsG[keyId]; in getKeyCenterXOfKeyIdG()
202 const int keyWidth = mKeyWidths[keyId]; in getKeyCenterXOfKeyIdG()
222 const int keyId, const int referencePointY, const bool isGeometric) const { in getKeyCenterYOfKeyIdG() argument
224 if (keyId < 0) { in getKeyCenterYOfKeyIdG()
[all …]
Dproximity_info_utils.h133 const int *const keyWidths, const int *keyHeights, const int keyId, const int x, in isOnKey() argument
135 if (keyId < 0) return true; // NOT_A_ID is -1, but return whenever < 0 just in case in isOnKey()
136 const int left = keyXCoordinates[keyId]; in isOnKey()
137 const int top = keyYCoordinates[keyId]; in isOnKey()
138 const int right = left + keyWidths[keyId] + 1; in isOnKey()
139 const int bottom = top + keyHeights[keyId]; in isOnKey()
222 const int keyId, const int x, const int y) { in squaredLengthToEdge() argument
224 if (keyId < 0) return MAX_VALUE_FOR_WEIGHTING; in squaredLengthToEdge()
225 const int left = keyXCoordinates[keyId]; in squaredLengthToEdge()
226 const int top = keyYCoordinates[keyId]; in squaredLengthToEdge()
[all …]
Dproximity_info_state.cpp171 const int keyId = mProximityInfo->getKeyIndexOf(codePoint); in getPointToKeyLength() local
172 if (keyId != NOT_AN_INDEX) { in getPointToKeyLength()
173 const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; in getPointToKeyLength()
184 const int inputIndex, const int keyId) const { in getPointToKeyByIdLength()
187 keyId); in getPointToKeyByIdLength()
277 bool ProximityInfoState::isKeyInSerchKeysAfterIndex(const int index, const int keyId) const { in isKeyInSerchKeysAfterIndex()
278 ASSERT(keyId >= 0 && index >= 0 && index < mSampledInputSize); in isKeyInSerchKeysAfterIndex()
279 return mSampledSearchKeySets[index].test(keyId); in isKeyInSerchKeysAfterIndex()
Dproximity_info.h41 const int keyId, const int x, const int y, const bool isGeometric) const;
68 const int keyId, const int referencePointX, const bool isGeometric) const;
70 const int keyId, const int referencePointY, const bool isGeometric) const;
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/ohttp/
DObliviousHttpTestFixtures.java156 public int keyId; field in ObliviousHttpTestFixtures.OhttpTestVector
166 int keyId, in OhttpTestVector() argument
174 this.keyId = keyId; in OhttpTestVector()
187 byte[] keyId = new byte[1]; in getKeyConfig()
188 keyId[0] = (byte) (keyIdentifier & 0xFF); in getKeyConfig()
190 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java85 private void getKeyWorker(int keyId, IGetKeyCallback callback) in getKeyWorker() argument
88 + mClientUid + ", keyId: " + keyId + ", callback: " in getKeyWorker()
101 mSystemInterface.getServiceName(), mClientUid, keyId); in getKeyWorker()
104 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker()
119 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker()
154 private ProvisionedKey tryToAssignKey(Instant minExpiry, int keyId) { in tryToAssignKey() argument
168 expiry, mClientUid, keyId); in tryToAssignKey()
215 public void getKey(int keyId, IGetKeyCallback callback) { in getKey() argument
223 mThreadPool.submit(() -> getKeyThreadWorker(keyId, callback))); in getKey()
227 private void getKeyThreadWorker(int keyId, IGetKeyCallback callback) { in getKeyThreadWorker() argument
[all …]
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DProvisionedKeyDao.java107 public abstract ProvisionedKey getKeyForClientAndIrpc(String irpcHal, int clientUid, int keyId); in getKeyForClientAndIrpc() argument
132 int keyId) { in getOrAssignKey() argument
133 ProvisionedKey existingKey = getKeyForClientAndIrpc(irpcHal, clientUid, keyId); in getOrAssignKey()
143 availableKey.keyId = keyId; in getOrAssignKey()
DProvisionedKey.java63 public Integer keyId; field in ProvisionedKey
90 && Objects.equals(keyId, that.keyId); in equals()
95 int result = Objects.hash(irpcHal, truncate(expirationTime), clientUid, keyId); in hashCode()
115 + ", keyId=" + keyId in toString()
/packages/modules/RemoteKeyProvisioning/app/tests/stress/src/com/android/rkpdapp/stress/
DRegistrationBinderStressTest.java91 private void getKeyHelper(int keyId) { in getKeyHelper() argument
94 binder.getKey(keyId, new IGetKeyCallback.Stub() { in getKeyHelper()
129 int keyId = 0; in testGetSameKeyInParallel() local
142 getKeyHelper(keyId); in testGetSameKeyInParallel()
148 Process.myUid(), keyId); in testGetSameKeyInParallel()
150 key.keyId = null; in testGetSameKeyInParallel()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfig.java46 public abstract int keyId(); in keyId() method in ObliviousHttpKeyConfig
129 int keyId = writeUptoTwoBytesIntoInteger(keyConfig, currentIndex, sKeyIdSizeInBytes); in fromSerializedKeyConfig() local
157 .setKeyId(keyId) in fromSerializedKeyConfig()
179 header[0] = (byte) (keyId() & 0xFF); in serializeOhttpPayloadHeader()
247 serializedArray[currentIndex++] = (byte) (keyId() & 0xFF); in serializeKeyConfigToBytes()
280 public abstract Builder setKeyId(int keyId); in setKeyId() argument
DObliviousHttpGateway.java98 int keyId = getKeyId(encapsulatedRequest); in decrypt() local
108 keyId, in decrypt()
186 int keyId = getKeyId(encryptedSeedRequest); in encrypt() local
196 keyId, in encrypt()
342 int keyId, int kemId, int kdfId, int aeadId, boolean isMediaTypeChanged) in createRecipientKeyInfo() argument
353 dataOutputStream.writeByte(keyId); in createRecipientKeyInfo()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DTableView.java103 public void put(@StringRes int keyId, CharSequence value) { in put() argument
104 put(mRes.getString(keyId), value); in put()
127 public void put(@StringRes int keyId, CharSequence value, OnClickListener callback) { in put() argument
128 put(keyId, value); in put()
129 mRows.get(mRes.getString(keyId)).setOnClickListener(callback); in put()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DRkpdDatabaseTest.java219 mProvisionedKey1.keyId = FAKE_KEY_ID; in testGetKeyForClientAndIrpc()
222 mProvisionedKey2.keyId = FAKE_KEY_ID; in testGetKeyForClientAndIrpc()
240 mProvisionedKey1.keyId = FAKE_KEY_ID; in testUpgradeKeyBlob()
257 mProvisionedKey1.keyId = FAKE_KEY_ID; in testCorrectClientUpgradesKeyBlob()
272 mProvisionedKey1.keyId = FAKE_KEY_ID; in testUpgradeNonExistentKeyBlob()
294 assertThat(databaseKey.keyId).isNull(); in testAssignKey()
301 assertThat(assignedKey.keyId).isEqualTo(FAKE_KEY_ID); in testAssignKey()
342 mProvisionedKey1.keyId = FAKE_KEY_ID; in testUpgradeWithNullKeyBlob()
356 mProvisionedKey1.keyId = FAKE_KEY_ID; in testUpgradeWithDuplicateKeyBlob()
358 mProvisionedKey2.keyId = FAKE_KEY_ID_2; in testUpgradeWithDuplicateKeyBlob()
DProvisionedKeyTest.java54 key.keyId = sRandom.nextInt(); in randomKey()
77 cloneKey.keyId = clone(origKey.keyId); in clone()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKey.java37 @NonNull String keyId, in AggregateEncryptionKey() argument
42 mKeyId = keyId; in AggregateEncryptionKey()
121 public @NonNull Builder setKeyId(@NonNull String keyId) { in setKeyId() argument
122 mKeyId = keyId; in setKeyId()
DAggregatePayload.java168 public Builder setKeyId(String keyId) { in setKeyId() argument
169 mAggregationServicePayload.mKeyId = keyId; in setKeyId()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DAuctionEncryptionKeyFixture.java94 .setKeyIdentifier(AUCTION_KEY_2.keyId())
133 .put(KEY_ID_LABEL, key.keyId()) in getAuctionKeyJson()
165 public abstract String keyId(); in keyId() method in AuctionEncryptionKeyFixture.AuctionKey
175 public abstract Builder setKeyId(String keyId); in setKeyId() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DJoinEncryptionKeyParser.java84 byte[] keyId = new byte[JOIN_KEY_ID_SIZE_IN_BYTES]; in getDbEncryptionKeys()
85 System.arraycopy(keyInBytes, 0, keyId, 0, JOIN_KEY_ID_SIZE_IN_BYTES); in getDbEncryptionKeys()
91 .setKeyIdentifier(new String(keyId, StandardCharsets.UTF_8)) in getDbEncryptionKeys()
DAuctionEncryptionKeyParser.java138 private static int getOhttpKeyId(String keyId) throws InvalidKeySpecException { in getOhttpKeyId() argument
139 if (keyId.length() < 2) { in getOhttpKeyId()
145 int leftmost = Character.digit(keyId.charAt(0), HEXADECIMAL_RADIX); in getOhttpKeyId()
146 int secondLeftmost = Character.digit(keyId.charAt(1), HEXADECIMAL_RADIX); in getOhttpKeyId()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiConfigurationTest.java349 String keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentials() local
350 assertEquals(keyId, mSsid + "_WPA_EAP_TLS_NULL"); in testGetKeyIdForCredentials()
356 keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentials()
357 assertEquals(keyId, mSsid + "_WPA_EAP_TTLS_MSCHAPV2"); in testGetKeyIdForCredentials()
364 keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentials()
365 assertEquals(keyId, mSsid + "_SUITE_B_192_PWD_GTC"); in testGetKeyIdForCredentials()
372 keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentials()
373 assertEquals(keyId, mSsid + "_IEEE8021X_SIM_NULL"); in testGetKeyIdForCredentials()
381 keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentials()
410 String keyId = config.getKeyIdForCredentials(config); in testGetKeyIdForCredentialsForSuggestion() local
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DKAnonObliviousHttpEncryptorImplTest.java226 byte[] keyId = new byte[1]; in getKeyConfig()
227 keyId[0] = (byte) (keyIdentifier & 0xFF); in getKeyConfig()
229 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig()
DAuctionEncryptionKeyParserTest.java113 assertThat(keys.get(0).getKeyIdentifier()).isEqualTo(AUCTION_KEY_1.keyId()); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
130 assertThat(keys.get(0).getKeyIdentifier()).isEqualTo(AUCTION_KEY_1.keyId()); in getDbEncryptionKeys_parsesSingleKey()
190 assertThat(keyConfig.keyId()).isEqualTo(52); in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
/packages/apps/Settings/src/com/android/settings/homepage/
DHighlightableMenu.java99 MENU_KEY_COMPAT_MAP.forEach((compatMenuKey, keyId) -> { in fromXml() argument
100 final String prefKey = lookupPreferenceKey(context.getString(keyId)); in fromXml()

123