Home
last modified time | relevance | path

Searched refs:permissionType (Results 1 – 25 of 53) sorted by relevance

123

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/
DEntriesViewModel.kt70 permissionType: HealthPermissionType, in loadEntries()
74 loadData(permissionType, packageName = null, selectedDate, period, showDataOrigin = true) in loadEntries()
78 permissionType: HealthPermissionType, in loadEntries()
83 loadData(permissionType, packageName, selectedDate, period, showDataOrigin = false) in loadEntries()
87 permissionType: HealthPermissionType, in loadData()
100 when (permissionType) { in loadData()
107 permissionType, packageName, selectedDate, period, showDataOrigin) in loadData()
117 permissionType, packageName, selectedDate, period, list, showDataOrigin) in loadData()
130 permissionType: HealthPermissionType, in loadAppEntries()
137 LoadDataEntriesInput(permissionType, packageName, selectedDate, period, showDataOrigin) in loadAppEntries()
[all …]
DAllEntriesFragment.kt58 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.data.entries.AllEntriesFragment
76 permissionType, id, showDataOrigin = true)) in <lambda>()
103 permissionType = in <lambda>()
107 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
155 entriesViewModel.loadEntries(permissionType, displayedStartDate, period) in <lambda>()
165 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
172 entriesViewModel.loadEntries(permissionType, date, selectedPeriod) in <lambda>()
175 permissionType, dateNavigationView.getDate(), dateNavigationView.getPeriod()) in <lambda>()
DAppEntriesFragment.kt65 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.data.entries.AppEntriesFragment
83 permissionType, id, showDataOrigin = false)) in <lambda>()
118 permissionType = in <lambda>()
122 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
174 permissionType, packageName, displayedStartDate, period) in <lambda>()
193 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
200 entriesViewModel.loadEntries(permissionType, packageName, date, selectedPeriod) in <lambda>()
203 permissionType, in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DDataEntriesFragmentViewModel.kt56 fun loadData(permissionType: HealthPermissionType, selectedDate: Instant) { in loadData()
62 when (permissionType) { in loadData()
68 loadEntries(permissionType, selectedDate) in loadData()
77 addAggregation(permissionType, selectedDate, list) in loadData()
90 permissionType: HealthPermissionType, in loadAggregation()
93 val input = LoadAggregationInput(permissionType, selectedDate) in loadAggregation()
98 permissionType: HealthPermissionType, in loadEntries()
101 val input = LoadDataEntriesInput(permissionType, selectedDate) in loadEntries()
106 permissionType: HealthPermissionType, in addAggregation()
110 if (permissionType in AGGREGATE_HEADER_DATA_TYPES) { in addAggregation()
[all …]
DDataEntriesFragment.kt78 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.dataentries.DataEntriesFragment
96 permissionType, id, showDataOrigin = true)) in <lambda>()
147 permissionType = in <lambda>()
151 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
199 entriesViewModel.loadData(permissionType, selectedDate) in <lambda>()
208 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
213 entriesViewModel.loadData(permissionType, date) in <lambda>()
215 entriesViewModel.loadData(permissionType, dateNavigationView.getDate()) in <lambda>()
228 entriesViewModel.loadData(permissionType, dateNavigationView.getDate()) in <lambda>()
271 if (permissionType == HealthPermissionType.PLANNED_EXERCISE) { in <lambda>()
DLoadDataAggregationsUseCase.kt75 when (input.permissionType) { in <lambda>()
78 timeFilterRange, StepsRecord.STEPS_COUNT_TOTAL, input.permissionType) in <lambda>()
82 timeFilterRange, DistanceRecord.DISTANCE_TOTAL, input.permissionType) in <lambda>()
88 input.permissionType) in <lambda>()
94 input.permissionType) in <lambda>()
188 val permissionType: HealthPermissionType, constant in com.android.healthconnect.controller.dataentries.LoadAggregationInput
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataaccess/
DHealthDataAccessFragment.kt79 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.dataaccess.HealthDataAccessFragment
113 permissionType = in <lambda>()
124 R.string.can_read, getString(fromPermissionType(permissionType).lowercaseLabel)) in <lambda>()
127 R.string.can_write, getString(fromPermissionType(permissionType).lowercaseLabel)) in <lambda>()
137 bundleOf(PERMISSION_TYPE_KEY to permissionType)) in <lambda>()
144 healthPermissionType = permissionType) in <lambda>()
153 if (permissionType == HealthPermissionType.EXERCISE) { in <lambda>()
157 if (permissionType == HealthPermissionType.SLEEP) { in <lambda>()
165 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
166 viewModel.loadAppMetaDataMap(permissionType) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/
DLoadDataAggregationsUseCase.kt85 when (input.permissionType) { in <lambda>()
92 input.permissionType) in <lambda>()
100 input.permissionType) in <lambda>()
108 input.permissionType) in <lambda>()
116 input.permissionType) in <lambda>()
206 open val permissionType: HealthPermissionType, constant in com.android.healthconnect.controller.data.entries.api.LoadAggregationInput
212 override val permissionType: HealthPermissionType, constant in com.android.healthconnect.controller.data.entries.api.LoadAggregationInput.PeriodAggregation
217 ) : LoadAggregationInput(permissionType, packageName, showDataOrigin)
221 override val permissionType: HealthPermissionType, constant in com.android.healthconnect.controller.data.entries.api.LoadAggregationInput.CustomAggregation
226 ) : LoadAggregationInput(permissionType, packageName, showDataOrigin)
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsWrapper.java46 public int getUidPermission(String permissionType, int uid, int pid) { in getUidPermission() argument
47 return mContext.checkPermission(permissionType, pid, uid); in getUidPermission()
54 public int getUidPermission(String permissionType, int uid) { in getUidPermission() argument
56 return getUidPermission(permissionType, uid, -1); in getUidPermission()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DAccessFragment.kt65 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.data.access.AccessFragment
83 permissionType = in <lambda>()
93 R.string.can_read, getString(fromPermissionType(permissionType).lowercaseLabel)) in <lambda>()
96 R.string.can_write, getString(fromPermissionType(permissionType).lowercaseLabel)) in <lambda>()
101 setTitle(fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
102 viewModel.loadAppMetaDataMap(permissionType) in <lambda>()
108 viewModel.loadAppMetaDataMap(permissionType) in <lambda>()
175 getString(fromPermissionType(permissionType).lowercaseLabel)) in <lambda>()
DLoadAccessUseCase.kt44 permissionType: HealthPermissionType in <lambda>()
51 loadPermissionTypeContributorAppsUseCase.invoke(permissionType) in <lambda>()
63 FitnessPermission(permissionType, PermissionsAccessType.READ).toString())) { in <lambda>()
68 FitnessPermission(permissionType, PermissionsAccessType.WRITE) in <lambda>()
104 permissionType: HealthPermissionType
DLoadPermissionTypeContributorAppsUseCase.kt43 override suspend operator fun invoke(permissionType: HealthPermissionType): List<AppMetadata> = in <lambda>()
54 fromHealthPermissionCategory(it.permissionCategory) == permissionType && in <lambda>()
69 suspend fun invoke(permissionType: HealthPermissionType): List<AppMetadata>
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entriesandaccess/
DEntiresAndAccessFragment.kt43 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.data.entriesandaccess.EntriesAndAccessFragment
55 permissionType = in <lambda>()
66 viewPager.adapter = ViewPagerAdapter(this, permissionType) in <lambda>()
84 private val permissionType: HealthPermissionType in <lambda>() constant in com.android.healthconnect.controller.data.entriesandaccess.EntriesAndAccessFragment
91 fragment.arguments = bundleOf(PERMISSION_TYPE_KEY to permissionType) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/alldata/
DAllDataViewModel.kt72 fun addToDeleteSet(permissionType: HealthPermissionType) { in addToDeleteSet()
73 setOfPermissionTypesToBeDeleted.add(permissionType) in addToDeleteSet()
76 fun removeFromDeleteSet(permissionType: HealthPermissionType) { in removeFromDeleteSet()
77 setOfPermissionTypesToBeDeleted.remove(permissionType) in removeFromDeleteSet()
DAllDataFragment.kt196 .forEach { permissionType -> in <lambda>() method
198 getPermissionTypePreference(permissionType, categoryIcon)) in <lambda>()
269 permissionType: HealthPermissionType, in <lambda>()
274 if (permissionType in viewModel.getDeleteSet()) { in <lambda>()
280 FitnessPermissionStrings.fromPermissionType(permissionType).uppercaseLabel) in <lambda>()
282 preference.setHealthPermissionType(permissionType) in <lambda>()
290 bundleOf(PERMISSION_TYPE_KEY to permissionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadMostRecentAggregationsUseCase.kt62 activityPermissionTypesWithAggregations.forEach { permissionType -> in <lambda>() method
65 loadLastDateWithPriorityDataUseCase.invoke(permissionType)) { in <lambda>()
76 getLastAvailableActivityAggregation(lastDateWithData, permissionType) in <lambda>()
117 permissionType = healthPermissionType, in <lambda>()
165 permissionType = HealthPermissionType.SLEEP, in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/entrydetails/
DDataEntryDetailsFragmentTest.kt128 permissionType = SLEEP, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_showsFragment()
139 permissionType = SLEEP, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_error_showsError()
150 permissionType = SLEEP, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_loading_showsLoading()
173 permissionType = SLEEP, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_withData_showsItem()
194 permissionType = SLEEP, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_withDetails_showsItem_showsDetails()
209 permissionType = HEART_RATE, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_withHeartRate_showsItem_showsDetails()
226 permissionType = SKIN_TEMPERATURE, entryId = "1", showDataOrigin = true)) in dataEntriesInit_withSkinTemperature_showsItem_showsDetails()
250 permissionType = SKIN_TEMPERATURE, entryId = "1", showDataOrigin = true)) in dataEntriesInit_withSkinTemperature_locationUnknown_hidesLocationDetail()
274 permissionType = SKIN_TEMPERATURE, entryId = "1", showDataOrigin = true)) in dataEntriesInit_withSkinTemperature_baselineUnknown_hidesBaselineDetail()
294 permissionType = EXERCISE, entryId = "1", showDataOrigin = true)) in dataEntriesDetailsInit_withRouteDetails_showsMapView()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLocationPermissionChecker.java198 String permissionType = Manifest.permission.ACCESS_FINE_LOCATION; in checkCallersLocationPermission() local
201 permissionType = Manifest.permission.ACCESS_COARSE_LOCATION; in checkCallersLocationPermission()
203 if (getUidPermission(permissionType, uid) == PackageManager.PERMISSION_DENIED) { in checkCallersLocationPermission()
273 private int getUidPermission(String permissionType, int uid) { in getUidPermission() argument
275 return mContext.checkPermission(permissionType, -1, uid); in getUidPermission()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/appdata/
DAppDataUseCase.kt108 permissionType: HealthPermissionType, in <lambda>()
112 fromHealthPermissionCategory(it.permissionCategory) == permissionType && in <lambda>()
117 permissionType: HealthPermissionType, in <lambda>()
122 fromHealthPermissionCategory(it.permissionCategory) == permissionType && in <lambda>()
DAppDataFragment.kt133 .forEach { permissionType -> in <lambda>() method
138 FitnessPermissionStrings.fromPermissionType(permissionType) in <lambda>()
149 PERMISSION_TYPE_KEY to permissionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/
DDeletionType.kt39 .map { permissionType -> permissionType.toString() } in <lambda>() method
76 .map { permissionType -> permissionType.toString() } in <lambda>() method
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/entrydetails/
DDataEntryDetailsFragment.kt75 permissionType: HealthPermissionType, in <lambda>()
80 PERMISSION_TYPE_KEY to permissionType, in <lambda>()
90 private lateinit var permissionType: HealthPermissionType in <lambda>() variable in com.android.healthconnect.controller.entrydetails.DataEntryDetailsFragment
162 permissionType = in <lambda>()
201 viewModel.loadEntryData(permissionType, entryId, showDataOrigin) in <lambda>()
DDataEntryDetailsViewModel.kt42 permissionType: HealthPermissionType, in loadEntryData()
49 LoadDataEntryInput(permissionType, entryId, showDataOrigin)) in loadEntryData()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/api/
DDeletePermissionTypesUseCase.kt42 deletePermissionTypes.healthPermissionTypes.map { permissionType -> in <lambda>() method
43 HealthPermissionToDatatypeMapper.getDataTypes(permissionType).map { recordType -> in <lambda>()
DDeletePermissionTypesFromAppUseCase.kt46 deletePermissionTypesFromApp.healthPermissionTypes.map { permissionType -> in <lambda>() method
47 HealthPermissionToDatatypeMapper.getDataTypes(permissionType).map { recordType -> in <lambda>()

123