Home
last modified time | relevance | path

Searched refs:ClientIdEntry (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DRemoteAccessStorageUnitTest.java30 import com.android.car.remoteaccess.RemoteAccessStorage.ClientIdEntry;
78 .that(mRemoteAccessStorage.updateClientId(new ClientIdEntry("client_id", 1234, in testUpdateClientId()
84 ClientIdEntry inputEntryOne = new ClientIdEntry("client_id", 1234, "we.are.the.world"); in testUpdateClientId_entryModified()
85 ClientIdEntry inputEntryTwo = new ClientIdEntry("new_client_id", 9876, "we.are.the.world"); in testUpdateClientId_entryModified()
89 ClientIdEntry outputEntry = mRemoteAccessStorage.getClientIdEntry("we.are.the.world"); in testUpdateClientId_entryModified()
96 ClientIdEntry inputEntryOne = new ClientIdEntry("client_id_1", 1234, "we.are.the.world"); in testGetClientIdEntry()
97 ClientIdEntry inputEntryTwo = new ClientIdEntry("client_id_2", 9876, "life.is.beautiful"); in testGetClientIdEntry()
101 ClientIdEntry outputEntry = mRemoteAccessStorage.getClientIdEntry("we.are.the.world"); in testGetClientIdEntry()
108 ClientIdEntry inputEntry = new ClientIdEntry("client_id", Long.MAX_VALUE, in testGetClientIdEntry_maxIdCreationTime()
112 ClientIdEntry outputEntry = mRemoteAccessStorage.getClientIdEntry("we.are.the.world"); in testGetClientIdEntry_maxIdCreationTime()
[all …]
DCarRemoteAccessServiceUnitTest.java90 import com.android.car.remoteaccess.RemoteAccessStorage.ClientIdEntry;
155 private static final List<ClientIdEntry> PERSISTENT_CLIENTS = List.of(
156 new ClientIdEntry("12345", System.currentTimeMillis(), "we.are.the.world"),
157 new ClientIdEntry("98765", System.currentTimeMillis(), "android.automotive.os")
600 mRemoteAccessStorage.updateClientId(new ClientIdEntry( in testAddCarRemoteTaskClient_asignedDynamicClientId_thenBecomeServerlessClient()
1827 ClientIdEntry entry = PERSISTENT_CLIENTS.get(i); in setupDatabase()
/packages/services/Car/service/src/com/android/car/remoteaccess/
DRemoteAccessStorage.java59 ClientIdEntry getClientIdEntry(String packageName) { in getClientIdEntry()
64 List<ClientIdEntry> getClientIdEntries() { in getClientIdEntries()
68 boolean updateClientId(ClientIdEntry entry) { in updateClientId()
93 static final class ClientIdEntry { class in RemoteAccessStorage
98 ClientIdEntry(String clientId, long idCreationTime, String uidName) { in ClientIdEntry() method in RemoteAccessStorage.ClientIdEntry
110 if (!(obj instanceof ClientIdEntry)) { in equals()
113 ClientIdEntry other = (ClientIdEntry) obj; in equals()
162 public static ClientIdEntry queryClientIdEntry(SQLiteDatabase db, String packageName) { in queryClientIdEntry()
179 return new ClientIdEntry(new String(data, STRING_ENCODING), in queryClientIdEntry()
194 public static List<ClientIdEntry> queryClientIdEntries(SQLiteDatabase db) { in queryClientIdEntries()
[all …]
DCarRemoteAccessService.java87 import com.android.car.remoteaccess.RemoteAccessStorage.ClientIdEntry;
1275 List<ClientIdEntry> clientIdEntries = mRemoteAccessStorage.getClientIdEntries(); in populatePackageClientIdMapping()
1281 ClientIdEntry entry = clientIdEntries.get(i); in populatePackageClientIdMapping()
1297 ClientIdEntry entry = new ClientIdEntry(token.getClientId(), token.getIdCreationTime(), in saveClientIdInDb()