/packages/apps/Car/Settings/src/com/android/car/settings/units/ |
D | UnitsMap.java | 30 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 …]
|
D | CarUnitsManager.java | 105 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()
|
D | UnitsBasePreferenceController.java | 90 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()
|
D | UnitsFuelConsumptionPreferenceController.java | 48 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()
|
D | UnitsEnergyConsumptionPreferenceController.java | 51 protected String generateSummaryFromUnit(Unit unit) { in generateSummaryFromUnit() 56 protected String generateEntryStringFromUnit(Unit unit) { in generateEntryStringFromUnit() 71 private String getAbbreviationByUnit(Unit unit) { in getAbbreviationByUnit()
|
D | Unit.java | 26 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/ |
D | ShadowCarUnitsManager.java | 20 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/ |
D | UnitsBasePreferenceControllerTest.java | 52 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/ |
D | readme.md | 1 Unit test suite for CarDialerApp using Robolectric.
|
/packages/apps/Car/Messenger/tests/robotests/ |
D | readme.md | 1 Unit test suite for CarMessengerApp using Robolectric.
|
/packages/apps/Car/Cluster/tests/robotests/ |
D | readme.md | 1 Unit test suite for DirectRenderingCluster using Robolectric.
|
/packages/apps/Car/Settings/tests/robotests/ |
D | readme.md | 1 Unit test suite for SettingsLib using Robolectric.
|
/packages/apps/Car/Dialer/tests/robotests/ |
D | readme.md | 1 Unit test suite for CarDialerApp using Robolectric.
|
/packages/apps/TV/tests/robotests/ |
D | README.md | 1 Unit test suite for Live Channels using Robolectric.
|
/packages/services/Car/service/src/com/android/car/ |
D | Standards.kt | 29 internal inline fun <T> T.guard(block: (T) -> Unit): T { in guard()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/ |
D | InstrumentClusterFragment.java | 133 .setDisplayUnits(Distance.Unit.FEET) in getNavStateData() 172 .setDisplayUnits(Distance.Unit.KILOMETERS) in getNavStateData()
|
/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/ |
D | RuntimePermissionsUpgradeControllerTest.kt | 206 val completionCallback = CompletableFuture<Unit>() in <lambda>() 208 completionCallback.complete(Unit) in <lambda>()
|
/packages/apps/PermissionController/tests/inprocess/src/com/android/permissioncontroller/ |
D | EspressoPreferenceUtils.kt | 40 fun <T : View> runOnView(onViewAction: (T) -> Unit): ViewAction { in runOnView()
|
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/ |
D | Android.bp | 15 // Unit tests for the experimental car service
|
/packages/modules/NetworkStack/tests/lib/multivariant/com/android/testutils/ |
D | MiscAsserts.kt | 84 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: () -> Unit) { in assertRunsInAtMost()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | KotlinUtils.kt | 865 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/ |
D | PermissionControllerServiceModel.kt | 67 onChangedFun: (t: T?) -> Unit in <lambda>()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | SmartUpdateMediatorLiveData.kt | 205 onUpdateFun: ((K) -> Unit)? = null in <lambda>()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | NavStateController.java | 345 if (distance == null || distance.getDisplayUnits() == Distance.Unit.UNKNOWN) { in formatDistance()
|
/packages/modules/DnsResolver/ |
D | README-DoT.md | 107 Unit tests for DoT are in `resolv_tls_unit_test.cpp`. They cover all the classes except
|