Home
last modified time | relevance | path

Searched refs:HalPropConfig (Results 1 – 25 of 36) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/hal/
DDiagnosticHalService.java117 protected final SparseArray<HalPropConfig> mVehiclePropertyToConfig = new SparseArray<>();
120 protected final SparseArray<HalPropConfig> mSensorTypeToConfig = new SparseArray<>();
133 public void takeProperties(Collection<HalPropConfig> properties) { in takeProperties()
137 for (HalPropConfig vp : properties) { in takeProperties()
170 protected int getTokenForProperty(HalPropConfig propConfig) { in getTokenForProperty()
282 HalPropConfig propConfig; in requestDiagnosticStart()
312 HalPropConfig propConfig; in requestDiagnosticStop()
341 HalPropConfig propConfig; in getCurrentDiagnosticValue()
367 private HalPropConfig getPropConfig(int halPropId) { in getPropConfig()
368 HalPropConfig config; in getPropConfig()
[all …]
DVehicleHal.java136 private final SparseArray<HalPropConfig> mAllProperties = new SparseArray<>();
324 HalPropConfig[] configs; in fetchAllPropConfigs()
337 for (HalPropConfig p : configs) { in fetchAllPropConfigs()
482 ArrayMap<HalServiceBase, ArrayList<HalPropConfig>> configsForAllServices; in priorityInit()
486 ArrayList<HalPropConfig> configsForService = new ArrayList(); in priorityInit()
494 HalPropConfig config = mAllProperties.get(propId); in priorityInit()
501 HalPropConfig config = mAllProperties.get(prop); in priorityInit()
512 for (Map.Entry<HalServiceBase, ArrayList<HalPropConfig>> entry in priorityInit()
515 ArrayList<HalPropConfig> configsForService = entry.getValue(); in priorityInit()
710 HalPropConfig config; in createVhalSubscribeOptionsLocked()
[all …]
DEvsHalService.java60 private final SparseArray<HalPropConfig> mProperties = new SparseArray();
119 HalPropConfig config = mProperties.valueAt(i); in init()
141 public void takeProperties(Collection<HalPropConfig> configs) { in takeProperties()
147 for (HalPropConfig config : configs) { in takeProperties()
DPropertyHalService.java394 private final SparseArray<HalPropConfig> mHalPropIdToPropConfig =
611 HalPropConfig halPropConfig; in parseGetAsyncResults()
1075 HalPropConfig halPropConfig = mHalPropIdToPropConfig.valueAt(i); in getPropertyList()
1098 HalPropConfig halPropConfig; in getProperty()
1293 public void takeProperties(Collection<HalPropConfig> halPropConfigs) { in takeProperties()
1294 for (HalPropConfig halPropConfig : halPropConfigs) { in takeProperties()
1314 HalPropConfig customizePermission = mVehicleHal.getPropConfig( in takeProperties()
1476 HalPropConfig halPropConfig = mHalPropIdToPropConfig.get(halPropId); in onHalEvents()
1613 HalPropConfig halPropConfig = mHalPropIdToPropConfig.valueAt(i); in dump()
1776 HalPropConfig halPropConfig = mHalPropIdToPropConfig.get(halPropId); in sendGetInitialValueAndSubscribeUpdateEvent()
[all …]
DPowerHalService.java322 private final SparseArray<HalPropConfig> mProperties = new SparseArray<>();
660 HalPropConfig config; in isConfigFlagSet()
696 HalPropConfig brightnessProperty = mProperties.get(PER_DISPLAY_BRIGHTNESS); in init()
767 public void takeProperties(Collection<HalPropConfig> properties) { in takeProperties()
772 for (HalPropConfig config : properties) { in takeProperties()
DTimeHalService.java149 public void takeProperties(Collection<HalPropConfig> properties) { in takeProperties()
150 for (HalPropConfig property : properties) { in takeProperties()
DClusterHalService.java173 public void takeProperties(@NonNull Collection<HalPropConfig> properties) { in takeProperties()
175 for (HalPropConfig property : properties) { in takeProperties()
DHidlHalPropConfig.java32 public final class HidlHalPropConfig extends HalPropConfig {
DAidlHalPropConfig.java31 public final class AidlHalPropConfig extends HalPropConfig {
DHalServiceBase.java88 public void takeProperties(@NonNull Collection<HalPropConfig> properties) { in takeProperties()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropConfigTest.java274 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_populatesGlobalAreaId()
297 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_convertsIntegerMinMax()
317 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_doesNotConvertIntegerMinMaxIfBothZero()
336 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_convertsLongMinMax()
357 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_doesNotConvertLongMinMaxIfBothZero()
376 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_convertsFloatMinMax()
397 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_doesNotConvertFloatMinMaxIfBothZero()
416 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_doesNotPopulateMinMaxForUnsupportedType()
436 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_aidlHandlesNullSupportedEnumsValues()
447 HalPropConfig halPropConfig = new AidlHalPropConfig(aidlVehiclePropConfig); in toCarPropertyConfig_aidlHandlesSupportedEnumsValues()
[all …]
DVehicleHalTestingHelper.java30 public static HalPropConfig newConfig(int prop) { in newConfig()
43 public static HalPropConfig newSubscribableConfig(int prop) { in newSubscribableConfig()
DEvsHalServiceTest.java60 private static final HalPropConfig EVS_SERVICE_REQUEST =
95 Set<HalPropConfig> offeredProps = ImmutableSet.of( in takesEvsServiceRequestProperty()
192 private void subscribeListener(Collection<HalPropConfig> properties) { in subscribeListener()
197 for (HalPropConfig config : properties) { in subscribeListener()
DInputHalServiceTest.java81 private static final HalPropConfig HW_KEY_INPUT_CONFIG = new AidlHalPropConfig(
83 private static final HalPropConfig HW_ROTARY_INPUT_CONFIG = new AidlHalPropConfig(
85 private static final HalPropConfig HW_CUSTOM_INPUT_CONFIG = new AidlHalPropConfig(
121 Set<HalPropConfig> offeredProps = Set.of(new AidlHalPropConfig( in takesKeyInputProperty()
136 Set<HalPropConfig> offeredProps = Set.of( in takesRotaryInputProperty()
152 Set<HalPropConfig> offeredProps = Set.of( in takesCustomInputProperty()
168 Set<HalPropConfig> offeredProps = Set.of( in takesKeyAndRotaryAndCustomInputProperty()
DDiagnosticHalServiceTest.java103 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in setUp()
201 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in testRequestDiagnosticStartRateFitToMinRate()
212 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in testRequestDiagnosticStartRateFitToMaxRate()
DPropertyHalServiceTest.java198 HalPropConfig mockPropConfig1 = mock(HalPropConfig.class); in setUp()
207 HalPropConfig mockPropConfig2 = mock(HalPropConfig.class); in setUp()
220 HalPropConfig mockPropConfig3 = mock(HalPropConfig.class); in setUp()
2258 HalPropConfig mockPropConfig = mock(HalPropConfig.class); in setProperty_handlesHalAndMgrPropIdMismatch()
2491 HalPropConfig vendor1Config = mock(HalPropConfig.class); in testNoCustomizeVendorPermission()
2506 HalPropConfig mockVendorPermConfig = mock(HalPropConfig.class); in testCustomizeVendorPermission()
2521 HalPropConfig vendor1Config = mock(HalPropConfig.class); in testCustomizeVendorPermission()
2523 HalPropConfig vendor2Config = mock(HalPropConfig.class); in testCustomizeVendorPermission()
2525 HalPropConfig vendor3Config = mock(HalPropConfig.class); in testCustomizeVendorPermission()
DTimeHalServiceTest.java52 private static final HalPropConfig ANDROID_TIME_PROP =
55 private static final HalPropConfig CAR_TIME_PROP =
DClusterHalServiceTest.java114 private static List<HalPropConfig> getFullProperties() { in getFullProperties()
123 private static List<HalPropConfig> getCoreProperties() { in getCoreProperties()
131 private ClusterHalService createLightModeServiceWithProperties(List<HalPropConfig> properties) { in createLightModeServiceWithProperties()
DVmsHalServiceTest.java113 HalPropConfig halPropConfig = new AidlHalPropConfig(propConfig); in initHalService()
167 HalPropConfig halPropConfig = new AidlHalPropConfig(propConfig); in testCoreId_IntegerOverflow()
185 HalPropConfig vmsHalPropConfig = new AidlHalPropConfig(vmsPropConfig); in testTakeSupportedProperties()
189 HalPropConfig otherHalPropConfig = new AidlHalPropConfig(otherPropConfig); in testTakeSupportedProperties()
/packages/services/Car/service/src/com/android/car/
DHidlVehicleStub.java38 import com.android.car.hal.HalPropConfig;
154 public HalPropConfig[] getAllPropConfigs() throws RemoteException { in getAllPropConfigs()
408 private static HalPropConfig[] vehiclePropConfigsToHalPropConfigs( in vehiclePropConfigsToHalPropConfigs()
411 HalPropConfig[] configs = new HalPropConfig[configSize]; in vehiclePropConfigsToHalPropConfigs()
423 private HalPropConfig[] getAllPropConfigsThroughMultipleRequests( in getAllPropConfigsThroughMultipleRequests()
DVehicleStub.java27 import com.android.car.hal.HalPropConfig;
324 public abstract HalPropConfig[] getAllPropConfigs() in getAllPropConfigs()
DAidlVehicleStub.java56 import com.android.car.hal.HalPropConfig;
266 public HalPropConfig[] getAllPropConfigs() in getAllPropConfigs()
273 HalPropConfig[] configs = new HalPropConfig[size]; in getAllPropConfigs()
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVehicleStub.java49 import com.android.car.hal.HalPropConfig;
94 private final SparseArray<HalPropConfig> mPropConfigsByPropId;
308 public HalPropConfig[] getAllPropConfigs() { in getAllPropConfigs()
309 HalPropConfig[] propConfigs = new HalPropConfig[mPropConfigsByPropId.size()]; in getAllPropConfigs()
329 HalPropConfig halPropConfig = mPropConfigsByPropId.get(propId); in getAccess()
612 private SparseArray<HalPropConfig> extractPropConfigs(SparseArray<ConfigDeclaration> in extractPropConfigs()
614 SparseArray<HalPropConfig> propConfigsByPropId = new SparseArray<>(); in extractPropConfigs()
727 private void overrideConfigsForSpecialProp(SparseArray<HalPropConfig> fakePropConfigsByPropId) in overrideConfigsForSpecialProp()
729 HalPropConfig[] realVehiclePropConfigs = mRealVehicle.getAllPropConfigs(); in overrideConfigsForSpecialProp()
731 HalPropConfig propConfig = realVehiclePropConfigs[i]; in overrideConfigsForSpecialProp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVehicleStubUnitTest.java65 import com.android.car.hal.HalPropConfig;
166 when(mMockRealVehicleStub.getAllPropConfigs()).thenReturn(new HalPropConfig[0]); in setup()
174 HalPropConfig[] allPropConfig = fakeVehicleStub.getAllPropConfigs(); in testGetAllPropConfigsWithoutCustomConfig()
175 HalPropConfig propConfigInfo = getPropConfigByPropId(allPropConfig, in testGetAllPropConfigsWithoutCustomConfig()
177 HalPropConfig propConfigWindow = getPropConfigByPropId(allPropConfig, in testGetAllPropConfigsWithoutCustomConfig()
196 HalPropConfig[] allPropConfig = fakeVehicleStub.getAllPropConfigs(); in testGetAllPropConfigsWithCustomConfigHasExistingPropId()
197 HalPropConfig propConfig = getPropConfigByPropId(allPropConfig, in testGetAllPropConfigsWithCustomConfigHasExistingPropId()
216 HalPropConfig[] allPropConfig = fakeVehicleStub.getAllPropConfigs(); in testGetAllPropConfigsWithCustomConfigHasNonExistingPropId()
217 HalPropConfig propConfig = getPropConfigByPropId(allPropConfig, 123); in testGetAllPropConfigsWithCustomConfigHasNonExistingPropId()
229 when(mMockRealVehicleStub.getAllPropConfigs()).thenReturn(new HalPropConfig[]{ in testGetAllPropConfigsWithSpecialProp()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DHidlVehicleStubUnitTest.java51 import com.android.car.hal.HalPropConfig;
162 HalPropConfig[] configs = mHidlVehicleStub.getAllPropConfigs(); in testGetAllPropConfigsHidl()
211 HalPropConfig[] configs = mHidlVehicleStub.getAllPropConfigs(); in testGetAllPropConfigsHidlMultipleRequests()
213 HalPropConfig[] expectedConfigs = new HalPropConfig[expectedConfigsById.size()]; in testGetAllPropConfigsHidlMultipleRequests()
218 Comparator<HalPropConfig> configCmp = in testGetAllPropConfigsHidlMultipleRequests()

12