Home
last modified time | relevance | path

Searched refs:allowed (Results 1 – 25 of 117) sorted by relevance

12345

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlaybackRequestResults.java37 public static AudioPlaybackRequestResults newInstance(String userName, boolean allowed) { in newInstance() argument
38 return new AudioPlaybackRequestResults(userName, allowed); in newInstance()
41 private AudioPlaybackRequestResults(String userName, boolean allowed) { in AudioPlaybackRequestResults() argument
43 mAllowedToPlay = allowed; in AudioPlaybackRequestResults()
DAcceptAudioDialog.java63 private void handleAcceptAudioPlayback(boolean allowed) { in handleAcceptAudioPlayback() argument
64 mOnAudioAllowedCallback.onAudioAllowed(allowed); in handleAcceptAudioPlayback()
69 void onAudioAllowed(boolean allowed); in onAudioAllowed() argument
DAudioUserAssignmentFragment.java128 (allowed) -> handleAllowAudioInPrimaryZone(requestId, allowed), getUserName(info)); in handleRequestMediaOnPrimaryZone()
142 private void handleAllowAudioInPrimaryZone(long requestId, boolean allowed) { in handleAllowAudioInPrimaryZone() argument
143 Log.v(TAG, "handleAllowAudioInPrimaryZone request allowed " + allowed); in handleAllowAudioInPrimaryZone()
144 mCarAudioManager.allowMediaAudioOnPrimaryZone(requestId, allowed); in handleAllowAudioInPrimaryZone()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSettingsFacade.java60 public void setProfileContactRemoteSearch(Context context, boolean allowed, int userId) { in setProfileContactRemoteSearch() argument
62 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, allowed ? 1 : 0, userId); in setProfileContactRemoteSearch()
68 public void setCrossProfileCalendarEnabled(Context context, boolean allowed, int userId) { in setCrossProfileCalendarEnabled() argument
70 CROSS_PROFILE_CALENDAR_ENABLED, allowed ? 1 : 0, userId); in setCrossProfileCalendarEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountTypePreferenceLoaderTest.java147 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(null); in generateFragmentAllowlist_nullPrefGroup_emptyList() local
149 assertThat(allowed).isEmpty(); in generateFragmentAllowlist_nullPrefGroup_emptyList()
159 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(screen); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList() local
161 assertThat(allowed).isEmpty(); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList()
172 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(screen); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList() local
174 assertThat(allowed).isNotEmpty(); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList()
188 Set<String> allowed = mPrefLoader.generateFragmentAllowlist(parent); in generateFragmentAllowlist_nestedGroupWithFragments_populatedList() local
190 assertThat(allowed).isNotEmpty(); in generateFragmentAllowlist_nestedGroupWithFragments_populatedList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAccessSettingsTest.java109 PreferenceCategory allowed = checkNotNull(screen.findPreference(ALLOWED_KEY)); in updateList_enabledLongName_shown() local
111 assertThat(allowed.getPreferenceCount()).isEqualTo(2); in updateList_enabledLongName_shown()
112 assertThat(allowed.getPreference(0).getKey()).isEqualTo(longCn.flattenToString()); in updateList_enabledLongName_shown()
113 assertThat(allowed.getPreference(1).getKey()).isEqualTo(shortCn.flattenToString()); in updateList_enabledLongName_shown()
130 PreferenceCategory allowed = checkNotNull(screen.findPreference(ALLOWED_KEY)); in updateList_disabledLongName_notShown() local
132 assertThat(allowed.getPreferenceCount()).isEqualTo(0); in updateList_disabledLongName_notShown()
/packages/apps/Settings/src/com/android/settings/nfc/
DAppStateNfcTagAppsBridge.java68 public boolean updateApplist(int userId, String pkg, boolean allowed) { in updateApplist() argument
70 userId, pkg, allowed) == NfcAdapter.TAG_INTENT_APP_PREF_RESULT_SUCCESS) { in updateApplist()
106 public NfcTagAppState(boolean exist, boolean allowed) { in NfcTagAppState() argument
108 mIsAllowed = allowed; in NfcTagAppState()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DMediaRequestHandlerTest.java513 boolean allowed = mMediaRequestHandler in isMediaAudioAllowedInPrimaryZone_withoutRequest()
516 expectWithMessage("Unset occupant allowed status").that(allowed).isFalse(); in isMediaAudioAllowedInPrimaryZone_withoutRequest()
526 boolean allowed = mMediaRequestHandler in isMediaAudioAllowedInPrimaryZone_withoutApproval()
529 expectWithMessage("Unapproved occupant allowed status").that(allowed).isFalse(); in isMediaAudioAllowedInPrimaryZone_withoutApproval()
542 boolean allowed = mMediaRequestHandler in isMediaAudioAllowedInPrimaryZone_afterApproval()
545 expectWithMessage("Approved occupant allowed status").that(allowed).isTrue(); in isMediaAudioAllowedInPrimaryZone_afterApproval()
557 boolean allowed = mMediaRequestHandler in isMediaAudioAllowedInPrimaryZone_afterRejection()
560 expectWithMessage("Rejected occupant allowed status").that(allowed).isFalse(); in isMediaAudioAllowedInPrimaryZone_afterRejection()
575 boolean allowed = mMediaRequestHandler in isMediaAudioAllowedInPrimaryZone_afterApprovalThenCanceled()
578 expectWithMessage("Toggled occupant allowed status").that(allowed).isFalse(); in isMediaAudioAllowedInPrimaryZone_afterApprovalThenCanceled()
/packages/services/Telephony/utils/satellite/
DREADME.md31 --is-allowed-list <true> --output-file <sats2.dat>`
35 - `--is-allowed-list` Should be either `trrue` or `false`
36 - `true` The input file contains a list of S2 cells where satellite services are allowed.
40 is allowed at a location.
44 --is-allowed-list true --output-file sats2.dat`
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DOemLockManagerCompat.java27 public void setOemUnlockAllowedByUser(boolean allowed) { in setOemUnlockAllowedByUser() argument
28 mOemLockManager.setOemUnlockAllowedByUser(allowed); in setOemUnlockAllowedByUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAppPermissionsFragment.java198 PreferenceGroup allowed = new PreferenceCategory(getContext()); in bindUi() local
199 allowed.setKey(KEY_ALLOWED_PERMISSIONS_GROUP); in bindUi()
200 allowed.setTitle(R.string.allowed_header); in bindUi()
201 getPreferenceScreen().addPreference(allowed); in bindUi()
361 PreferenceCategory allowed = findPreference(KEY_ALLOWED_PERMISSIONS_GROUP); in logAppPermissionsFragmentView() local
363 int numAllowed = allowed.getPreferenceCount(); in logAppPermissionsFragmentView()
365 Preference preference = allowed.getPreference(i); in logAppPermissionsFragmentView()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DPermissionAccessResolver.java28 public PermissionAccessResolver(boolean allowed) { in PermissionAccessResolver() argument
29 mAllowed = allowed; in PermissionAccessResolver()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/
DWifiControlAppListModelTest.kt268 private class FakeAppOpsPermissionController(allowed: Boolean) : IAppOpsPermissionController {
271 override val isAllowedFlow = flowOf(allowed)
273 override fun setAllowed(allowed: Boolean) { in setAllowed()
274 setAllowedCalledWith = allowed in setAllowed()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DMediaRoutingControlTest.kt225 private class FakeAppOpsPermissionController(allowed: Boolean) : IAppOpsPermissionController {
228 override val isAllowedFlow = flowOf(allowed)
230 override fun setAllowed(allowed: Boolean) { in setAllowed()
231 setAllowedCalledWith = allowed in setAllowed()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyVpnService.java138 String allowed = intent.getStringExtra(packageName + ".allowedapplications"); in start() local
139 if (allowed != null) { in start()
140 String[] packageArray = allowed.split(","); in start()
190 + " allowedApplications=" + allowed in start()
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DNFC_AR_DO.java61 public NFC_AR_DO(boolean allowed) { in NFC_AR_DO() argument
63 mNfcAllowed = allowed; in NFC_AR_DO()
DAPDU_AR_DO.java59 public APDU_AR_DO(boolean allowed) { in APDU_AR_DO() argument
61 mApduAllowed = allowed; in APDU_AR_DO()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DBluetoothHeadsetBinderTest.java152 boolean allowed = true; in setAudioRouteAllowed()
153 mBinder.setAudioRouteAllowed(allowed, mAttributionSource); in setAudioRouteAllowed()
154 verify(mService).setAudioRouteAllowed(allowed); in setAudioRouteAllowed()
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java278 boolean allowed = hasP2pPermission(); in getState()
279 if (allowed && state != State.ALLOWED) { in getState()
283 } else if (!allowed && state == State.ALLOWED) { in getState()
323 void onP2pPermissionComplete(boolean allowed); in onP2pPermissionComplete() argument
/packages/services/Telephony/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessController.java923 boolean allowed) { in sendSatelliteAllowResultToReceivers() argument
925 updateCurrentSatelliteAllowedState(allowed); in sendSatelliteAllowResultToReceivers()
933 reportMetrics(resultCode, allowed); in sendSatelliteAllowResultToReceivers()
946 boolean allowed = isSatelliteAccessAllowedForLocation(networkCountryIsoList); in checkSatelliteAccessRestrictionForCurrentLocation()
948 bundle.putBoolean(KEY_SATELLITE_COMMUNICATION_ALLOWED, allowed); in checkSatelliteAccessRestrictionForCurrentLocation()
953 sendSatelliteAllowResultToReceivers(SATELLITE_RESULT_SUCCESS, bundle, allowed); in checkSatelliteAccessRestrictionForCurrentLocation()
1045 boolean allowed = isSatelliteAccessAllowedForLocation(countryCodeList); in checkSatelliteAccessRestrictionUsingCachedCountryCodes()
1047 bundle.putBoolean(KEY_SATELLITE_COMMUNICATION_ALLOWED, allowed); in checkSatelliteAccessRestrictionUsingCachedCountryCodes()
1048 sendSatelliteAllowResultToReceivers(SATELLITE_RESULT_SUCCESS, bundle, allowed); in checkSatelliteAccessRestrictionUsingCachedCountryCodes()
1630 private void reportMetrics(int resultCode, boolean allowed) { in reportMetrics() argument
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceBinderTest.java129 boolean allowed = true; in setAudioRouteAllowed_callsServiceMethod()
130 mBinder.setAudioRouteAllowed(mRemoteDevice, allowed, null); in setAudioRouteAllowed_callsServiceMethod()
132 verify(mService).setAudioRouteAllowed(mRemoteDevice, allowed); in setAudioRouteAllowed_callsServiceMethod()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DOemUnlockPreferenceController.java59 final boolean allowed = mPreference.isChecked(); in onPreferenceClick()
60 if (allowed) { in onPreferenceClick()
/packages/modules/Bluetooth/system/test/mock/
Dmock_audio_hal_interface_a2dp_encoding.h230 std::function<void(bool allowed)> body{[](bool /* allowed */) {}};
231 void operator()(bool allowed) { body(allowed); }; in operator()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java435 boolean allowed = noteAppOpAllowed(AppOpsManager.OPSTR_COARSE_LOCATION, pkgName, in checkCallersLocationPermission()
438 Log.v(TAG, "checkCallersLocationPermission(" + pkgName + "): returning " + allowed in checkCallersLocationPermission()
439 + " because uid " + uid + (allowed ? "has" : "doesn't have") + " app-op " in checkCallersLocationPermission()
442 return allowed; in checkCallersLocationPermission()
537 boolean allowed = noteAppOpAllowed(AppOpsManager.OPSTR_COARSE_LOCATION, pkgName, in checkCallersCoarseLocationPermission()
541 + allowed + " because uid " + uid + (allowed ? "has" : "doesn't have") in checkCallersCoarseLocationPermission()
544 return allowed; in checkCallersCoarseLocationPermission()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DTestNotificationListener.kt336 private fun toggleListenerAccess(context: Context, allowed: Boolean) { in <lambda>()
338 val verb = if (allowed) "allow" else "disallow" in <lambda>()
342 if (allowed) { in <lambda>()

12345