Home
last modified time | relevance | path

Searched refs:allow (Results 1 – 25 of 70) sorted by relevance

123

/packages/services/Car/car_product/sepolicy/private/
Dcarservice_app.te20 allow carservice_app {
50 allow carservice_app system_app_data_file:dir create_dir_perms;
51 allow carservice_app system_app_data_file:{ file lnk_file } create_file_perms;
53 allow carservice_app system_car_data_file:dir create_dir_perms;
54 allow carservice_app system_car_data_file:{ file lnk_file } create_file_perms;
58 allow carservice_app cgroup:file rw_file_perms;
61 allow carservice_app proc_uid_io_stats:file { read open getattr };
63 allow carservice_app procfsinspector:binder call;
66 allow carservice_app sysfs_fs_lifetime_write:file { getattr open read };
/packages/services/Car/evs/sepolicy/
Devs_driver.te6 # allow init to launch processes in this context
12 allow hal_evs_driver device:dir { open read };
13 allow hal_evs_driver video_device:chr_file rw_file_perms;
18 allow hal_evs_driver gpu_device:chr_file rw_file_perms;
20 allow hal_evs_driver surfaceflinger_service:service_manager find;
21 allow hal_evs_driver ion_device:chr_file r_file_perms;
24 allow hal_evs_driver self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
Devs_app.te8 # allow init to launch processes in this context
14 allow evs_app evs_app_files:file { getattr open read };
15 allow evs_app evs_app_files:dir search;
18 allow evs_app gpu_device:chr_file rw_file_perms;
19 allow evs_app ion_device:chr_file r_file_perms;
20 allow evs_app system_file:dir r_dir_perms;
24 allow evs_app surfaceflinger_service:service_manager find;
Devs_manager.te6 # allow init to launch processes in this context
10 # allow use of hwservices
11 allow evs_manager hal_graphics_allocator_default:fd use;
Dsurfaceflinger.te1 allow surfaceflinger hal_evs_driver:fd use;
2 allow surfaceflinger hal_evs_driver:binder call;
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeEventsPreferenceControllerTest.java123 boolean allow = true; in onPreferenceChanged_EnableEvents()
124 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_EnableEvents()
127 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_EVENTS, allow); in onPreferenceChanged_EnableEvents()
132 boolean allow = false; in onPreferenceChanged_DisableEvents()
133 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_DisableEvents()
136 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_EVENTS, allow); in onPreferenceChanged_DisableEvents()
DZenModeRemindersPreferenceControllerTest.java125 boolean allow = true; in onPreferenceChanged_EnableReminders()
126 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_EnableReminders()
129 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REMINDERS, allow); in onPreferenceChanged_EnableReminders()
134 boolean allow = false; in onPreferenceChanged_DisableReminders()
135 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_DisableReminders()
138 .saveSoundPolicy(NotificationManager.Policy.PRIORITY_CATEGORY_REMINDERS, allow); in onPreferenceChanged_DisableReminders()
DZenModeMediaPreferenceControllerTest.java124 boolean allow = true; in onPreferenceChanged_EnableEvents()
125 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_EnableEvents()
128 NotificationManager.Policy.PRIORITY_CATEGORY_MEDIA, allow); in onPreferenceChanged_EnableEvents()
133 boolean allow = false; in onPreferenceChanged_DisableEvents()
134 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_DisableEvents()
137 NotificationManager.Policy.PRIORITY_CATEGORY_MEDIA, allow); in onPreferenceChanged_DisableEvents()
DZenModeRepeatCallersPreferenceControllerTest.java140 boolean allow = true; in onPreferenceChanged_EnableRepeatCallers()
141 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_EnableRepeatCallers()
145 allow); in onPreferenceChanged_EnableRepeatCallers()
150 boolean allow = false; in onPreferenceChanged_DisableRepeatCallers()
151 mController.onPreferenceChange(mockPref, allow); in onPreferenceChanged_DisableRepeatCallers()
155 allow); in onPreferenceChanged_DisableRepeatCallers()
/packages/services/Car/car_product/sepolicy/public/
Dte_macros1 # Define a macro to allow extra HAL dump
4 allow $1_server dumpstate:fifo_file write;
5 allow $1_server dumpstate:fd use;
6 allow dumpstate $1:process signal;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenRuleCustomSwitchPreferenceController.java57 final boolean allow = (Boolean) newValue; in onPreferenceChange()
60 + " allow=" + allow); in onPreferenceChange()
63 Pair.create(MetricsProto.MetricsEvent.FIELD_ZEN_TOGGLE_EXCEPTION, allow ? 1 : 0), in onPreferenceChange()
66 .allowCategory(mCategory, allow) in onPreferenceChange()
DZenRuleRepeatCallersPreferenceController.java72 final boolean allow = (Boolean) newValue; in onPreferenceChange()
75 + ZenPolicy.PRIORITY_CATEGORY_REPEAT_CALLERS + " allow=" + allow); in onPreferenceChange()
78 Pair.create(MetricsProto.MetricsEvent.FIELD_ZEN_TOGGLE_EXCEPTION, allow ? 1 : 0), in onPreferenceChange()
81 .allowRepeatCallers(allow) in onPreferenceChange()
DZenModeBackend.java124 protected int getNewDefaultPriorityCategories(boolean allow, int categoryType) { in getNewDefaultPriorityCategories() argument
126 if (allow) { in getNewDefaultPriorityCategories()
159 protected void saveSoundPolicy(int category, boolean allow) { in saveSoundPolicy() argument
160 int priorityCategories = getNewDefaultPriorityCategories(allow, category); in saveSoundPolicy()
/packages/apps/Settings/src/com/android/settings/notification/
DZenRuleCustomSwitchPreferenceController.java57 final boolean allow = (Boolean) newValue; in onPreferenceChange()
60 + " allow=" + allow); in onPreferenceChange()
63 Pair.create(MetricsProto.MetricsEvent.FIELD_ZEN_TOGGLE_EXCEPTION, allow ? 1 : 0), in onPreferenceChange()
66 .allowCategory(mCategory, allow) in onPreferenceChange()
DZenRuleRepeatCallersPreferenceController.java72 final boolean allow = (Boolean) newValue; in onPreferenceChange()
75 + ZenPolicy.PRIORITY_CATEGORY_REPEAT_CALLERS + " allow=" + allow); in onPreferenceChange()
78 Pair.create(MetricsProto.MetricsEvent.FIELD_ZEN_TOGGLE_EXCEPTION, allow ? 1 : 0), in onPreferenceChange()
81 .allowRepeatCallers(allow) in onPreferenceChange()
DZenModeBackend.java124 protected int getNewDefaultPriorityCategories(boolean allow, int categoryType) { in getNewDefaultPriorityCategories() argument
126 if (allow) { in getNewDefaultPriorityCategories()
159 protected void saveSoundPolicy(int category, boolean allow) { in saveSoundPolicy() argument
160 int priorityCategories = getNewDefaultPriorityCategories(allow, category); in saveSoundPolicy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java430 AppEntry allow = mock(AppEntry.class); in testFilterRecency() local
431 allow.extraInfo = allowState; in testFilterRecency()
434 assertTrue(FILTER_APP_NOTIFICATION_RECENCY.filterApp(allow)); in testFilterRecency()
448 AppEntry allow = mock(AppEntry.class); in testFilterFrequency() local
449 allow.extraInfo = allowState; in testFilterFrequency()
451 assertTrue(FILTER_APP_NOTIFICATION_FREQUENCY.filterApp(allow)); in testFilterFrequency()
465 AppEntry allow = mock(AppEntry.class); in testFilterBlocked() local
466 allow.extraInfo = allowState; in testFilterBlocked()
468 assertTrue(FILTER_APP_NOTIFICATION_BLOCKED.filterApp(allow)); in testFilterBlocked()
/packages/services/Car/car_product/sepolicy/test/
Dkitchensink_app.te9 allow kitchensink_app {
36 allow kitchensink_app system_app_data_file:dir { create_dir_perms getattr };
37 allow kitchensink_app system_app_data_file:{ file lnk_file } create_file_perms;
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java272 .setPositiveButton(R.string.allow, (dialog, which) -> proceedAndFinish()) in createDiscoverableConfirmDialog()
286 .setPositiveButton(R.string.allow, this::onConfirmEnableBluetooth) in createRequestEnableBluetoothDialog()
303 .setPositiveButton(R.string.allow, this::onConfirmEnableBluetooth) in createRequestEnableBluetoothDialogWithTimeout()
351 .setPositiveButton(R.string.allow, this::onConfirmDisableBluetooth) in createRequestDisableBluetoothDialog()
/packages/apps/Dialer/java/com/android/dialer/logging/
Dscreen_event.proto63 // Screen displayed to allow the user to see an overview of all blocked
67 // Screen displayed to allow the user to add a new blocked number
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessViewModel.java130 public void setSpecialAppAccessAsUser(@NonNull String packageName, boolean allow, in setSpecialAppAccessAsUser() argument
139 liveData.setRoleHolderAsUser(mRole.getName(), packageName, allow, 0, user, in setSpecialAppAccessAsUser() local
DSpecialAppAccessChildFragment.java195 boolean allow = !((TwoStatePreference) preference).isChecked(); in onPreferenceClick()
197 mViewModel.setSpecialAppAccessAsUser(packageName, allow, user, key, this, in onPreferenceClick()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java198 builder.setPositiveButton(R.string.allow, /* listener= */ this); in updateUi()
208 builder.setPositiveButton(R.string.allow, /* listener= */ this); in updateUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DRequestToggleWiFiActivity.java233 mAlertParams.mPositiveButtonText = getString(R.string.allow); in updateUi()
253 mAlertParams.mPositiveButtonText = getString(R.string.allow); in updateUi()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java233 mAlertParams.mPositiveButtonText = getString(R.string.allow); in updateUi()
253 mAlertParams.mPositiveButtonText = getString(R.string.allow); in updateUi()

123