Home
last modified time | relevance | path

Searched refs:requestCode (Results 1 – 25 of 61) 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()
81 switch (requestCode) { in onActivityResult()
107 super.onActivityResult(requestCode, resultCode, data); 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()
288 if (requestCode == REQUEST_RESOLVE_ERROR) { in onActivityResult()
304 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
310 if (requestCode == REQUEST_CALENDAR_AND_CONTACTS) { in onRequestPermissionsResult()
332 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/
DPhonePermissionRequestActivity.java84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
86 String permissionResult = "Request code: " + requestCode + ", Permissions: " + permissions in onRequestPermissionsResult()
90 if (requestCode == PERMISSION_REQUEST_READ_STORAGE) { in onRequestPermissionsResult()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DSetupProfileFragment.java88 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
89 if (requestCode == REQUEST_PROVISION_MANAGED_PROFILE) { in onActivityResult()
97 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DRedirectMain.java61 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
63 if (requestCode == INIT_TEXT_REQUEST) { in onActivityResult()
76 } else if (requestCode == NEW_TEXT_REQUEST) { in onActivityResult()
DReceiveResult.java108 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
113 if (requestCode == GET_CODE) { 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/DirectShare/src/com.example.android.directshare/
DSendMessageActivity.java77 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
78 switch (requestCode) { in onActivityResult()
91 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DSetupProfileFragment.java98 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
99 if (requestCode == REQUEST_PROVISION_MANAGED_PROFILE) { in onActivityResult()
107 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()
140 switch (requestCode) { in onActivityResult()
145 logger.e("onActivityResult: Unexpected requestCode: " + requestCode); in onActivityResult()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DCalendarWatchFacePermissionActivity.java45 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
49 if (requestCode == PERMISSION_REQUEST_READ_CALENDAR) { in onRequestPermissionsResult()
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/
DMainActivity.java264 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument
267 if (requestCode == REQUEST_CAMERA) { in onRequestPermissionsResult()
286 } else if (requestCode == REQUEST_CONTACTS) { in onRequestPermissionsResult()
304 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutTemplateListFragment.java50 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 switch (requestCode) { 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/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DPermissionRequestFragment.java110 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, in onRequestPermissionsResult() argument
114 if (requestCode == REQUEST_CAMERA_PERMISSION) { in onRequestPermissionsResult()
122 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DInstallApk.java70 public void onActivityResult(int requestCode, int resultCode, Intent intent) { in onActivityResult() argument
71 if (requestCode == REQUEST_INSTALL) { in onActivityResult()
79 } else if (requestCode == REQUEST_UNINSTALL) { in onActivityResult()
DDocumentsSample.java276 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
292 if (requestCode == CODE_READ) { in onActivityResult()
307 } else if (requestCode == CODE_WRITE) { in onActivityResult()
323 } else if (requestCode == CODE_TREE) { in onActivityResult()
371 } else if (requestCode == CODE_RENAME) { in onActivityResult()
/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/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/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/
DMainWearActivity.java319 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
321 String permissionResult = "Request code: " + requestCode + ", Permissions: " + permissions in onRequestPermissionsResult()
326 if (requestCode == PERMISSION_REQUEST_READ_BODY_SENSORS) { in onRequestPermissionsResult()
453 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
455 if (requestCode == REQUEST_PHONE_PERMISSION) { 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
111 if (requestCode != PERMISSION_CODE) { in onActivityResult()
112 Log.e(TAG, "Unknown request code: " + requestCode); in onActivityResult()
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/
DMainActivity.java79 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
82 if (requestCode == PERMISSION_REQUEST_CAMERA) { in onRequestPermissionsResult()
/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()
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceScanActivity.java131 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
133 if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) { in onActivityResult()
137 super.onActivityResult(requestCode, 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
242 if (requestCode == INSTALL_KEYCHAIN_CODE) { in onActivityResult()
248 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()

123