Home
last modified time | relevance | path

Searched refs:deviceInfoUtils (Results 1 – 18 of 18) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DFragmentUtils.kt38 private lateinit var deviceInfoUtils: DeviceInfoUtils variable
56 deviceInfoUtils = hiltEntryPoint.deviceInfoUtils() in setupMenu()
64 deviceInfoUtils.isSendFeedbackAvailable(requireContext()) in setupMenu()
70 deviceInfoUtils.openSendFeedbackActivity(requireActivity()) in setupMenu()
77 deviceInfoUtils.openHCGetStartedLink(requireActivity()) in setupMenu()
DDeviceInfoUtils.kt111 fun deviceInfoUtils(): DeviceInfoUtils in deviceInfoUtils() method
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppsFragmentTest.kt99 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.ConnectedAppsFragmentTest
117 (deviceInfoUtils as FakeDeviceInfoUtils).reset() in tearDown()
263 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in testWithNoApps_bothFeedbackAndPlayStoreAvailable_bothShouldBeDisplayedInThingsToTryOptions()
264 deviceInfoUtils.setSendFeedbackAvailability(true) in testWithNoApps_bothFeedbackAndPlayStoreAvailable_bothShouldBeDisplayedInThingsToTryOptions()
293 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in testWithNoApps_bothFeedbackAndPlayStoreAreNotAvailable_thingsToTryOptionsShouldNotBeDisplayed()
294 deviceInfoUtils.setSendFeedbackAvailability(false) in testWithNoApps_bothFeedbackAndPlayStoreAreNotAvailable_thingsToTryOptionsShouldNotBeDisplayed()
341 (deviceInfoUtils as FakeDeviceInfoUtils).setSendFeedbackAvailability(false) in eitherFeedbackOrPlayStoreAvailable_helpAndFeedbackPreferenceShouldBeDisplayed()
342 deviceInfoUtils.setPlayStoreAvailability(true) in eitherFeedbackOrPlayStoreAvailable_helpAndFeedbackPreferenceShouldBeDisplayed()
358 (deviceInfoUtils as FakeDeviceInfoUtils).setSendFeedbackAvailability(false) in bothFeedbackAndPlayStoreNotAvailable_helpAndFeedbackPreferenceShouldNotBeDisplayed()
359 deviceInfoUtils.setPlayStoreAvailability(false) in bothFeedbackAndPlayStoreNotAvailable_helpAndFeedbackPreferenceShouldNotBeDisplayed()
[all …]
DHelpAndFeedbackFragmentTest.kt49 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.HelpAndFeedbackFragmentTest
59 (deviceInfoUtils as FakeDeviceInfoUtils).setSendFeedbackAvailability(true) in helpAndFeedbackFragment_FeedbackAvailable_sendFeedbackIsAvailable()
80 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in helpAndFeedbackFragment_playStoreAvailable_playStoreLinksAreDisplayed()
102 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in helpAndFeedbackFragment_playStoreNotAvailable_playStoreLinksNotDisplayed()
119 (deviceInfoUtils as FakeDeviceInfoUtils).setSendFeedbackAvailability(false) in helpAndFeedbackFragment_feedbackNotAvailable_sendFeedbackNotDisplayed()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DHelpAndFeedbackFragment.kt65 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils variable in com.android.healthconnect.controller.permissions.shared.HelpAndFeedbackFragment
103 mSendFeedback?.isVisible = deviceInfoUtils.isSendFeedbackAvailable(requireContext()) in onCreatePreferences()
104 mCheckForUpdates?.isVisible = deviceInfoUtils.isPlayStoreAvailable(requireContext()) in onCreatePreferences()
105 mSeeAllCompatibleApps?.isVisible = deviceInfoUtils.isPlayStoreAvailable(requireContext()) in onCreatePreferences()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/
DConnectedAppsFragment.kt95 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>() variable in com.android.healthconnect.controller.permissions.connectedapps.ConnectedAppsFragment
232 if (deviceInfoUtils.isPlayStoreAvailable(requireContext()) || in <lambda>()
233 deviceInfoUtils.isSendFeedbackAvailable(requireContext())) { in <lambda>()
451 if (deviceInfoUtils.isPlayStoreAvailable(requireContext())) { in <lambda>()
461 deviceInfoUtils.openHCGetStartedLink(requireActivity()) in <lambda>()
480 if (deviceInfoUtils.isPlayStoreAvailable(requireContext()) || in <lambda>()
481 deviceInfoUtils.isSendFeedbackAvailable(requireContext())) { in <lambda>()
484 if (deviceInfoUtils.isPlayStoreAvailable(requireContext())) { in <lambda>()
488 if (deviceInfoUtils.isSendFeedbackAvailable(requireContext())) { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/
DExportDestinationFragmentTest.kt121 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() in <lambda>() constant in com.android.healthconnect.controller.tests.exportimport.ExportDestinationFragmentTest
612 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
624 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
637 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
649 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
661 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
862 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
882 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
903 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
923 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
[all …]
DImportSourceLocationFragmentTest.kt118 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() in <lambda>() constant in com.android.healthconnect.controller.tests.exportimport.ImportSourceLocationFragmentTest
612 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
624 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
637 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
649 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
661 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
862 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
882 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(false) in <lambda>()
903 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
923 (deviceInfoUtils as FakeDeviceInfoUtils).setPlayStoreAvailability(true) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DAppStoreUtilTest.kt38 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils variable in com.android.healthconnect.controller.tests.utiltests.AppStoreUtilTest
50 if (!deviceInfoUtils.isPlayStoreAvailable(context)) { in getAppStoreLink_validPackage_returnsCorrectIntent()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/navigation/
DTrampolineActivity.kt49 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils variable in com.android.healthconnect.controller.navigation.TrampolineActivity
56 if (!deviceInfoUtils.isHealthConnectAvailable(this)) { in onCreate()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt90 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() constant in com.android.healthconnect.controller.tests.navigation.TrampolineActivityTest
113 (deviceInfoUtils as FakeDeviceInfoUtils).setHealthConnectAvailable(true) in setup()
165 (deviceInfoUtils as FakeDeviceInfoUtils).setHealthConnectAvailable(false) in startingActivity_healthConnectNotAvailable_finishesActivity()
193 (deviceInfoUtils as FakeDeviceInfoUtils).setHealthConnectAvailable(true) in homeSettingsIntent_launchesMainActivity()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/
DSafetySourceBroadcastReceiver.kt42 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils variable in com.android.healthconnect.controller.safetycenter.SafetySourceBroadcastReceiver
93 deviceInfoUtils.isHealthConnectAvailable(context) in shouldEnableLegacySettingsEntryPoint()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/
DMigrationActivityTest.kt39 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() constant in com.android.healthconnect.controller.tests.migration.MigrationActivityTest
47 (deviceInfoUtils as FakeDeviceInfoUtils).setHealthConnectAvailable(true) in setup()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DExportDestinationFragment.kt55 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>() variable in com.android.healthconnect.controller.exportimport.ExportDestinationFragment
77 if (deviceInfoUtils.isPlayStoreAvailable(requireContext())) { in <lambda>()
DImportSourceLocationFragment.kt56 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>() variable in com.android.healthconnect.controller.exportimport.ImportSourceLocationFragment
78 if (deviceInfoUtils.isPlayStoreAvailable(requireContext())) { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/migration/
DMigrationActivity.kt233 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>() variable in com.android.healthconnect.controller.migration.MigrationActivity
242 if (!deviceInfoUtils.isHealthConnectAvailable(this)) { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DPermissionsActivity.kt66 @Inject lateinit var deviceInfoUtils: DeviceInfoUtils in <lambda>() variable in com.android.healthconnect.controller.permissions.request.PermissionsActivity
88 if (!deviceInfoUtils.isHealthConnectAvailable(this)) { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DPermissionsActivityTest.kt122 @BindValue val deviceInfoUtils: DeviceInfoUtils = FakeDeviceInfoUtils() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.request.PermissionsActivityTest
165 (deviceInfoUtils as FakeDeviceInfoUtils).setHealthConnectAvailable(false) in <lambda>()