/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
D | MainActivity.java | 79 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/ |
D | MainActivity.java | 282 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/ |
D | PhonePermissionRequestActivity.java | 84 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/ |
D | SetupProfileFragment.java | 88 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/ |
D | RedirectMain.java | 61 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()
|
D | ReceiveResult.java | 108 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument 113 if (requestCode == GET_CODE) { in onActivityResult()
|
D | VoiceRecognition.java | 138 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/ |
D | SendMessageActivity.java | 77 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/ |
D | SetupProfileFragment.java | 98 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/ |
D | AddVoicemailActivity.java | 138 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/ |
D | CalendarWatchFacePermissionActivity.java | 45 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/ |
D | MainActivity.java | 264 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/ |
D | ShortcutTemplateListFragment.java | 50 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/ |
D | MainActivityFragment.java | 63 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/ |
D | PermissionRequestFragment.java | 110 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/ |
D | InstallApk.java | 70 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()
|
D | DocumentsSample.java | 276 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/ |
D | BusinessCardActivity.java | 83 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/ |
D | MyMain.java | 48 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/ |
D | MainWearActivity.java | 319 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/ |
D | MediaProjectionDemo.java | 110 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/ |
D | MainActivity.java | 79 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/ |
D | DirectorySelectionFragment.java | 133 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/ |
D | DeviceScanActivity.java | 131 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/ |
D | KeyChainDemoActivity.java | 241 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()
|