Home
last modified time | relevance | path

Searched refs:Unit (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsMap.java30 protected static final Unit METER_PER_SEC = new Unit(VehicleUnit.METER_PER_SEC,
32 protected static final Unit RPM = new Unit(VehicleUnit.RPM,
34 protected static final Unit HERTZ = new Unit(VehicleUnit.HERTZ,
36 protected static final Unit PERCENTILE = new Unit(VehicleUnit.PERCENTILE,
38 protected static final Unit MILLIMETER = new Unit(VehicleUnit.MILLIMETER,
40 protected static final Unit METER = new Unit(VehicleUnit.METER,
42 protected static final Unit KILOMETER = new Unit(VehicleUnit.KILOMETER,
44 protected static final Unit MILE = new Unit(VehicleUnit.MILE,
46 protected static final Unit CELSIUS = new Unit(VehicleUnit.CELSIUS,
48 protected static final Unit FAHRENHEIT = new Unit(VehicleUnit.FAHRENHEIT,
[all …]
DCarUnitsManager.java105 protected Unit[] getUnitsSupportedByProperty(int propertyId) { in getUnitsSupportedByProperty()
110 List<Unit> units = new ArrayList<Unit>(); in getUnitsSupportedByProperty()
118 Unit[] result = new Unit[availableUnitsId.size()]; in getUnitsSupportedByProperty()
121 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
128 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
135 protected Unit getUnitUsedByProperty(int propertyId) { in getUnitUsedByProperty()
DUnitsBasePreferenceController.java90 private Unit[] mSupportedUnits;
91 private Unit mUnitBeingUsed;
92 private Unit mDefaultUnit;
146 Unit unit = mSupportedUnits[i]; in getEntriesOfSupportedUnits()
152 protected String generateSummaryFromUnit(Unit unit) { in generateSummaryFromUnit()
156 protected String generateEntryStringFromUnit(Unit unit) { in generateEntryStringFromUnit()
176 private Unit getUnitUsedByThisProperty() { in getUnitUsedByThisProperty()
177 Unit savedUnit = mCarUnitsManager.getUnitUsedByProperty(getPropertyId()); in getUnitUsedByThisProperty()
DUnitsFuelConsumptionPreferenceController.java48 protected String generateSummaryFromUnit(Unit unit) { in generateSummaryFromUnit()
53 protected String generateEntryStringFromUnit(Unit unit) { in generateEntryStringFromUnit()
58 private String getAbbreviationByVolumeUnit(Unit unit) { in getAbbreviationByVolumeUnit()
81 private String getPronouncedNameByVolumeUnit(Unit unit) { in getPronouncedNameByVolumeUnit()
DUnitsEnergyConsumptionPreferenceController.java51 protected String generateSummaryFromUnit(Unit unit) { in generateSummaryFromUnit()
56 protected String generateEntryStringFromUnit(Unit unit) { in generateEntryStringFromUnit()
71 private String getAbbreviationByUnit(Unit unit) { in getAbbreviationByUnit()
DUnit.java26 public class Unit { class
31 Unit(@VehicleUnit.Enum int unitId, @StringRes int unitAbbreviationResId, in Unit() method in Unit
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUnitsManager.java20 import com.android.car.settings.units.Unit;
36 private static HashMap<Integer, Unit[]> sSupportedUnits = new HashMap<>();
37 private static HashMap<Integer, Unit> sUnitsBeingUsed = new HashMap<>();
50 protected static Unit[] getUnitsSupportedByProperty(int propertyId) { in getUnitsSupportedByProperty()
55 protected static Unit getUnitUsedByProperty(int propertyId) { in getUnitUsedByProperty()
83 public static void setUnitsSupportedByProperty(int propertyId, Unit[] units) { in setUnitsSupportedByProperty()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java52 private static final Unit[] AVAILABLE_UNITS =
54 private static final Unit DEFAULT_UNIT = UnitsMap.YEAR;
175 Unit newUnit = UnitsMap.SECS; in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
186 Unit newUnit = UnitsMap.SECS; in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitAbbreviationAsSummary()
/packages/apps/Car/Dialer/tests/unittests/
Dreadme.md1 Unit test suite for CarDialerApp using Robolectric.
/packages/apps/Car/Messenger/tests/robotests/
Dreadme.md1 Unit test suite for CarMessengerApp using Robolectric.
/packages/apps/Car/Cluster/tests/robotests/
Dreadme.md1 Unit test suite for DirectRenderingCluster using Robolectric.
/packages/apps/Car/Settings/tests/robotests/
Dreadme.md1 Unit test suite for SettingsLib using Robolectric.
/packages/apps/Car/Dialer/tests/robotests/
Dreadme.md1 Unit test suite for CarDialerApp using Robolectric.
/packages/apps/TV/tests/robotests/
DREADME.md1 Unit test suite for Live Channels using Robolectric.
/packages/services/Car/service/src/com/android/car/
DStandards.kt29 internal inline fun <T> T.guard(block: (T) -> Unit): T { in guard()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DInstrumentClusterFragment.java133 .setDisplayUnits(Distance.Unit.FEET) in getNavStateData()
172 .setDisplayUnits(Distance.Unit.KILOMETERS) in getNavStateData()
/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt206 val completionCallback = CompletableFuture<Unit>() in <lambda>()
208 completionCallback.complete(Unit) in <lambda>()
/packages/apps/PermissionController/tests/inprocess/src/com/android/permissioncontroller/
DEspressoPreferenceUtils.kt40 fun <T : View> runOnView(onViewAction: (T) -> Unit): ViewAction { in runOnView()
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/
DAndroid.bp15 // Unit tests for the experimental car service
/packages/modules/NetworkStack/tests/lib/multivariant/com/android/testutils/
DMiscAsserts.kt84 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: () -> Unit) { in assertRunsInAtMost()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt865 observe: LD.(Observer<T>) -> Unit = { observeForever(it) }, in getInitializedValue()
911 crossinline action: suspend CoroutineScope.(T) -> Unit in forEachInParallel()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceModel.kt67 onChangedFun: (t: T?) -> Unit in <lambda>()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/
DSmartUpdateMediatorLiveData.kt205 onUpdateFun: ((K) -> Unit)? = null in <lambda>()
/packages/apps/Car/Cluster/src/android/car/cluster/
DNavStateController.java345 if (distance == null || distance.getDisplayUnits() == Distance.Unit.UNKNOWN) { in formatDistance()
/packages/modules/DnsResolver/
DREADME-DoT.md107 Unit tests for DoT are in `resolv_tls_unit_test.cpp`. They cover all the classes except

12