/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | ContactsPermissions.java | 39 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/ |
D | base_metrics_listener.cpp | 28 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()
|
D | dns_metrics_listener.cpp | 52 return ::ndk::ScopedAStatus::ok(); in onNat64PrefixEvent() 64 return ::ndk::ScopedAStatus::ok(); in onPrivateDnsValidationEvent() 77 return ::ndk::ScopedAStatus::ok(); in onDnsEvent()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 133 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/ |
D | SqlCheckerTest.java | 167 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/ |
D | ConfirmCredentialTest.java | 40 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/ |
D | Utils.java | 75 .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/ |
D | KeyChainService.java | 477 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/ |
D | Utils.java | 77 .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/ |
D | IndividualPickerActivityTest.java | 337 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/ |
D | eventprovider.cpp | 45 return Status::ok(); in registerCallback() 51 return Status::ok(); in unregisterCallback()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | DtmfKeyListener.java | 109 if (!ok(getAcceptedChars(), c)) { in onKeyDown() 148 if (!ok(getAcceptedChars(), c)) { in onKeyUp()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | PresetManagementDialog.java | 43 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/ |
D | ErrorDialogActivity.java | 88 .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/ |
D | XmpPresets.java | 122 boolean ok = ret.preset.readJsonFromString(filterString); in extractXMPData() 123 if (!ok) { in extractXMPData()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipDialogFragment.java | 82 .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/ |
D | BatteryTipDialogFragment.java | 82 .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/ |
D | KeyboardManagementPreferenceController.java | 211 .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/ |
D | TrustedDeviceActivity.java | 545 .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/ |
D | SpecialCharSequenceMgr.java | 269 .setPositiveButton(R.string.ok, null) in handlePinEntry() 300 .setPositiveButton(R.string.ok, null) in showDeviceIdPanel()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 434 .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/ |
D | MenuHelper.java | 269 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/ |
D | TrustedCredentialsDialogBuilder.java | 86 setNegativeButton(android.R.string.ok, null); in initDefaultBuilderParams() 237 : android.R.string.ok); in updatePositiveButton()
|
/packages/apps/Settings/src/com/android/settings/ |
D | TrustedCredentialsDialogBuilder.java | 86 setNegativeButton(android.R.string.ok, null); in initDefaultBuilderParams() 237 : android.R.string.ok); in updatePositiveButton()
|
/packages/apps/Settings/src/com/android/settings/deletionhelper/ |
D | ActivationWarningFragment.java | 41 .setPositiveButton(android.R.string.ok, null) in onCreateDialog()
|