Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 220) 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/modules/DnsResolver/tests/dns_metrics_listener/
Dbase_metrics_listener.cpp28 return ::ndk::ScopedAStatus::ok(); in onDnsEvent()
35 return ::ndk::ScopedAStatus::ok(); in onPrivateDnsValidationEvent()
43 return ::ndk::ScopedAStatus::ok(); in onConnectEvent()
52 return ::ndk::ScopedAStatus::ok(); in onWakeupEvent()
60 return ::ndk::ScopedAStatus::ok(); in onTcpSocketStatsEvent()
67 return ::ndk::ScopedAStatus::ok(); in onNat64PrefixEvent()
Ddns_metrics_listener.cpp52 return ::ndk::ScopedAStatus::ok(); in onNat64PrefixEvent()
64 return ::ndk::ScopedAStatus::ok(); in onPrivateDnsValidationEvent()
77 return ::ndk::ScopedAStatus::ok(); in onDnsEvent()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp133 if (!k.ok() || !v.ok()) return false; in addForwardingRule()
138 if (!k.ok() || !v.ok()) return false; in addForwardingRule()
146 if (!fd.ok() == -1) { in createTun()
206 if (auto result = validatePacket(tunPacket); !result.ok()) { in handlePacket()
212 if (auto result = translatePacket(tunPacket); !result.ok()) { in handlePacket()
/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/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/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java477 boolean ok = true;
483 ok = false;
491 return ok;
497 boolean ok = true;
500 ok = deleteCertificateEntry(alias);
504 return ok;
/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/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivityTest.java337 onView(withText(android.R.string.ok)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_StartsRotation()
361 onView(withText(android.R.string.ok)).perform(click()); in testShowStartRotationDialog_WifiOnly_ClickOK_Fails_ShowsErrorDialog()
384 onView(withText(android.R.string.ok)).perform(click()); in testStartRotation_WifiOnly_FailOnce_Retry()
415 onView(withText(android.R.string.ok)).perform(click()); in testShowStartRotationDialog_TurnOffWifiOnly_ClickOK_StartsRotation()
440 onView(withText(android.R.string.ok)).perform(click()); in testStartRotation_WifiOnly_FailOnce_Retry_ShouldStillHaveWifiTurnedOff()
/packages/services/Car/tools/keventreader/server/
Deventprovider.cpp45 return Status::ok(); in registerCallback()
51 return Status::ok(); in unregisterCallback()
/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/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/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/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java211 .setPositiveButton(android.R.string.ok, mDirectBootWarnConfirmListener) in showDirectBootWarnDialog()
225 .setPositiveButton(android.R.string.ok, mSecurityWarnDialogConfirmListener) in showSecurityWarnDialog()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/ui/
DTrustedDeviceActivity.java545 .setNegativeButton(getString(R.string.ok), null) in onCreateDialog()
611 .setPositiveButton(getString(R.string.ok), null) in onCreateDialog()
624 .setPositiveButton(getString(R.string.ok), null) in onCreateDialog()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java269 .setPositiveButton(R.string.ok, null) in handlePinEntry()
300 .setPositiveButton(R.string.ok, null) in showDeviceIdPanel()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java434 .setPositiveButton(android.R.string.ok, (dialog, id) -> { in createSelectCertificateUsageDialog()
484 .setPositiveButton(android.R.string.ok, (dialog, id) -> { in createPkcs12PasswordDialog()
511 .setPositiveButton(android.R.string.ok, (dialog, id) -> { in createNameCertificateDialog()
/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/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/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java86 setNegativeButton(android.R.string.ok, null); in initDefaultBuilderParams()
237 : android.R.string.ok); in updatePositiveButton()
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DActivationWarningFragment.java41 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()

123456789