Home
last modified time | relevance | path

Searched refs:SystemInterface (Results 1 – 25 of 58) sorted by relevance

123

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DPeriodicProvisionerTests.java46 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 …]
DSystemInterfaceTest.java53 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 …]
DRemoteProvisioningServiceTest.java39 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()
DBootReceiverTest.java35 import com.android.rkpdapp.interfaces.SystemInterface;
58 SystemInterface mockHal = mock(SystemInterface.class); in verifyBootWorkers()
59 ServiceManagerInterface.setInstances(new SystemInterface[]{mockHal}); in verifyBootWorkers()
DProvisionerTest.java43 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/
DServiceManagerInterface.java33 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/
DSystemInterfaceSelector.java25 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/
DGarageModeRecorderTest.java38 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/
DProvisioner.java30 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()
DPeriodicProvisioner.java33 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/
DCarUxRestrictionsManagerServiceTest.java65 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()
DCarLocationServiceTest.java51 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/
DGarageModeControllerTest.java53 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()
DGarageModeTest.java45 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/
DGarageModeController.java37 import com.android.car.systeminterface.SystemInterface;
134 SystemInterface systemInterface = CarLocalServices.getService(SystemInterface.class); in sendBroadcast()
DGarageModeRecorder.java25 import com.android.car.systeminterface.SystemInterface;
81 SystemInterface systemInterface = CarLocalServices.getService(SystemInterface.class); in GarageModeRecorder()
/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemInterface.java39 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/
DAvfIntegrationTest.java37 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/
DICarImplTest.java58 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/
DRkpdHostTestHelperTests.java40 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/
DRemoteAccessStorageUnitTest.java31 import com.android.car.systeminterface.SystemInterface;
51 private SystemInterface mSystemInterface;
/packages/services/Car/service/src/com/android/car/
DCarServiceImpl.java34 import com.android.car.systeminterface.SystemInterface;
75 SystemInterface.Builder.defaultSystemInterface(this).build()) in onCreate()
DUptimeTracker.java23 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/
DRemoteProvisioningService.java36 import com.android.rkpdapp.interfaces.SystemInterface;
78 SystemInterface systemInterface; in getRegistration()
DRegistrationBinder.java35 import com.android.rkpdapp.interfaces.SystemInterface;
64 private final SystemInterface mSystemInterface;
73 public RegistrationBinder(Context context, int clientUid, SystemInterface systemInterface, in RegistrationBinder()

123