/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | PeriodicProvisionerTests.java | 46 import com.android.rkpdapp.interfaces.SystemInterface; 124 ServiceManagerInterface.setInstances(new SystemInterface[0]); in provisionWithNoHals() 143 SystemInterface mockHal = mock(SystemInterface.class); in provisionWithNoHostNameWithoutServerUrl() 144 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in provisionWithNoHostNameWithoutServerUrl() 160 SystemInterface mockHal = mock(SystemInterface.class); in provisionWithNoHostNameWithServerUrl() 161 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in provisionWithNoHostNameWithServerUrl() 179 SystemInterface mockHal = mock(SystemInterface.class); in provisionSuccess() 184 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in provisionSuccess() 196 SystemInterface mockHal = mock(SystemInterface.class); in fetchEekFails() 197 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in fetchEekFails() [all …]
|
D | SystemInterfaceTest.java | 53 import com.android.rkpdapp.interfaces.SystemInterface; 107 SystemInterface[] instances = ServiceManagerInterface.getAllInstances(); in testGetDeclaredInstances() 111 .map(SystemInterface::getServiceName) in testGetDeclaredInstances() 132 SystemInterface[] instances = ServiceManagerInterface.getAllInstances(); in testGetAllInstancesWithUnsupportedService() 143 SystemInterface ignored = ServiceManagerInterface.getInstance(SERVICE); in testGetInstanceWithUnsupportedService() 153 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGenerateKey() 165 SystemInterface systemInterface = mockSystemInterfaceFailure(new RemoteException()); in testGenerateKeyFailureRemoteException() 179 SystemInterface systemInterface = mockSystemInterfaceFailure( in testGenerateKeyFailureServiceSpecificException() 194 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_P256, in testGenerateCSRPreV3P256() 220 SystemInterface systemInterface = mockSystemInterface(CborUtils.EC_CURVE_25519, in testGenerateCSRPreV3Ed25519() [all …]
|
D | RemoteProvisioningServiceTest.java | 39 import com.android.rkpdapp.interfaces.SystemInterface; 75 SystemInterface mockHal = mock(SystemInterface.class); in getRegistrationSuccess() 77 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in getRegistrationSuccess() 108 SystemInterface mockHal = mock(SystemInterface.class); in getRegistrationHandlesCallbackFailure() 110 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in getRegistrationHandlesCallbackFailure() 123 ServiceManagerInterface.setInstances(new SystemInterface[0]); in getRegistrationWithInvalidHalName()
|
D | BootReceiverTest.java | 35 import com.android.rkpdapp.interfaces.SystemInterface; 58 SystemInterface mockHal = mock(SystemInterface.class); in verifyBootWorkers() 59 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in verifyBootWorkers()
|
D | ProvisionerTest.java | 43 import com.android.rkpdapp.interfaces.SystemInterface; 106 SystemInterface mockSystem = mock(SystemInterface.class); in testProvisionerUsesCorrectBatchSize() 128 SystemInterface mockSystem = mock(SystemInterface.class); in testProvisionerHandlesExceptionOnGetBatchSize()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | ServiceManagerInterface.java | 33 private static SystemInterface[] sInstances; 39 private static SystemInterface tryCreateSystemInterface(IRemotelyProvisionedComponent binder, in tryCreateSystemInterface() 42 return new SystemInterface(binder, serviceName); in tryCreateSystemInterface() 64 public static SystemInterface[] getAllInstances() { in getAllInstances() 69 .toArray(SystemInterface[]::new); in getAllInstances() 82 .toArray(SystemInterface[]::new); in getAllInstances() 93 public static SystemInterface getInstance(String serviceName) { in getInstance() 96 return new SystemInterface(sBinders.get(serviceName), serviceName); in getInstance() 101 for (SystemInterface i : sInstances) { in getInstance() 109 return new SystemInterface(getBinder(serviceName), serviceName); in getInstance() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/tests/util/src/com/android/rkpdapp/testutil/ |
D | SystemInterfaceSelector.java | 25 import com.android.rkpdapp.interfaces.SystemInterface; 31 public static SystemInterface getSystemInterfaceForServiceName(String serviceName) { in getSystemInterfaceForServiceName() 32 SystemInterface matchingInterface = null; in getSystemInterfaceForServiceName() 33 for (SystemInterface systemInterface: ServiceManagerInterface.getAllInstances()) { in getSystemInterfaceForServiceName()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/ |
D | GarageModeRecorderTest.java | 38 import com.android.car.systeminterface.SystemInterface; 59 private SystemInterface mSystemInterface; 77 .spyStatic(SystemInterface.class) in onSessionBuilder() 88 doReturn(mSystemInterface).when(() -> CarLocalServices.getService(SystemInterface.class)); in setup()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/ |
D | Provisioner.java | 30 import com.android.rkpdapp.interfaces.SystemInterface; 80 public void provisionKeys(ProvisioningAttempt metrics, SystemInterface systemInterface, in provisionKeys() 116 SystemInterface systemInterface) in generateKeys() 127 SystemInterface systemInterface, GeekResponse geekResponse) in fetchCertificates() 148 SystemInterface systemInterface, in batchProvision()
|
D | PeriodicProvisioner.java | 33 import com.android.rkpdapp.interfaces.SystemInterface; 95 SystemInterface[] irpcs = ServiceManagerInterface.getAllInstances(); 155 private void recordKeyPoolStatsAtom(SystemInterface irpc) {
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarUxRestrictionsManagerServiceTest.java | 65 import com.android.car.systeminterface.SystemInterface; 108 private SystemInterface mMockSystemInterface; 111 private SystemInterface mOriginalSystemInterface; 118 mOriginalSystemInterface = CarLocalServices.getService(SystemInterface.class); in setUp() 119 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 120 CarLocalServices.addService(SystemInterface.class, mMockSystemInterface); in setUp() 137 CarLocalServices.removeServiceForTest(SystemInterface.class); in tearDown() 138 CarLocalServices.addService(SystemInterface.class, mOriginalSystemInterface); in tearDown()
|
D | CarLocationServiceTest.java | 51 import com.android.car.systeminterface.SystemInterface; 98 private SystemInterface mMockSystemInterface; 115 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 116 CarLocalServices.addService(SystemInterface.class, mMockSystemInterface); in setUp()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeControllerTest.java | 53 import com.android.car.systeminterface.SystemInterface; 85 @Mock private SystemInterface mSystemInterfaceMock; 108 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 109 CarLocalServices.addService(SystemInterface.class, mSystemInterfaceMock); in setUp() 135 CarLocalServices.removeServiceForTest(SystemInterface.class); in tearDown()
|
D | GarageModeTest.java | 45 import com.android.car.systeminterface.SystemInterface; 89 private SystemInterface mSystemInterface; 103 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 104 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in setUp()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageModeController.java | 37 import com.android.car.systeminterface.SystemInterface; 134 SystemInterface systemInterface = CarLocalServices.getService(SystemInterface.class); in sendBroadcast()
|
D | GarageModeRecorder.java | 25 import com.android.car.systeminterface.SystemInterface; 81 SystemInterface systemInterface = CarLocalServices.getService(SystemInterface.class); in GarageModeRecorder()
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | SystemInterface.java | 39 public class SystemInterface implements ActivityManagerInterface, class 51 SystemInterface(ActivityManagerInterface activityManagerInterface, in SystemInterface() method in SystemInterface 320 public SystemInterface build() { in build() 321 return new SystemInterface(Objects.requireNonNull(mActivityManagerInterface), in build()
|
/packages/modules/RemoteKeyProvisioning/app/tests/avf/src/com/android/avf/rkpdapp/e2etest/ |
D | AvfIntegrationTest.java | 37 import com.android.rkpdapp.interfaces.SystemInterface; 99 SystemInterface systemInterface = in setUp() 101 ServiceManagerInterface.setInstances(new SystemInterface[] {systemInterface}); in setUp()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | ICarImplTest.java | 58 import com.android.car.systeminterface.SystemInterface; 112 private SystemInterface mFakeSystemInterface; 150 mFakeSystemInterface = SystemInterface.Builder.newSystemInterface() in setUp() 211 Context context, SystemInterface systemInterface, in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
|
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/ |
D | RkpdHostTestHelperTests.java | 40 import com.android.rkpdapp.interfaces.SystemInterface; 112 SystemInterface systemInterface = in setUp() 114 ServiceManagerInterface.setInstances(new SystemInterface[] {systemInterface}); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/ |
D | RemoteAccessStorageUnitTest.java | 31 import com.android.car.systeminterface.SystemInterface; 51 private SystemInterface mSystemInterface;
|
/packages/services/Car/service/src/com/android/car/ |
D | CarServiceImpl.java | 34 import com.android.car.systeminterface.SystemInterface; 75 SystemInterface.Builder.defaultSystemInterface(this).build()) in onCreate()
|
D | UptimeTracker.java | 23 import com.android.car.systeminterface.SystemInterface; 100 UptimeTracker(File file, long snapshotInterval, SystemInterface systemInterface) { in UptimeTracker()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RemoteProvisioningService.java | 36 import com.android.rkpdapp.interfaces.SystemInterface; 78 SystemInterface systemInterface; in getRegistration()
|
D | RegistrationBinder.java | 35 import com.android.rkpdapp.interfaces.SystemInterface; 64 private final SystemInterface mSystemInterface; 73 public RegistrationBinder(Context context, int clientUid, SystemInterface systemInterface, in RegistrationBinder()
|