Home
last modified time | relevance | path

Searched refs:DeviceInfoUtils (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DDeviceInfoUtilsTest.java36 assertEquals(0, DeviceInfoUtils.compareMajorMinorVersion("4.8.1", "4.8")); in testMajorMinorVersionCompare()
37 assertEquals(1, DeviceInfoUtils.compareMajorMinorVersion("4.9", "4.8.1")); in testMajorMinorVersionCompare()
38 assertEquals(1, DeviceInfoUtils.compareMajorMinorVersion("5.0", "4.8")); in testMajorMinorVersionCompare()
39 assertEquals(1, DeviceInfoUtils.compareMajorMinorVersion("5", "4.8")); in testMajorMinorVersionCompare()
40 assertEquals(0, DeviceInfoUtils.compareMajorMinorVersion("5", "5.0")); in testMajorMinorVersionCompare()
41 assertEquals(1, DeviceInfoUtils.compareMajorMinorVersion("5-beta1", "4.8")); in testMajorMinorVersionCompare()
42 assertEquals(0, DeviceInfoUtils.compareMajorMinorVersion("4.8.0.0", "4.8")); in testMajorMinorVersionCompare()
43 assertEquals(0, DeviceInfoUtils.compareMajorMinorVersion("4.8-RC1", "4.8")); in testMajorMinorVersionCompare()
44 assertEquals(0, DeviceInfoUtils.compareMajorMinorVersion("4.8", "4.8")); in testMajorMinorVersionCompare()
45 assertEquals(-1, DeviceInfoUtils.compareMajorMinorVersion("3.10", "4.8.0")); in testMajorMinorVersionCompare()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DFeedbackPreferenceController.java26 import com.android.settingslib.DeviceInfoUtils;
44 return !TextUtils.isEmpty(DeviceInfoUtils.getFeedbackReporterPackage(mContext)); in isAvailable()
50 intent.setPackage(DeviceInfoUtils.getFeedbackReporterPackage(mContext)); in updateState()
DKernelVersionPreferenceController.java23 import com.android.settingslib.DeviceInfoUtils;
43 preference.setSummary(DeviceInfoUtils.getFormattedKernelVersion(mContext)); in updateState()
DHardwareInfoPreferenceController.java26 import com.android.settingslib.DeviceInfoUtils;
56 FutureTask<String> msvSuffixTask = new FutureTask<>(() -> DeviceInfoUtils.getMsvSuffix()); in getDeviceModel()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DDeviceInfoUtils.kt23 interface DeviceInfoUtils { interface
38 class DeviceInfoUtilsImpl @Inject constructor() : DeviceInfoUtils { in isHealthConnectAvailable()
111 fun deviceInfoUtils(): DeviceInfoUtils in deviceInfoUtils()
118 fun providesDeviceInfoUtils(): DeviceInfoUtils { in deviceInfoUtils()
/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/
DKernelVersionPreferenceController.java22 import com.android.settingslib.DeviceInfoUtils;
37 return DeviceInfoUtils.getFormattedKernelVersion(mContext); in getSummary()
DSecurityPatchLevelPreferenceController.java29 import com.android.settingslib.DeviceInfoUtils;
43 mCurrentPatch = DeviceInfoUtils.getSecurityPatch(); in SecurityPatchLevelPreferenceController()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java30 public class DeviceInfoUtils { class
172 final KVersion current = DeviceInfoUtils.getMajorMinorSubminorVersion(kernelVersion); in isKernelVersionAtLeast()
173 final KVersion from = DeviceInfoUtils.getMajorMinorSubminorVersion(version); in isKernelVersionAtLeast()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DSecurityPatchPreferenceController.java26 import com.android.settingslib.DeviceInfoUtils;
43 preference.setSummary(DeviceInfoUtils.getSecurityPatch()); in updateState()
DKernelVersionPreferenceController.java26 import com.android.settingslib.DeviceInfoUtils;
43 preference.setSummary(DeviceInfoUtils.getFormattedKernelVersion(getContext())); in updateState()
DHardwareInfoPreferenceController.java30 import com.android.settingslib.DeviceInfoUtils;
76 return new FutureTask<>(() -> DeviceInfoUtils.getMsvSuffix()); in createMsvSuffixTask()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DKernelVersionPreferenceControllerTest.java23 import com.android.settingslib.DeviceInfoUtils;
49 DeviceInfoUtils.getFormattedKernelVersion(mContext)); in getSummary_shouldGetKernalVersion()
/packages/apps/Car/Settings/src/com/android/car/settings/system/hardwareinfo/
DDeviceModelPreferenceController.java27 import com.android.settingslib.DeviceInfoUtils;
44 preference.setSummary(Build.MODEL + DeviceInfoUtils.getMsvSuffix()); in updateState()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeDeviceInfoUtils.kt24 import com.android.healthconnect.controller.utils.DeviceInfoUtils
26 class FakeDeviceInfoUtils : DeviceInfoUtils {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DAboutFragment.java53 import com.android.settingslib.DeviceInfoUtils;
165 final String patch = DeviceInfoUtils.getSecurityPatch(); in onCreatePreferences()
181 findPreference(KEY_DEVICE_MODEL).setSummary(Build.MODEL + DeviceInfoUtils.getMsvSuffix()); in onCreatePreferences()
189 .setSummary(DeviceInfoUtils.getFormattedKernelVersion(getContext())); in onCreatePreferences()
219 if (TextUtils.isEmpty(DeviceInfoUtils.getFeedbackReporterPackage(getActivity()))) { in onCreatePreferences()
460 String reporterPackage = DeviceInfoUtils.getFeedbackReporterPackage(getActivity()); in sendFeedback()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DAppStoreUtilTest.kt23 import com.android.healthconnect.controller.utils.DeviceInfoUtils
38 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DKernelVersionPreferenceControllerTest.java32 import com.android.settingslib.DeviceInfoUtils;
68 DeviceInfoUtils.getFormattedKernelVersion(mContext)); in onCreate_setsSummary()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DAboutState.java135 final String patch = DeviceInfoUtils.getSecurityPatch(); in onCreate()
143 Build.MODEL + DeviceInfoUtils.getMsvSuffix()); in onCreate()
152 .setSummary(DeviceInfoUtils.getFormattedKernelVersion(context)); in onCreate()
183 if (TextUtils.isEmpty(DeviceInfoUtils.getFeedbackReporterPackage(context))) { in onCreate()
455 String reporterPackage = DeviceInfoUtils.getFeedbackReporterPackage(context); in sendFeedback()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/hardwareinfo/
DDeviceModelPreferenceControllerTest.java33 import com.android.settingslib.DeviceInfoUtils;
67 String deviceModel = Build.MODEL + DeviceInfoUtils.getMsvSuffix(); in onCreate_setsSummary()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/navigation/
DTrampolineActivity.kt33 import com.android.healthconnect.controller.utils.DeviceInfoUtils
49 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DHelpAndFeedbackFragment.kt40 import com.android.healthconnect.controller.utils.DeviceInfoUtils
65 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/
DSafetySourceBroadcastReceiver.kt33 import com.android.healthconnect.controller.utils.DeviceInfoUtils
42 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/
DMigrationActivityTest.kt21 import com.android.healthconnect.controller.utils.DeviceInfoUtils
39 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils()
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java22 import static com.android.testutils.DeviceInfoUtils.KVersion;
52 import com.android.testutils.DeviceInfoUtils;
93 final KVersion current = DeviceInfoUtils.getMajorMinorSubminorVersion(kernelVersion); in isUdpOffloadSupportedByKernel()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DExportDestinationFragment.kt40 import com.android.healthconnect.controller.utils.DeviceInfoUtils in <lambda>()
55 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>()

12