Home
last modified time | relevance | path

Searched refs:resultCode (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapRilReceiver.java103 public void apduResponse(int token, int resultCode, ArrayList<Byte> apduRsp) { in apduResponse() argument
107 sapMessage.setResultCode(resultCode); in apduResponse()
108 if (resultCode == SapMessage.RESULT_OK) { in apduResponse()
115 public void transferAtrResponse(int token, int resultCode, ArrayList<Byte> atr) { in transferAtrResponse() argument
116 Log.d(TAG, "transferAtrResponse: token " + token + " resultCode " + resultCode); in transferAtrResponse()
119 sapMessage.setResultCode(resultCode); in transferAtrResponse()
120 if (resultCode == SapMessage.RESULT_OK) { in transferAtrResponse()
127 public void powerResponse(int token, int resultCode) { in powerResponse() argument
128 Log.d(TAG, "powerResponse: token " + token + " resultCode " + resultCode); in powerResponse()
143 sapMessage.setResultCode(resultCode); in powerResponse()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DStatus.java37 public final int resultCode; field in Status
39 public Status(final int resultCode) { in Status() argument
40 this.resultCode = resultCode; in Status()
45 this(parcelable.resultCode); in Status()
52 parcelable.resultCode = resultCode; in toParcelable()
57 return SUCCESS == resultCode; in isSuccess()
63 switch (resultCode) { in toString()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java382 assertTrue("Store not successful : " + status.resultCode, status.isSuccess());
397 assertTrue("Store status not successful : " + status.resultCode,
467 + status.resultCode, status.isSuccess());
483 + status.resultCode, status.isSuccess());
499 + status.resultCode, status.isSuccess());
519 assertEquals(Status.ERROR_ILLEGAL_ARGUMENT, status.resultCode);
528 assertEquals(Status.ERROR_ILLEGAL_ARGUMENT, status.resultCode);
536 assertEquals(Status.ERROR_ILLEGAL_ARGUMENT, status.resultCode);
545 assertEquals(Status.ERROR_ILLEGAL_ARGUMENT, status.resultCode);
561 assertTrue("Retrieve blob status not successful : " + status.resultCode,
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsSender.java90 public void setPartResult(final int resultCode) { in setPartResult() argument
92 setHighestFailureLevel(resultCode); in setPartResult()
103 private int getFailureLevel(final int resultCode) { in getFailureLevel() argument
104 switch (resultCode) { in getFailureLevel()
114 LogUtil.e(TAG, "SmsSender: Unexpected sent intent resultCode = " + resultCode); in getFailureLevel()
120 private void setHighestFailureLevel(final int resultCode) { in setHighestFailureLevel() argument
121 final int level = getFailureLevel(resultCode); in setHighestFailureLevel()
137 public static void setResult(final Uri requestId, final int resultCode, in setResult() argument
139 if (resultCode != Activity.RESULT_OK) { in setResult()
142 + " resultCode=" + resultCode + " errorCode=" + errorCode); in setResult()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessSentMessageAction.java77 public static void processMmsSent(final int resultCode, final Uri messageUri, in processMmsSent() argument
89 params.putInt(KEY_RESULT_CODE, resultCode); in processMmsSent()
101 final int status, final int rawStatus, final int resultCode) { in processMessageSentFastFailed() argument
112 params.putInt(KEY_RESULT_CODE, resultCode); in processMessageSentFastFailed()
153 final int resultCode = actionParameters.getInt(KEY_RESULT_CODE); in executeAction() local
155 if (resultCode == Activity.RESULT_OK) { in executeAction()
169 + resultCode; in executeAction()
175 status = MmsSender.getErrorResultStatus(resultCode, httpStatusCode); in executeAction()
179 if (resultCode == SmsManager.MMS_ERROR_IO_ERROR) { in executeAction()
187 final int resultCode = actionParameters.getInt(KEY_RESULT_CODE); in executeAction() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollIntroduction.java224 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
226 if (resultCode == RESULT_FINISHED || resultCode == RESULT_SKIP) { in onActivityResult()
227 setResult(resultCode, data); in onActivityResult()
232 if (resultCode == RESULT_FINISHED) { in onActivityResult()
239 setResult(resultCode, data); in onActivityResult()
243 if (resultCode == RESULT_OK && data != null) { in onActivityResult()
247 setResult(resultCode, data); in onActivityResult()
253 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollIntroduction.java244 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
246 if (resultCode == RESULT_FINISHED || resultCode == RESULT_SKIP) { in onActivityResult()
247 setResult(resultCode, data); in onActivityResult()
252 if (resultCode == RESULT_FINISHED) { in onActivityResult()
260 setResult(resultCode, data); in onActivityResult()
265 if (resultCode == RESULT_OK && data != null) { in onActivityResult()
269 setResult(resultCode, data); in onActivityResult()
275 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DActivityResultInfo.java28 public final int resultCode; field in ActivityResultInfo
31 public ActivityResultInfo(int requestCode, int resultCode, Intent data) { in ActivityResultInfo() argument
33 this.resultCode = resultCode; in ActivityResultInfo()
39 resultCode = parcel.readInt(); in ActivityResultInfo()
51 dest.writeInt(resultCode); in writeToParcel()
/packages/apps/LegacyCamera/src/com/android/camera/
DActivityBase.java109 protected void setResultEx(int resultCode) { in setResultEx() argument
110 mResultCodeForTesting = resultCode; in setResultEx()
111 setResult(resultCode); in setResultEx()
114 protected void setResultEx(int resultCode, Intent data) { in setResultEx() argument
115 mResultCodeForTesting = resultCode; in setResultEx()
117 setResult(resultCode, data); in setResultEx()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java157 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
160 if (resultCode == RESULT_CANCELED) { in onActivityResult()
166 setResult(resultCode); in onActivityResult()
173 if (resultCode == RESULT_CANCELED) { in onActivityResult()
175 setResult(resultCode); in onActivityResult()
178 if (resultCode == RESULT_OK) { in onActivityResult()
186 if (resultCode == RESULT_OK) { in onActivityResult()
189 setResult(resultCode); in onActivityResult()
194 if (resultCode == RESULT_OK) { in onActivityResult()
207 ProvisionLogger.logw("Unknown result code :" + resultCode); in onActivityResult()
/packages/apps/Camera2/src/com/android/camera/
DProxyLauncher.java37 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
38 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
39 if (resultCode == RESULT_CANCELED) { in onActivityResult()
40 resultCode = RESULT_USER_CANCELED; in onActivityResult()
42 setResult(resultCode, data); in onActivityResult()
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DStatusSmsFetcher.java100 int resultCode = getResultCode(); in onReceive() local
102 if (resultCode == Activity.RESULT_OK) { in onReceive()
107 VvmLog.e(TAG, "Request SMS send failed: " + sentSmsResultToString(resultCode)); in onReceive()
144 private static String sentSmsResultToString(int resultCode) { in sentSmsResultToString() argument
145 switch (resultCode) { in sentSmsResultToString()
157 return "UNKNOWN CODE: " + resultCode; in sentSmsResultToString()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintEnrollFindSensor.java155 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
157 if (resultCode == RESULT_OK && data != null) { in onActivityResult()
166 if (resultCode == RESULT_FINISHED) { in onActivityResult()
169 } else if (resultCode == RESULT_SKIP) { in onActivityResult()
172 } else if (resultCode == RESULT_TIMEOUT) { in onActivityResult()
188 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollFindSensor.java155 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
157 if (resultCode == RESULT_OK && data != null) { in onActivityResult()
166 if (resultCode == RESULT_FINISHED) { in onActivityResult()
169 } else if (resultCode == RESULT_SKIP) { in onActivityResult()
172 } else if (resultCode == RESULT_TIMEOUT) { in onActivityResult()
188 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetConfigure.java74 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
76 if (resultCode == RESULT_OK && mAppWidgetId != -1) { in onActivityResult()
82 resultCode = Activity.RESULT_OK; in onActivityResult()
94 resultCode = Activity.RESULT_CANCELED; in onActivityResult()
100 setResult(resultCode, resultValue); in onActivityResult()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAddAccountWithTypeActivity.java81 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
83 if (requestCode == REQUEST_CHOOSE_ACCOUNT_TYPE && resultCode == Activity.RESULT_OK) { in onActivityResult()
87 setResultAndFinish(resultCode); in onActivityResult()
106 private void setResultAndFinish(int resultCode) { in setResultAndFinish() argument
107 setResult(resultCode); in setResultAndFinish()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DUserCapabilityExchangeImpl.java277 public void onError(int reqId, int resultCode) { in requestCapabilities()
281 c.onError(toUceError(resultCode)); in requestCapabilities()
580 int resultCode = ResultCode.SUCCESS; in onCommandUpdateForPublishRequest() local
585 resultCode = ResultCode.PUBLISH_GENERIC_FAILURE; in onCommandUpdateForPublishRequest()
587 mPresencePublication.onCommandStatusUpdated(operationToken, operationToken, resultCode); in onCommandUpdateForPublishRequest()
594 int resultCode = ResultCode.SUCCESS; in onCommandUpdateForCapabilityRequest() local
599 resultCode = ResultCode.PUBLISH_GENERIC_FAILURE; in onCommandUpdateForCapabilityRequest()
601 mPresenceSubscriber.onCommandStatusUpdated(operationToken, operationToken, resultCode); in onCommandUpdateForCapabilityRequest()
608 int resultCode = ResultCode.SUCCESS; in onCommandUpdateForAvailabilityRequest() local
613 resultCode = ResultCode.PUBLISH_GENERIC_FAILURE; in onCommandUpdateForAvailabilityRequest()
[all …]
/packages/apps/TV/src/com/android/tv/
DSetupPassthroughActivity.java148 public void onActivityResult(int requestCode, final int resultCode, final Intent data) { in onActivityResult() argument
150 Log.d(TAG, "onActivityResult(" + requestCode + ", " + resultCode + ", " + data + ")"); in onActivityResult()
156 requestCode == REQUEST_START_SETUP_ACTIVITY && resultCode == Activity.RESULT_OK; in onActivityResult()
163 setResult(resultCode, data); in onActivityResult()
183 setResult(resultCode, data); in onActivityResult()
197 setResult(resultCode, data); in onActivityResult()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DActivityState.java59 public int resultCode = Activity.RESULT_CANCELED; field in ActivityState.ResultEntry
100 protected void setStateResult(int resultCode, Intent data) { in setStateResult() argument
102 mResult.resultCode = resultCode; in setStateResult()
112 protected void onStateResult(int requestCode, int resultCode, Intent data) { in onStateResult() argument
223 onStateResult(entry.requestCode, entry.resultCode, entry.resultData); in resume()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperActivity.java41 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
42 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
45 if (resultCode == RESULT_OK) { in onActivityResult()
46 setResult(resultCode); in onActivityResult()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DActionHandler.java249 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
251 Log.d(TAG, "onActivityResult() code=" + resultCode); in onActivityResult()
258 onExternalAppResult(resultCode, data); in onActivityResult()
261 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
265 private void onExternalAppResult(int resultCode, Intent data) { in onExternalAppResult() argument
266 if (resultCode != FragmentActivity.RESULT_CANCELED) { in onExternalAppResult()
273 mActivity.setResult(resultCode, data, 0); in onExternalAppResult()
490 void setResult(int resultCode, Intent result, int notUsed); in setResult() argument
/packages/apps/Settings/tests/unit/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java120 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
122 Log.e(TAG, "Unexpected onActivityResult " + requestCode + " " + resultCode); in onActivityResult()
126 if (resultCode == Activity.RESULT_CANCELED) { in onActivityResult()
128 } else if (resultCode == Activity.RESULT_OK) { in onActivityResult()
131 addMsg("Result = " + resultCode); in onActivityResult()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java153 public void processActivityResult(int requestCode, int resultCode, @Nullable Intent data) { in processActivityResult() argument
156 onVoiceDataIntegrityCheckDone(resultCode, data); in processActivityResult()
159 onSampleTextReceived(resultCode, data); in processActivityResult()
207 private void onVoiceDataIntegrityCheckDone(int resultCode, Intent data) { in onVoiceDataIntegrityCheckDone() argument
214 if (data == null || resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL) { in onVoiceDataIntegrityCheckDone()
240 private void onSampleTextReceived(int resultCode, Intent data) { in onSampleTextReceived() argument
243 if (resultCode == TextToSpeech.LANG_AVAILABLE && data != null) { in onSampleTextReceived()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DTetherProvisioningActivity.java78 public void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
79 super.onActivityResult(requestCode, resultCode, intent); in onActivityResult()
81 if (DEBUG) Log.d(TAG, "Got result from app: " + resultCode); in onActivityResult()
82 int result = resultCode == Activity.RESULT_OK ? in onActivityResult()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordActivity.java78 private void reportBackToCaller(final int resultCode, final Bundle result) { in reportBackToCaller() argument
87 m.what = resultCode; in reportBackToCaller()
102 final int resultCode = mContents.apply(this, parameters); in onClickConfirm() local
103 reportBackToCaller(resultCode, parameters); in onClickConfirm()

12345678910>>...14