/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeKeyIdIdentification.java | 38 @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/ |
D | TestTable.java | 42 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/ |
D | proximity_info.cpp | 130 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 …]
|
D | proximity_info_utils.h | 133 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 …]
|
D | proximity_info_state.cpp | 171 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()
|
D | proximity_info.h | 41 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/ |
D | ObliviousHttpTestFixtures.java | 156 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/ |
D | RegistrationBinder.java | 85 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/ |
D | ProvisionedKeyDao.java | 107 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()
|
D | ProvisionedKey.java | 63 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/ |
D | RegistrationBinderStressTest.java | 91 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/ |
D | ObliviousHttpKeyConfig.java | 46 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
|
D | ObliviousHttpGateway.java | 98 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/ |
D | TableView.java | 103 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/ |
D | RkpdDatabaseTest.java | 219 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()
|
D | ProvisionedKeyTest.java | 54 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/ |
D | AggregateEncryptionKey.java | 37 @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()
|
D | AggregatePayload.java | 168 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/ |
D | AuctionEncryptionKeyFixture.java | 94 .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/ |
D | JoinEncryptionKeyParser.java | 84 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()
|
D | AuctionEncryptionKeyParser.java | 138 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/ |
D | WifiConfigurationTest.java | 349 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/ |
D | KAnonObliviousHttpEncryptorImplTest.java | 226 byte[] keyId = new byte[1]; in getKeyConfig() 227 keyId[0] = (byte) (keyIdentifier & 0xFF); in getKeyConfig() 229 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig()
|
D | AuctionEncryptionKeyParserTest.java | 113 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/ |
D | HighlightableMenu.java | 99 MENU_KEY_COMPAT_MAP.forEach((compatMenuKey, keyId) -> { in fromXml() argument 100 final String prefKey = lookupPreferenceKey(context.getString(keyId)); in fromXml()
|