Home
last modified time | relevance | path

Searched refs:resultCode (Results 1 – 25 of 63) 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/SupportLeanbackDemos/src/com/example/android/leanback/
DSearchActivity.java57 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
59 " resultCode=" + resultCode + in onActivityResult()
61 if (requestCode == REQUEST_SPEECH && resultCode == RESULT_OK) { in onActivityResult()
DSearchSupportActivity.java59 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
61 " resultCode=" + resultCode + in onActivityResult()
63 if (requestCode == REQUEST_SPEECH && resultCode == RESULT_OK) { 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/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.java90 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
92 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
99 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DInstallApk.java75 public void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
77 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
79 } else if (resultCode == Activity.RESULT_CANCELED) { in onActivityResult()
85 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
87 } else if (resultCode == Activity.RESULT_CANCELED) { 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/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/samples/ApiDemos/src/com/example/android/apis/preference/
DLaunchingPreferences.java82 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
83 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentReceiveResultSupport.java129 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
143 if (resultCode == RESULT_CANCELED) { in onActivityResult()
150 text.append(Integer.toString(resultCode)); 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/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/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
DNotepadv2.java115 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
116 super.onActivityResult(requestCode, resultCode, intent); in onActivityResult()
/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/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
DNotepadv3.java119 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
120 super.onActivityResult(requestCode, resultCode, intent); 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/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java103 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
108 if (resultCode != RESULT_OK) { in onActivityResult()
113 mMediaProjection = mProjectionManager.getMediaProjection(resultCode, data); in onActivityResult()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DKeyChainDemoActivity.java241 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
243 switch (resultCode) { in onActivityResult()
248 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()

123