Home
last modified time | relevance | path

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

123

/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DMainActivity.java79 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
80 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
84 if (resultCode == RESULT_OK) { in onActivityResult()
107 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DReceiveResult.java108 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
121 if (resultCode == RESULT_CANCELED) { in onActivityResult()
128 text.append(Integer.toString(resultCode)); in onActivityResult()
DRedirectMain.java61 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
66 if (resultCode == RESULT_CANCELED) { in onActivityResult()
80 if (resultCode != RESULT_CANCELED) { in onActivityResult()
DFragmentReceiveResult.java103 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
115 if (resultCode == RESULT_CANCELED) { in onActivityResult()
122 text.append(Integer.toString(resultCode)); in onActivityResult()
DVoiceRecognition.java138 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
139 if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) { in onActivityResult()
147 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DSetupProfileFragment.java88 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
90 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
97 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DInstallApk.java70 public void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
72 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
74 } else if (resultCode == Activity.RESULT_CANCELED) { in onActivityResult()
80 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
82 } else if (resultCode == Activity.RESULT_CANCELED) { in onActivityResult()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
DAddVoicemailActivity.java138 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
139 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
142 handleRecordingResult(resultCode, data); in onActivityResult()
168 private void handleRecordingResult(int resultCode, Intent data) { in handleRecordingResult() argument
169 if (resultCode != RESULT_OK) { in handleRecordingResult()
170 handleError(new Exception("Failed to do recording. Error Code: " + resultCode)); in handleRecordingResult()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DSetupProfileFragment.java98 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
100 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
107 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/browseable/DirectShare/src/com.example.android.directshare/
DSendMessageActivity.java77 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
80 if (resultCode == RESULT_OK) { in onActivityResult()
91 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutTemplateListFragment.java50 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
51 if (resultCode != Activity.RESULT_OK || data == null) { in onActivityResult()
/development/apps/Development/src/com/android/development/
DInstrumentationList.java176 public void instrumentationStatus(ComponentName name, int resultCode, Bundle results) {
183 Log.i("instrumentation", "INSTRUMENTATION_STATUS_CODE: " + resultCode);
186 int resultCode, Bundle results) {
193 Log.i("instrumentation", "INSTRUMENTATION_CODE: " + resultCode);
/development/samples/BusinessCard/src/com/example/android/businesscard/
DBusinessCardActivity.java83 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
84 if (requestCode == PICK_CONTACT_REQUEST && resultCode == RESULT_OK) { in onActivityResult()
/development/apps/PushApiTestAppTwo/src/com/example/android/pushapithirdpartytwo/
DMainActivity.java115 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
118 if (resultCode == RESULT_OK) { in onActivityResult()
121 } else if (resultCode == RESULT_CANCELED) { in onActivityResult()
/development/apps/PushApiTestAppOne/src/com/example/android/pushapithirdpartyone/
DMainActivity.java115 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
118 if (resultCode == RESULT_OK) { in onActivityResult()
121 } else if (resultCode == RESULT_CANCELED) { in onActivityResult()
/development/samples/browseable/WearVerifyRemoteApp/Application/src/com.example.android.wearable.wear.wearverifyremoteapp/
DMainMobileActivity.java96 protected void onReceiveResult(int resultCode, Bundle resultData) {
97 Log.d(TAG, "onReceiveResult: " + resultCode);
99 if (resultCode == RemoteIntent.RESULT_OK) {
106 } else if (resultCode == RemoteIntent.RESULT_FAILED) {
115 throw new IllegalStateException("Unexpected result " + resultCode);
/development/samples/DataWiper/src/com.example.android.datawiper/
DMyMain.java48 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
49 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DMainActivityFragment.java63 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
64 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
66 if (requestCode == ADD_FILE_REQUEST && resultCode == ADD_FILE_RESULT_SUCCESS) { in onActivityResult()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java290 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
291 if(D) Log.d(TAG, "onActivityResult " + resultCode); in onActivityResult()
295 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
301 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
307 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
/development/samples/browseable/WearVerifyRemoteApp/Wearable/src/com.example.android.wearable.wear.wearverifyremoteapp/
DMainWearActivity.java87 protected void onReceiveResult(int resultCode, Bundle resultData) {
89 if (resultCode == RemoteIntent.RESULT_OK) {
92 } else if (resultCode == RemoteIntent.RESULT_FAILED) {
98 throw new IllegalStateException("Unexpected result " + resultCode);
/development/samples/browseable/ScreenCapture/src/com.example.android.screencapture/
DScreenCaptureFragment.java121 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
123 if (resultCode != Activity.RESULT_OK) { in onActivityResult()
133 mResultCode = resultCode; in onActivityResult()
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
DMainActivity.java282 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
283 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
285 Log.d(TAG, "onActivityResult request/result codes: " + requestCode + "/" + resultCode); in onActivityResult()
290 if (resultCode == RESULT_OK) { in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java110 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
115 if (resultCode != RESULT_OK) { in onActivityResult()
120 mMediaProjection = mProjectionManager.getMediaProjection(resultCode, data); in onActivityResult()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatFragment.java328 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
332 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
338 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
344 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectorySelectionFragment.java133 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
134 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
135 if (requestCode == REQUEST_CODE_OPEN_DIRECTORY && resultCode == Activity.RESULT_OK) { in onActivityResult()

123