Home
last modified time | relevance | path

Searched refs:mFakeHal (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/
DGnssGeofenceProxyTest.java57 private FakeGnssHal mFakeHal; field in GnssGeofenceProxyTest
64 mFakeHal = new FakeGnssHal(); in setUp()
65 GnssNative.setGnssHalForTest(mFakeHal); in setUp()
79 assertThat(mFakeHal.getGeofences()).containsExactly(new FakeGnssHal.GnssHalGeofence( in testAddGeofence()
88 assertThat(mFakeHal.getGeofences()).isEmpty(); in testRemoveGeofence()
95 assertThat(mFakeHal.getGeofences()).containsExactly(new FakeGnssHal.GnssHalGeofence( in testPauseGeofence()
105 assertThat(mFakeHal.getGeofences()).containsExactly(new FakeGnssHal.GnssHalGeofence( in testResumeGeofence()
112 mFakeHal.restartHal(); in testAddGeofence_restart()
114 assertThat(mFakeHal.getGeofences()).containsExactly(new FakeGnssHal.GnssHalGeofence( in testAddGeofence_restart()
122 mFakeHal.restartHal(); in testRemoveGeofence_restart()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java72 private ThermalHalFake mFakeHal; field in ThermalManagerServiceTest
204 mFakeHal = new ThermalHalFake(); in setUp()
209 mService = new ThermalManagerService(mContext, mFakeHal); in setUp()
229 assertListEqualsIgnoringOrder(mFakeHal.mTemperatureList, captor.getAllValues()); in setUp()
236 new ArrayList<>(Arrays.asList(mFakeHal.mSkin1, mFakeHal.mSkin2)), in setUp()
262 assertListEqualsIgnoringOrder(mFakeHal.mTemperatureList, captor.getAllValues()); in testRegister()
278 new ArrayList<>(Arrays.asList(mFakeHal.mSkin1, mFakeHal.mSkin2)), in testRegister()
289 mFakeHal.mCallback.onValues(newBattery); in testNotify()
301 mFakeHal.mCallback.onValues(newSkin); in testNotify()
314 mFakeHal.mCallback.onValues(newBattery); in testNotify()
[all …]