Home
last modified time | relevance | path

Searched refs:PermissionsUtil (Results 1 – 25 of 76) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/dialer/interactions/
DUndemoteOutgoingCallReceiver.java30 import com.android.dialer.util.PermissionsUtil;
44 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS) in onReceive()
45 || !PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in onReceive()
69 if (PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in undemoteContactWithId()
79 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS)) { in getContactIdFromPhoneNumber()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsFragment.java50 import com.android.dialer.util.PermissionsUtil;
165 PermissionsUtil.registerPermissionReceiver( in onStart()
171 PermissionsUtil.unregisterPermissionReceiver( in onStop()
208 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in onCreateView()
225 && PermissionsUtil.hasContactsReadPermissions(getContext())) { in onResume()
325 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
326 getContext(), PermissionsUtil.allContactsGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
351 PermissionsUtil.notifyPermissionGranted(getContext(), permissions[0]); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java52 import com.android.dialer.util.PermissionsUtil;
110 if (!PermissionsUtil.hasCameraPermissions(getContext())) { in onCreateView()
133 if (!PermissionsUtil.hasCameraPrivacyToastShown(getContext())) { in setupCamera()
134 PermissionsUtil.showCameraPermissionToast(getContext()); in setupCamera()
196 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick()
319 if (PermissionsUtil.hasCameraPermissions(getContext())) { in onResume()
391 PermissionsUtil.permissionRequested(getContext(), permissions[0]); in onRequestPermissionsResult()
399 PermissionsUtil.setCameraPrivacyToastShown(getContext()); in onRequestPermissionsResult()
DGalleryComposerFragment.java47 import com.android.dialer.util.PermissionsUtil;
87 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView()
169 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick()
214 && PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onActivityResult()
255 PermissionsUtil.permissionRequested(getContext(), permissions[0]); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DNewSearchFragment.java70 import com.android.dialer.util.PermissionsUtil;
164 if (!PermissionsUtil.hasContactsReadPermissions(getContext())) { in onCreateView()
291 || PermissionsUtil.hasLocationPermissions(getContext()) in showLocationPermission()
366 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
367 getContext(), PermissionsUtil.allContactsGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
419 if (getContext() == null || !PermissionsUtil.hasLocationPermissions(getContext())) { in loadNearbyPlacesCursor()
436 !PermissionsUtil.hasPermission(getContext(), ACCESS_FINE_LOCATION), in requestLocationPermission()
439 PermissionsUtil.getPermissionsCurrentlyDenied( in requestLocationPermission()
440 getContext(), PermissionsUtil.allLocationGroupPermissionsUsedInDialer); in requestLocationPermission()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialFragment.java71 import com.android.dialer.util.PermissionsUtil;
203 if (!PermissionsUtil.hasContactsReadPermissions(getContext())) { in onHidden()
230 PermissionsUtil.notifyPermissionGranted(getContext(), Manifest.permission.READ_CONTACTS); in onRequestPermissionsResult()
291 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in showContactsPermissionEmptyContentView()
319 PermissionsUtil.registerPermissionReceiver( in onStart()
321 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in onStart()
331 PermissionsUtil.unregisterPermissionReceiver( in onStop()
623 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
624 context, PermissionsUtil.allContactsGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailCallLogFragment.java41 import com.android.dialer.util.PermissionsUtil;
69 if (PermissionsUtil.hasReadVoicemailPermissions(getContext()) in onActivityCreated()
70 && PermissionsUtil.hasAddVoicemailPermissions(getContext())) { in onActivityCreated()
95 if (PermissionsUtil.hasReadVoicemailPermissions(getContext()) in onActivityCreated()
96 && PermissionsUtil.hasAddVoicemailPermissions(getContext())) { in onActivityCreated()
DCallLogFragment.java73 import com.android.dialer.util.PermissionsUtil;
396 PermissionsUtil.hasPermission(getActivity(), READ_CALL_LOG); in onResume()
406 if (PermissionsUtil.hasCallLogReadPermissions(getContext())) { in onResume()
411 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in onResume()
508 if (!PermissionsUtil.hasPermission(context, READ_CALL_LOG)) { in updateEmptyMessage()
581 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
582 getContext(), PermissionsUtil.allPhoneGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
DCallLogNotificationsQueryHelper.java46 import com.android.dialer.util.PermissionsUtil;
111 if (!PermissionsUtil.hasPhonePermissions(context)) { in markMissedCallsInCallLogAsRead()
116 if (!PermissionsUtil.hasCallLogWritePermissions(context)) { in markMissedCallsInCallLogAsRead()
358 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CALL_LOG)) { in query()
416 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CALL_LOG)) { in queryUnreadVoicemail()
DCallLogAsyncTaskUtil.java32 import com.android.dialer.util.PermissionsUtil;
110 if (!PermissionsUtil.hasPhonePermissions(context) in markCallAsRead()
111 || !PermissionsUtil.hasCallLogWritePermissions(context)) { in markCallAsRead()
DCallLogNotificationsService.java36 import com.android.dialer.util.PermissionsUtil;
143 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG) in onHandleIntent()
144 || !PermissionsUtil.hasPermission(this, android.Manifest.permission.WRITE_CALL_LOG)) { in onHandleIntent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsContentObserver.java29 import com.android.inputmethod.latin.permissions.PermissionsUtil;
54 if (!PermissionsUtil.checkAllPermissionsGranted( in registerObserver()
78 if (!PermissionsUtil.checkAllPermissionsGranted( in run()
101 if (!PermissionsUtil.checkAllPermissionsGranted( in haveContentsChanged()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCallActivity.java34 import com.android.dialer.util.PermissionsUtil;
97 } else if (PermissionsUtil.hasPermission(this, permission.SEND_SMS)) { in onMessageFragmentSendMessage()
104 } else if (PermissionsUtil.isFirstRequest(this, permission.SEND_SMS) in onMessageFragmentSendMessage()
126 PermissionsUtil.permissionRequested(this, permissions[0]); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogFragment.java49 import com.android.dialer.util.PermissionsUtil;
151 if (!PermissionsUtil.hasCallLogReadPermissions(getContext())) { in onFragmentShown()
235 if (PermissionsUtil.hasCallLogReadPermissions(getContext())) { in onCreateView()
258 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
259 getContext(), PermissionsUtil.allPhoneGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java55 import com.android.dialer.util.PermissionsUtil;
116 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in onResume()
206 if (PermissionsUtil.hasContactsReadPermissions(getContext())) { in onStart()
350 PermissionsUtil.getPermissionsCurrentlyDenied( in onEmptyViewActionButtonClicked()
351 getContext(), PermissionsUtil.allContactsGroupPermissionsUsedInDialer); in onEmptyViewActionButtonClicked()
369 PermissionsUtil.notifyPermissionGranted(getContext(), READ_CONTACTS); in onRequestPermissionsResult()
/packages/apps/Contacts/src/com/android/contacts/
DCallUtil.java35 import com.android.contacts.util.PermissionsUtil;
153 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in getVideoCallingAvailability()
200 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isCallWithSubjectSupported()
237 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isTachyonEnabled()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsManager.java65 List<String> deniedPermissions = PermissionsUtil.getDeniedPermissions( in requestPermissions()
77 PermissionsUtil.requestPermissions(activity, requestId, permissionsArray); in requestPermissions()
88 boolean allGranted = PermissionsUtil.allGranted(grantResults); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/incallui/legacyblocking/
DBlockedNumberContentObserver.java27 import com.android.dialer.util.PermissionsUtil;
97 if (PermissionsUtil.hasCallLogReadPermissions(context) in register()
98 && PermissionsUtil.hasCallLogWritePermissions(context)) { in register()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsFragment.java28 import com.android.inputmethod.latin.permissions.PermissionsUtil;
70 if (PermissionsUtil.checkAllPermissionsGranted( in onSharedPreferenceChanged()
85 if (!PermissionsUtil.checkAllPermissionsGranted( in turnOffLookupContactsIfNoPermission()
/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivityBase.java28 import com.android.contacts.util.PermissionsUtil;
130 if (!PermissionsUtil.hasPermission(this, permission)) { in requestPermissions()
151 if (!PermissionsUtil.hasPermission(context, permission)) { in hasPermissions()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraPreview.java26 import com.android.dialer.util.PermissionsUtil;
71 if (tabHasBeenShown && visible && PermissionsUtil.hasCameraPermissions(getContext())) { in maybeOpenCamera()
121 if (PermissionsUtil.hasCameraPermissions(getContext())) { in onVisibilityChanged()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCorrectionSettingsFragment.java35 import com.android.inputmethod.latin.permissions.PermissionsUtil;
130 if (PermissionsUtil.checkAllPermissionsGranted( in onSharedPreferenceChanged()
147 if (!PermissionsUtil.checkAllPermissionsGranted( in turnOffUseContactsIfNoPermission()
/packages/apps/Dialer/java/com/android/dialer/database/
DCallLogQueryHandler.java39 import com.android.dialer.util.PermissionsUtil;
98 if (PermissionsUtil.hasPhonePermissions(context)) { in fetchCalls()
225 if (!PermissionsUtil.hasPhonePermissions(context)) { in markMissedCallsAsRead()
243 if (!PermissionsUtil.hasPhonePermissions(context)) { in fetchMissedCallsUnreadCount()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2ExtendedDirectoryPhoneLookup.java38 import com.android.dialer.util.PermissionsUtil;
90 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) { in lookup()
248 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) {
261 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) {
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java51 import com.android.dialer.util.PermissionsUtil;
105 if (!PermissionsUtil.hasCallLogReadPermissions(appContext)) { in registerContentObservers()
119 if (!PermissionsUtil.hasAddVoicemailPermissions(appContext)) { in registerContentObservers()
159 && PermissionsUtil.hasCallLogReadPermissions(appContext)) { in isDirty()
199 if (!PermissionsUtil.hasPermission(appContext, permission.READ_CALL_LOG)) { in fillInternal()

1234