Home
last modified time | relevance | path

Searched refs:serialNumber (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/keystore/java/android/security/
DKeyPairGeneratorSpec.java116 AlgorithmParameterSpec spec, X500Principal subjectDN, BigInteger serialNumber, in KeyPairGeneratorSpec() argument
124 } else if (serialNumber == null) { in KeyPairGeneratorSpec()
144 mSerialNumber = serialNumber; in KeyPairGeneratorSpec()
389 public Builder setSerialNumber(@NonNull BigInteger serialNumber) { in setSerialNumber() argument
390 if (serialNumber == null) { in setSerialNumber()
393 mSerialNumber = serialNumber; in setSerialNumber()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserDataPreparerTest.java107 int serialNumber = UserDataPreparer.getSerialNumber(userDeDir); in testPrepareUserData_De() local
108 assertEquals(TEST_USER_SERIAL, serialNumber); in testPrepareUserData_De()
109 serialNumber = UserDataPreparer.getSerialNumber(systemDeDir); in testPrepareUserData_De()
110 assertEquals(TEST_USER_SERIAL, serialNumber); in testPrepareUserData_De()
125 int serialNumber = UserDataPreparer.getSerialNumber(userCeDir); in testPrepareUserData_Ce() local
126 assertEquals(TEST_USER_SERIAL, serialNumber); in testPrepareUserData_Ce()
127 serialNumber = UserDataPreparer.getSerialNumber(systemCeDir); in testPrepareUserData_Ce()
128 assertEquals(TEST_USER_SERIAL, serialNumber); in testPrepareUserData_Ce()
DUserManagerTest.java455 int serialNumber1 = user1.serialNumber; in testSerialNumber()
459 int serialNumber2 = user2.serialNumber; in testSerialNumber()
471 assertTrue(errMsg + user1.serialNumber, in testGetSerialNumbersOfUsers()
472 ArrayUtils.contains(serialNumbersOfUsers, user1.serialNumber)); in testGetSerialNumbersOfUsers()
473 assertTrue(errMsg + user2.serialNumber, in testGetSerialNumbersOfUsers()
474 ArrayUtils.contains(serialNumbersOfUsers, user2.serialNumber)); in testGetSerialNumbersOfUsers()
DUserManagerServiceUserInfoTest.java126 user.serialNumber = 5; in createUser()
/frameworks/base/core/java/android/os/storage/
DIStorageManager.aidl172 void createUserKey(int userId, int serialNumber, boolean ephemeral) = 61; in createUserKey() argument
174 void unlockUserKey(int userId, int serialNumber, in byte[] token, in byte[] secret) = 63; in unlockUserKey() argument
177 void prepareUserStorage(in String volumeUuid, int userId, int serialNumber, int flags) = 66; in prepareUserStorage() argument
180 void addUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 70; in addUserKeyAuth() argument
196 void clearUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 88; in clearUserKeyAuth() argument
DStorageManager.java1380 public void createUserKey(int userId, int serialNumber, boolean ephemeral) { in createUserKey() argument
1382 mStorageManager.createUserKey(userId, serialNumber, ephemeral); in createUserKey()
1398 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument
1400 mStorageManager.unlockUserKey(userId, serialNumber, token, secret); in unlockUserKey()
1416 public void prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) { in prepareUserStorage() argument
1418 mStorageManager.prepareUserStorage(volumeUuid, userId, serialNumber, flags); in prepareUserStorage()
/frameworks/base/services/core/java/com/android/server/pm/
DUserDataPreparer.java211 enforceSerialNumber(file, info.serialNumber); in reconcileUsers()
276 void enforceSerialNumber(File file, int serialNumber) throws IOException { in enforceSerialNumber() argument
291 setSerialNumber(file, serialNumber); in enforceSerialNumber()
296 } else if (foundSerial != serialNumber) { in enforceSerialNumber()
298 + " doesn't match expected " + serialNumber); in enforceSerialNumber()
307 private static void setSerialNumber(File file, int serialNumber) throws IOException { in setSerialNumber() argument
309 final byte[] buf = Integer.toString(serialNumber).getBytes(StandardCharsets.UTF_8); in setSerialNumber()
DUserManagerService.java2367 serializer.attribute(null, ATTR_SERIAL_NO, Integer.toString(userInfo.serialNumber)); in writeUserLP()
2529 int serialNumber = id; in readUserLP() local
2570 serialNumber = readIntAttribute(parser, ATTR_SERIAL_NO, id); in readUserLP()
2638 userInfo.serialNumber = serialNumber; in readUserLP()
2906 userInfo.serialNumber = mNextSerialNumber++; in createUserInternalUncheckedNoTracing()
2937 storage.createUserKey(userId, userInfo.serialNumber, userInfo.isEphemeral()); in createUserInternalUncheckedNoTracing()
2938 mUserDataPreparer.prepareUserData(userId, userInfo.serialNumber, in createUserInternalUncheckedNoTracing()
3603 return userInfo != null ? userInfo.serialNumber : -1; in getUserSerialNumber()
3620 if (info != null && info.serialNumber == userSerialNumber) return userId; in getUserHandle()
3682 final int userSerial = userInfo.serialNumber; in onBeforeStartUser()
[all …]
/frameworks/base/core/java/android/content/pm/
DUserInfo.java125 public int serialNumber; field in UserInfo
299 serialNumber = orig.serialNumber; in UserInfo()
346 dest.writeInt(serialNumber); in writeToParcel()
374 serialNumber = source.readInt(); in UserInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractSerialNumberPreferenceController.java44 AbstractSerialNumberPreferenceController(Context context, String serialNumber) { in AbstractSerialNumberPreferenceController() argument
46 mSerialNumber = serialNumber; in AbstractSerialNumberPreferenceController()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DSerialNumberPreferenceControllerTest.java92 TestPreferenceController(Context context, String serialNumber) { in TestPreferenceController() argument
93 super(context, serialNumber); in TestPreferenceController()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayIdentification.cpp121 std::string_view serialNumber; in parseEdid() local
144 serialNumber = parseEdidText(descriptor); in parseEdid()
154 displayName = serialNumber; in parseEdid()
/frameworks/base/core/java/android/hardware/usb/
DUsbDevice.java376 public final @Nullable String serialNumber; field in UsbDevice.Builder
381 @Nullable String serialNumber) { in Builder() argument
392 this.serialNumber = serialNumber; in Builder()
DUsbAccessory.java106 @Nullable String serialNumber) { in UsbAccessory() argument
110 return serialNumber; in UsbAccessory()
DDeviceFilter.java92 String serialNumber = null; in read() local
104 serialNumber = value; in read()
135 manufacturerName, productName, serialNumber); in read()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeStorageManager.java35 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument
39 public void clearUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in clearUserKeyAuth() argument
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java55 @Nullable String serialNumber) { in UsbSerialReader() argument
58 mSerialNumber = serialNumber; in UsbSerialReader()
DUsbHostManager.java397 newDeviceBuilder.serialNumber); in usbDeviceAdded()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java285 Long serialNumber = 24L; in getUserSerialNumbers_returnsSerialNumbers() local
287 mRecoverableKeyStoreDb.setUserSerialNumber(userId, serialNumber); in getUserSerialNumbers_returnsSerialNumbers()
291 assertEquals(serialNumber, mRecoverableKeyStoreDb.getUserSerialNumbers().get(userId)); in getUserSerialNumbers_returnsSerialNumbers()
299 Long serialNumber = -1L; in getUserSerialNumbers_returnsMinusOneIfNoEntry() local
304 assertEquals(serialNumber, mRecoverableKeyStoreDb.getUserSerialNumbers().get(userId)); in getUserSerialNumbers_returnsMinusOneIfNoEntry()
311 Long serialNumber = 10L; in setUserSerialNumbers_keepsPlatformKeyGenerationId() local
314 mRecoverableKeyStoreDb.setUserSerialNumber(userId, serialNumber); in setUserSerialNumbers_keepsPlatformKeyGenerationId()
323 Long serialNumber = 10L; in setPlatformKeyGenerationId_keepsUserSerialNumber() local
326 mRecoverableKeyStoreDb.setUserSerialNumber(userId, serialNumber); in setPlatformKeyGenerationId_keepsUserSerialNumber()
329 assertEquals(serialNumber, mRecoverableKeyStoreDb.getUserSerialNumbers().get(userId)); in setPlatformKeyGenerationId_keepsUserSerialNumber()
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java220 public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber, in SmsCbMessage() argument
225 this(messageFormat, geographicalScope, serialNumber, location, serviceCategory, language, in SmsCbMessage()
234 public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber, in SmsCbMessage() argument
243 mSerialNumber = serialNumber; in SmsCbMessage()
/frameworks/base/core/java/android/net/http/
DSslCertificate.java268 BigInteger serialNumber = x509Certificate.getSerialNumber(); in getSerialNumber() local
269 if (serialNumber == null) { in getSerialNumber()
272 return fingerprint(serialNumber.toByteArray()); in getSerialNumber()
/frameworks/base/keystore/java/android/security/keystore/
DKeyGenParameterSpec.java898 public Builder setCertificateSerialNumber(@NonNull BigInteger serialNumber) { in setCertificateSerialNumber() argument
899 if (serialNumber == null) { in setCertificateSerialNumber()
902 mCertificateSerialNumber = serialNumber; in setCertificateSerialNumber()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java369 long serialNumber = cursor.getLong(cursor.getColumnIndexOrThrow( in getUserSerialNumbers() local
371 serialNumbers.put(userId, serialNumber); in getUserSerialNumbers()
382 public long setUserSerialNumber(int userId, long serialNumber) { in setUserSerialNumber() argument
386 values.put(UserMetadataEntry.COLUMN_NAME_USER_SERIAL_NUMBER, serialNumber); in setUserSerialNumber()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java926 mVold.unlockUserKey(user.id, user.serialNumber, encodeBytes(null), in initIfBootedAndConnected()
958 mVold.onUserAdded(user.id, user.serialNumber); in resetIfBootedAndConnected()
2736 public void createUserKey(int userId, int serialNumber, boolean ephemeral) { in createUserKey() argument
2740 mVold.createUserKey(userId, serialNumber, ephemeral); in createUserKey()
2773 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument
2777 mVold.addUserKeyAuth(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); in addUserKeyAuth()
2791 public void clearUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in clearUserKeyAuth() argument
2795 mVold.clearUserKeyAuth(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); in clearUserKeyAuth()
2816 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument
2822 mVold.unlockUserKey(userId, serialNumber, encodeBytes(token), in unlockUserKey()
[all …]
/frameworks/base/core/java/android/os/
DUserManager.java2013 public UserHandle getUserForSerialNumber(long serialNumber) { in getUserForSerialNumber() argument
2014 int ident = getUserHandle((int) serialNumber); in getUserForSerialNumber()
2443 result[i] = users.get(i).serialNumber; in getSerialNumbersOfUsers()

12