Searched refs:USER1 (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Virtualization/virtualizationservice/src/maintenance/ |
D | vmdb.rs | 369 const USER1: i32 = 1; constant 435 params![&VM_ID1, &USER1, APP_A], in test_schema_upgrade_v0_v1() 443 assert_eq!(vec![VM_ID1], db.vm_ids_for_user(USER1).unwrap()); in test_schema_upgrade_v0_v1() 461 db.add_vm_id(&VM_ID1, USER1, APP_A).unwrap(); in test_corrupt_database_file() 462 assert_eq!(vec![VM_ID1], db.vm_ids_for_user(USER1).unwrap()); in test_corrupt_database_file() 489 db.add_vm_id(&VM_ID1, USER1, APP_A).unwrap(); in test_database_from_the_future() 501 db.add_vm_id(&VM_ID1, USER1, APP_A).unwrap(); in test_add_remove() 502 db.add_vm_id(&VM_ID2, USER1, APP_A).unwrap(); in test_add_remove() 503 db.add_vm_id(&VM_ID3, USER1, APP_A).unwrap(); in test_add_remove() 509 vec![(USER1, APP_A), (USER2, APP_B), (USER3, APP_C)], in test_add_remove() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | DefaultDialerCacheTest.java | 57 private static final int USER1 = 1; field in DefaultDialerCacheTest 97 when(mMockDefaultDialerManager.getDefaultDialerApplication(any(Context.class), eq(USER1))) in setUp() 102 when(mRoleManagerAdapter.getDefaultDialerApp(eq(USER1))).thenReturn(DIALER2); in setUp() 117 assertEquals(mDefaultDialerCache.getDefaultDialerApplication(USER1), DIALER2); in testThreeUsers() 121 assertEquals(mDefaultDialerCache.getDefaultDialerApplication(USER1), DIALER2); in testThreeUsers() 127 .getDefaultDialerApp(eq(USER1)); in testThreeUsers() 137 assertEquals(mDefaultDialerCache.getDefaultDialerApplication(USER1), DIALER2); in testDialer1PackageChanged() 145 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testDialer1PackageChanged() 155 assertEquals(mDefaultDialerCache.getDefaultDialerApplication(USER1), DIALER2); in testRandomOtherPackageChanged() 162 verify(mRoleManagerAdapter, times(2)).getDefaultDialerApp(eq(USER1)); in testRandomOtherPackageChanged() [all …]
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | maintenance.rs | 374 const USER1: i32 = 1; constant 412 get_db(&mut sk_state).add_vm_id(&VM_ID1, USER1, APP_A).unwrap(); in test_sk_state() 413 get_db(&mut sk_state).add_vm_id(&VM_ID2, USER1, APP_A).unwrap(); in test_sk_state() 428 assert_eq!(vec![VM_ID1, VM_ID2], get_db(&mut sk_state).vm_ids_for_user(USER1).unwrap()); in test_sk_state() 431 get_db(&mut sk_state).vm_ids_for_app(USER1, APP_A).unwrap() in test_sk_state() 443 get_db(&mut sk_state).add_vm_id(&VM_ID1, USER1, APP_A).unwrap(); in test_sk_state_delete_id() 444 get_db(&mut sk_state).add_vm_id(&VM_ID2, USER1, APP_A).unwrap(); in test_sk_state_delete_id() 449 sk_state.delete_id(&VM_ID4, USER1 as u32, APP_A as u32); in test_sk_state_delete_id() 453 sk_state.delete_id(&VM_ID1, USER1 as u32, APP_B as u32); in test_sk_state_delete_id() 461 sk_state.delete_id(&VM_ID1, USER1 as u32, APP_A as u32); in test_sk_state_delete_id() [all …]
|