Home
last modified time | relevance | path

Searched refs:readPermission (Results 1 – 21 of 21) sorted by relevance

/packages/services/Car/car-lib/src/com/android/car/internal/
DPropertyPermissionMapping.java193 private void map(String readPermission, String writePermission, Integer... propIds) { in map() argument
194 map(Permission.of(readPermission, writePermission), propIds); in map()
197 private void map(String readPermission, Integer... propIds) { in map() argument
198 map(Permission.of(readPermission), propIds); in map()
211 private Permission(String readPermission, String writePermission) { in Permission() argument
212 this.mReadPermission = readPermission; in Permission()
216 static Permission of(String readPermission, String writePermission) { in of() argument
217 return new Permission(readPermission, writePermission); in of()
220 static Permission of(String readPermission) { in of() argument
221 return new Permission(readPermission, readPermission); in of()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java351 String readPermission = propMgr.getReadPermission(cfg.getPropertyId()); in checkVendorPropertyPermission() local
354 assertThat(readPermission == null in checkVendorPropertyPermission()
355 || VENDOR_PERMISSIONS.contains(readPermission)).isTrue(); in checkVendorPropertyPermission()
359 assertThat(readPermission == null in checkVendorPropertyPermission()
360 || !VENDOR_PERMISSIONS.contains(readPermission)).isTrue(); in checkVendorPropertyPermission()
376 String readPermission = propMgr.getReadPermission(cfg.getPropertyId()); in checkSystemPropertyPermission() local
384 .that(readPermission).isNull(); in checkSystemPropertyPermission()
390 .that(readPermission).isNotNull(); in checkSystemPropertyPermission()
396 .that(readPermission).isNull(); in checkSystemPropertyPermission()
402 .that(readPermission).isNotNull(); in checkSystemPropertyPermission()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppFragmentTest.kt119 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() constant
121 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
236 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() constant
238 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
276 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() constant
278 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
281 MutableLiveData(setOf(writePermission, readPermission)) in <lambda>()
309 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() constant
311 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
336 val readPermission = FitnessPermission(DISTANCE, READ) in <lambda>() constant
[all …]
/packages/services/Car/service/src/com/android/car/hal/property/
DPropertyHalServiceConfigs.java308 PermissionCondition readPermission = propertyPermissions.getReadPermission(); in getVendorReadPermission() local
309 if (readPermission == null) { in getVendorReadPermission()
312 return readPermission; in getVendorReadPermission()
363 PermissionCondition readPermission = getReadPermission(halPropId); in isReadable() local
364 if (readPermission == null) { in isReadable()
368 return readPermission.isMet(context); in isReadable()
413 int readPermission = configArray[index++]; in customizeVendorPermission() local
416 readPermission, propId); in customizeVendorPermission()
523 PermissionCondition readPermission = null; in readPropertyObject() local
561 readPermission = parsePermissionCondition(reader); in readPropertyObject()
[all …]
DPropertyPermissionInfo.java83 private PropertyPermissions(@Nullable PermissionCondition readPermission, in PropertyPermissions() argument
85 mReadPermission = readPermission; in PropertyPermissions()
111 public Builder setReadPermission(PermissionCondition readPermission) { in setReadPermission() argument
112 mReadPermission = readPermission; in setReadPermission()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManageAppPermissionsFragmentTest.kt162 val readPermission = in <lambda>() constant
165 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
187 val readPermission = in <lambda>() constant
189 whenever(viewModel.appPermissions).then { MutableLiveData(listOf(readPermission)) } in <lambda>()
190 whenever(viewModel.grantedPermissions).then { MutableLiveData(setOf(readPermission)) } in <lambda>()
298 val readPermission = in <lambda>() constant
301 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
327 val readPermission = in <lambda>() constant
330 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
436 val readPermission = in <lambda>() constant
[all …]
DSettingsActivityTest.kt106 val readPermission = in <lambda>() constant
109 MutableLiveData(listOf(writePermission, readPermission)) in <lambda>()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/property/
DPropertyHalServiceConfigsUnitTest.java234 PermissionCondition readPermission = in testWritePermissionsExistInReadPermissionsForSystemProperty() local
236 if (readPermission == null) { in testWritePermissionsExistInReadPermissionsForSystemProperty()
247 if (readPermission.equals(writePermission)) { in testWritePermissionsExistInReadPermissionsForSystemProperty()
251 assertWithMessage("Read permission " + readPermission + " of property " in testWritePermissionsExistInReadPermissionsForSystemProperty()
254 .that(readPermission instanceof AnyOfPermissions).isTrue(); in testWritePermissionsExistInReadPermissionsForSystemProperty()
255 assertWithMessage("Read permission " + readPermission + " of property " in testWritePermissionsExistInReadPermissionsForSystemProperty()
258 .that(((AnyOfPermissions) readPermission) in testWritePermissionsExistInReadPermissionsForSystemProperty()
501 "readPermission": { in testParseJsonConfig_halPropIdDefaultEqualPropId()
535 "readPermission": { in testParseJsonConfig_dataFlags()
578 "readPermission": { in testParseJsonConfig_ignoreDeprecate()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/
DThemedIconUtils.java50 if (mProviderInfo != null && !TextUtils.isEmpty(mProviderInfo.readPermission)) { in ThemedIconUtils()
51 if (mContext.checkSelfPermission(mProviderInfo.readPermission) in ThemedIconUtils()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DPreviewUtils.kt69 if (!TextUtils.isEmpty(it.readPermission)) { in onPreviewRendered()
71 context.checkSelfPermission(it.readPermission) != in onPreviewRendered()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DPreIndexDataCollector.java355 final String readPermission = info.providerInfo.readPermission; in isWellKnownProvider() local
358 if (TextUtils.isEmpty(readPermission) || TextUtils.isEmpty(writePermission)) { in isWellKnownProvider()
362 if (!android.Manifest.permission.READ_SEARCH_INDEXABLES.equals(readPermission) || in isWellKnownProvider()
/packages/services/Car/tools/vehiclepropertyidsparser/src/com/android/car/tool/
DVehiclePropertyIdsParser.java101 public PermissionType readPermission; field in VehiclePropertyIdsParser.PropertyConfig
117 .append("\n readPermission: ").append(readPermission) in toString()
166 config.readPermission = permission; in setPermission()
571 if (config.readPermission != null) { in main()
572 jsonProp.put("readPermission", config.readPermission.toJson()); in main()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthPermissionsTest.java276 String readPermission = in testGetMedicalReadPermission_givenCategory_returnsPermission() local
278 assertThat(readPermission).isEqualTo(READ_MEDICAL_DATA_IMMUNIZATION); in testGetMedicalReadPermission_givenCategory_returnsPermission()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt138 val readPermission = in setup() constant
146 MutableLiveData(listOf(writePermission, readPermission)) in setup()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DInspectorProvider.java88 info.readPermission = android.Manifest.permission.MANAGE_DOCUMENTS; in attachInfo()
/packages/providers/MediaProvider/legacy/src/com/android/providers/media/
DLegacyMediaProvider.java67 if (!android.Manifest.permission.WRITE_MEDIA_STORAGE.equals(info.readPermission) in attachInfo()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DCloudProviderUtils.java145 if (!MANAGE_CLOUD_MEDIA_PROVIDERS_PERMISSION.equals(providerInfo.readPermission)) { in getAvailableCloudProvidersInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSettingsSearchIndexablesProviderTest.java66 info.readPermission = Manifest.permission.READ_SEARCH_INDEXABLES; in setUp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsCloudMediaViewModelTest.java366 providerInfo.readPermission = MANAGE_CLOUD_MEDIA_PROVIDERS_PERMISSION; in createProviderInfo()
/packages/services/Car/service/src/com/android/car/hal/
DPropertyHalService.java1137 PermissionCondition readPermission = in getReadPermission() local
1139 if (readPermission == null) { in getReadPermission()
1144 return readPermission.toString(); in getReadPermission()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java323 if (!android.Manifest.permission.MANAGE_DOCUMENTS.equals(provider.readPermission)