Lines Matching refs:Constants
35 import com.example.android.wearable.runtimepermissions.common.Constants;
168 dataMap.putInt(Constants.KEY_COMM_TYPE, in onClickPhoneStorage()
169 Constants.COMM_TYPE_REQUEST_DATA); in onClickPhoneStorage()
181 Constants.CAPABILITY_PHONE_APP); in onPause()
272 Constants.CAPABILITY_PHONE_APP); in onConnected()
279 Constants.CAPABILITY_PHONE_APP, in onConnected()
349 dataMap.putInt(Constants.KEY_COMM_TYPE, in onRequestPermissionsResult()
350 Constants.COMM_TYPE_RESPONSE_USER_APPROVED_PERMISSION); in onRequestPermissionsResult()
365 dataMap.putInt(Constants.KEY_COMM_TYPE, in onRequestPermissionsResult()
366 Constants.COMM_TYPE_RESPONSE_USER_DENIED_PERMISSION); in onRequestPermissionsResult()
378 if (messagePath.equals(Constants.MESSAGE_PATH_WEAR)) { in onMessageReceived()
381 int commType = dataMap.getInt(Constants.KEY_COMM_TYPE, 0); in onMessageReceived()
383 if (commType == Constants.COMM_TYPE_RESPONSE_PERMISSION_REQUIRED) { in onMessageReceived()
395 } else if (commType == Constants.COMM_TYPE_RESPONSE_USER_APPROVED_PERMISSION) { in onMessageReceived()
400 outgoingDataRequestDataMap.putInt(Constants.KEY_COMM_TYPE, in onMessageReceived()
401 Constants.COMM_TYPE_REQUEST_DATA); in onMessageReceived()
404 } else if (commType == Constants.COMM_TYPE_RESPONSE_USER_DENIED_PERMISSION) { in onMessageReceived()
409 } else if (commType == Constants.COMM_TYPE_RESPONSE_DATA) { in onMessageReceived()
411 String storageDetails = dataMap.getString(Constants.KEY_PAYLOAD); in onMessageReceived()
427 Constants.MESSAGE_PATH_PHONE, in sendMessage()
442 }, Constants.CONNECTION_TIME_OUT_MS, TimeUnit.SECONDS); in sendMessage()
460 dataMap.putInt(Constants.KEY_COMM_TYPE, in onActivityResult()
461 Constants.COMM_TYPE_REQUEST_PROMPT_PERMISSION); in onActivityResult()