Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 225) sorted by relevance

123456789

/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java39 boolean ok = false; in hasCallerOrSelfPermission()
42 ok = true; // Called by self; always allow. in hasCallerOrSelfPermission()
44 ok = context.checkCallingOrSelfPermission(permission) in hasCallerOrSelfPermission()
52 + " ok=" + ok); in hasCallerOrSelfPermission()
54 return ok; in hasCallerOrSelfPermission()
58 final boolean ok = hasCallerOrSelfPermission(context, permission); in enforceCallingOrSelfPermission()
59 if (!ok) { in enforceCallingOrSelfPermission()
66 boolean ok = false; in hasPackagePermission()
68 ok = true; // Called by self; always allow. in hasPackagePermission()
70 ok = context.getPackageManager().checkPermission(permission, pkg) in hasPackagePermission()
[all …]
/packages/apps/Bluetooth/jni/
Dbluetooth_socket_manager.cc56 return Status::ok(); in connectSocket()
61 return Status::ok(); in connectSocket()
96 return Status::ok(); in createSocketChannel()
101 return Status::ok(); in createSocketChannel()
117 return Status::ok(); in requestMaximumTxDataLength()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/sqlite/
DSqlCheckerTest.java167 private void checkEnsureNoInvalidTokens(boolean ok, String sql, String... tokens) { in checkEnsureNoInvalidTokens() argument
168 if (ok) { in checkEnsureNoInvalidTokens()
203 private void checkEnsureSingleTokenOnly(boolean ok, String sql, String... tokens) { in checkEnsureSingleTokenOnly() argument
204 if (ok) { in checkEnsureSingleTokenOnly()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DConfirmCredentialTest.java40 fm, "title", android.R.string.yes, android.R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
42 fm, "title", android.R.string.yes, android.R.string.ok, false)).isFalse(); in testLastTryDialogShownExactlyOnce()
47 fm, "title", android.R.string.yes, android.R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java423 boolean ok = true;
429 ok = false;
437 return ok;
443 boolean ok = true;
445 ok = deleteCertificateEntry(alias);
449 return ok;
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtils.java75 .setPositiveButton(android.R.string.ok, disconnectListener) in showDisconnectDialog()
83 CharSequence okText = context.getText(android.R.string.ok); in showDisconnectDialog()
113 .setPositiveButton(android.R.string.ok, null) in showError()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DUtils.java77 .setPositiveButton(android.R.string.ok, disconnectListener) in showDisconnectDialog()
85 CharSequence okText = context.getText(android.R.string.ok); in showDisconnectDialog()
115 .setPositiveButton(android.R.string.ok, null) in showError()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountServerSettingsActivity.java196 public void onSecurityRequiredDialogResult(boolean ok) { in onSecurityRequiredDialogResult() argument
197 if (ok) { in onSecurityRequiredDialogResult()
249 android.R.string.ok, in onCreateDialog()
DSecurityRequiredDialogFragment.java51 void onSecurityRequiredDialogResult(boolean ok); in onSecurityRequiredDialogResult() argument
79 context.getString(android.R.string.ok), in onCreateDialog()
/packages/services/Car/tools/keventreader/server/
Deventprovider.cpp45 return Status::ok(); in registerCallback()
51 return Status::ok(); in unregisterCallback()
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapResponseParserTest.java356 } catch (MessagingException ok) { in expectMessagingException()
358 } catch (IOException ok) { in expectMessagingException()
392 } catch (ByeException ok) { in testByeReceived()
/packages/apps/Dialer/java/com/android/incallui/
DDtmfKeyListener.java109 if (!ok(getAcceptedChars(), c)) { in onKeyDown()
148 if (!ok(getAcceptedChars(), c)) { in onKeyUp()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DPresetManagementDialog.java43 view.findViewById(R.id.ok).setOnClickListener(this); in onCreateView()
58 case R.id.ok: in onClick()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DErrorDialogActivity.java88 .setMessage(msg).setPositiveButton(android.R.string.ok, clickListener) in showGenericErrorDialog()
103 .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { in showMissingVoicemailErrorDialog()
/packages/apps/Email/tests/src/com/android/email/
DTestUtils.java85 } catch (AssertionFailedError ok) { in testExpectThrowable()
96 } catch (AssertionFailedError ok) { in testExpectThrowable()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DXmpPresets.java122 boolean ok = ret.preset.readJsonFromString(filterString); in extractXMPData()
123 if (!ok) { in extractXMPData()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragment.java82 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
97 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java207 .setPositiveButton(android.R.string.ok, mDirectBootWarnConfirmListener) in showDirectBootWarnDialog()
221 .setPositiveButton(android.R.string.ok, mSecurityWarnDialogConfirmListener) in showSecurityWarnDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipDialogFragment.java82 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
97 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DPop3Store.java581 int ok = response.indexOf("OK"); in fetchBody() local
582 if (ok > 0) { in fetchBody()
584 int start = ok + 3; in fetchBody()
/packages/services/Telephony/src/com/android/phone/
DMobileDataPreference.java203 .setPositiveButton(android.R.string.ok, this) in showDisableDialog()
220 builder.setPositiveButton(R.string.ok, this); in showMultiSimDialog()
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java269 boolean ok = false; in onShowMapClicked()
275 ok = true; in onShowMapClicked()
279 if (!ok) { in onShowMapClicked()
815 .setPositiveButton(android.R.string.ok, listener)
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java86 setNegativeButton(android.R.string.ok, null); in initDefaultBuilderParams()
237 : android.R.string.ok); in updatePositiveButton()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTrustedCredentialsDialogBuilder.java86 setNegativeButton(android.R.string.ok, null); in initDefaultBuilderParams()
237 : android.R.string.ok); in updatePositiveButton()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java328 .setPositiveButton(android.R.string.ok, (dialog, id) -> { in createPkcs12PasswordDialog()
385 .setPositiveButton(android.R.string.ok, (dialog, id) -> { in createNameCredentialDialog()

123456789