Lines Matching refs:Constants
33 import com.example.android.wearable.runtimepermissions.common.Constants;
130 dataMap.putInt(Constants.KEY_COMM_TYPE, Constants.COMM_TYPE_REQUEST_DATA); in onClickWearBodySensors()
154 Constants.CAPABILITY_WEAR_APP); in onPause()
191 dataMap.putInt(Constants.KEY_COMM_TYPE, in onActivityResult()
192 Constants.COMM_TYPE_REQUEST_PROMPT_PERMISSION); in onActivityResult()
206 Constants.CAPABILITY_WEAR_APP); in onConnected()
213 Constants.CAPABILITY_WEAR_APP, in onConnected()
224 capabilityName.equals(Constants.CAPABILITY_WEAR_APP); in onConnected()
269 if (messagePath.equals(Constants.MESSAGE_PATH_PHONE)) { in onMessageReceived()
272 int commType = dataMap.getInt(Constants.KEY_COMM_TYPE, 0); in onMessageReceived()
274 if (commType == Constants.COMM_TYPE_RESPONSE_PERMISSION_REQUIRED) { in onMessageReceived()
286 } else if (commType == Constants.COMM_TYPE_RESPONSE_USER_APPROVED_PERMISSION) { in onMessageReceived()
291 outgoingDataRequestDataMap.putInt(Constants.KEY_COMM_TYPE, in onMessageReceived()
292 Constants.COMM_TYPE_REQUEST_DATA); in onMessageReceived()
295 } else if (commType == Constants.COMM_TYPE_RESPONSE_USER_DENIED_PERMISSION) { in onMessageReceived()
300 } else if (commType == Constants.COMM_TYPE_RESPONSE_DATA) { in onMessageReceived()
302 String storageDetails = dataMap.getString(Constants.KEY_PAYLOAD); in onMessageReceived()
336 Constants.MESSAGE_PATH_WEAR, in sendMessage()
339 pendingResult.setResultCallback(this, Constants.CONNECTION_TIME_OUT_MS, in sendMessage()
432 dataMap.putInt(Constants.KEY_COMM_TYPE, in sendWearPermissionResults()
433 Constants.COMM_TYPE_RESPONSE_USER_APPROVED_PERMISSION); in sendWearPermissionResults()
435 dataMap.putInt(Constants.KEY_COMM_TYPE, in sendWearPermissionResults()
436 Constants.COMM_TYPE_RESPONSE_USER_DENIED_PERMISSION); in sendWearPermissionResults()