Home
last modified time | relevance | path

Searched refs:hasPermissions (Results 1 – 16 of 16) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/data/
DCustomRingtone.java39 CustomRingtone(long id, Uri uri, String title, boolean hasPermissions) { in CustomRingtone() argument
43 mHasPermissions = hasPermissions; in CustomRingtone()
49 public boolean hasPermissions() { return mHasPermissions; } in hasPermissions() method in CustomRingtone
51 CustomRingtone setHasPermissions(boolean hasPermissions) { in setHasPermissions() argument
52 if (mHasPermissions == hasPermissions) { in setHasPermissions()
56 return new CustomRingtone(mId, mUri, mTitle, hasPermissions); in setHasPermissions()
DCustomRingtone.kt38 fun hasPermissions(): Boolean = mHasPermissions in hasPermissions() method
40 fun setHasPermissions(hasPermissions: Boolean): CustomRingtone = in hasPermissions()
41 if (mHasPermissions == hasPermissions) { in hasPermissions()
44 CustomRingtone(id, mUri, title, hasPermissions)
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneHolder.java38 RingtoneHolder(Uri uri, String name, boolean hasPermissions) { in RingtoneHolder() argument
41 mHasPermissions = hasPermissions; in RingtoneHolder()
45 boolean hasPermissions() { return mHasPermissions; } in hasPermissions() method in RingtoneHolder
DRingtonePickerActivity.kt294 val hasPermissions = toRemove.hasPermissions() in <lambda>() constant
295 ConfirmRemoveCustomRingtoneDialogFragment.show(manager, toRemove.uri, hasPermissions) in <lambda>()
395 fun show(manager: FragmentManager, toRemove: Uri?, hasPermissions: Boolean) { in <lambda>()
402 args.putBoolean(ARG_RINGTONE_HAS_PERMISSIONS, hasPermissions) in <lambda>()
406 fragment.isCancelable = hasPermissions in <lambda>()
DRingtonePickerActivity.java359 final boolean hasPermissions = toRemove.hasPermissions(); in onContextItemSelected()
360 ConfirmRemoveCustomRingtoneDialogFragment.show(manager, toRemove.getUri(), hasPermissions); in onContextItemSelected()
440 static void show(FragmentManager manager, Uri toRemove, boolean hasPermissions) { in show() argument
447 args.putBoolean(ARG_RINGTONE_HAS_PERMISSIONS, hasPermissions); in show()
451 fragment.setCancelable(hasPermissions); in show()
DRingtoneViewHolder.kt50 val opaque = itemHolder.isSelected || !itemHolder.hasPermissions() in onBindItemView()
57 if (!itemHolder.hasPermissions()) { in onBindItemView()
85 if (itemHolder.hasPermissions()) { in onClick()
DRingtoneViewHolder.java65 final boolean opaque = itemHolder.isSelected() || !itemHolder.hasPermissions(); in onBindItemView()
72 if (!itemHolder.hasPermissions()) { in onBindItemView()
101 if (getItemHolder().hasPermissions()) { in onClick()
DCustomRingtoneHolder.kt22 : RingtoneHolder(ringtone.uri, ringtone.title, ringtone.hasPermissions()) {
DCustomRingtoneHolder.java24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions()); in CustomRingtoneHolder()
DRingtoneHolder.kt37 fun hasPermissions(): Boolean { in hasPermissions() method
/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivityBase.java91 if (!hasPermissions(activity, requiredPermissions)) { in startPermissionActivity()
147 protected static boolean hasPermissions(Context context, String[] permissions) { in hasPermissions() method in RequestPermissionsActivityBase
DRequestPermissionsActivity.java48 return hasPermissions(context, getPermissions(context.getPackageManager())); in hasRequiredPermissions()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java212 public static boolean hasPermissions(final String[] permissions) { in hasPermissions() method in OsUtil
274 return hasPermissions(sRequiredPermissions); in hasRequiredPermissions()
/packages/apps/Dialer/java/com/android/voicemail/
DVoicemailPermissionHelper.java45 public static boolean hasPermissions(Context context) { in hasPermissions() method in VoicemailPermissionHelper
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailModule.java44 if (!VoicemailPermissionHelper.hasPermissions(context)) { in provideVoicemailClient()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java110 return hasTelephony() && hasPermissions() && in canReadSimContacts()
403 private boolean hasPermissions() { in hasPermissions() method in SimContactDaoImpl