Lines Matching defs:ok
52 // we're always OK.
60 const bool ok = checkPermission(sRecordAudio, pid, uid);
61 if (!ok) {
111 bool ok = checkPermission(sCaptureAudioOutput, pid, uid);
112 if (!ok) ALOGE("Request requires android.permission.CAPTURE_AUDIO_OUTPUT");
113 return ok;
119 bool ok = PermissionCache::checkCallingPermission(sCaptureHotwordAllowed);
120 if (!ok) ALOGE("android.permission.CAPTURE_AUDIO_HOTWORD");
121 return ok;
128 bool ok = PermissionCache::checkCallingPermission(sAudioSettings);
129 if (!ok) ALOGE("Request requires android.permission.MODIFY_AUDIO_SETTINGS");
130 return ok;
136 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRoutingAllowed);
137 if (!ok) ALOGE("android.permission.MODIFY_AUDIO_ROUTING");
138 return ok;
145 bool ok = PermissionCache::checkCallingPermission(sDump);
147 //if (!ok) ALOGE("Request requires android.permission.DUMP");
148 return ok;