/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/ |
D | UtilityService.java | 121 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in clearRemoteNotificationsInternal() local 125 ConnectionResult connectionResult = googleApiClient.blockingConnect( in clearRemoteNotificationsInternal() 128 if (connectionResult.isSuccess() && googleApiClient.isConnected()) { in clearRemoteNotificationsInternal() 129 Iterator<String> itr = Utils.getNodes(googleApiClient).iterator(); in clearRemoteNotificationsInternal() 133 googleApiClient, itr.next(), Constants.CLEAR_NOTIFICATIONS_PATH, null); in clearRemoteNotificationsInternal() 137 googleApiClient.disconnect(); in clearRemoteNotificationsInternal() 148 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in startDeviceActivityInternal() local 152 ConnectionResult connectionResult = googleApiClient.blockingConnect( in startDeviceActivityInternal() 155 if (connectionResult.isSuccess() && googleApiClient.isConnected()) { in startDeviceActivityInternal() 157 googleApiClient, in startDeviceActivityInternal() [all …]
|
D | ListenerService.java | 80 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in showNotification() local 84 ConnectionResult connectionResult = googleApiClient.blockingConnect( in showNotification() 87 if (!connectionResult.isSuccess() || !googleApiClient.isConnected()) { in showNotification() 104 googleApiClient, attraction.getAsset(Constants.EXTRA_IMAGE)); in showNotification() 125 googleApiClient.disconnect(); in showNotification()
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | QuizReportActionService.java | 55 final GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in onHandleIntent() local 58 ConnectionResult result = googleApiClient.blockingConnect(CONNECT_TIMEOUT_MS, in onHandleIntent() 66 .getCapability(googleApiClient, RESET_QUIZ_CAPABILITY_NAME, in onHandleIntent() 70 sendResetMessage(googleApiClient, capabilityResult.getCapability()); in onHandleIntent() 78 private void sendResetMessage(GoogleApiClient googleApiClient, CapabilityInfo capabilityInfo) { in sendResetMessage() argument 84 Wearable.MessageApi.sendMessage(googleApiClient, node.getId(), RESET_QUIZ_PATH, in sendResetMessage()
|
D | QuizListenerService.java | 82 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in onDataChanged() local 86 ConnectionResult connectionResult = googleApiClient.blockingConnect(CONNECT_TIMEOUT_MS, in onDataChanged() 163 googleApiClient.disconnect(); in onDataChanged()
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
D | UtilityService.java | 158 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in addGeofencesInternal() local 164 ConnectionResult connectionResult = googleApiClient.blockingConnect( in addGeofencesInternal() 167 if (connectionResult.isSuccess() && googleApiClient.isConnected()) { in addGeofencesInternal() 170 GeofencingApi.addGeofences(googleApiClient, in addGeofencesInternal() 172 googleApiClient.disconnect(); in addGeofencesInternal() 215 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in requestLocationInternal() local 221 ConnectionResult connectionResult = googleApiClient.blockingConnect( in requestLocationInternal() 224 if (connectionResult.isSuccess() && googleApiClient.isConnected()) { in requestLocationInternal() 230 Location location = FusedLocationApi.getLastLocation(googleApiClient); in requestLocationInternal() 242 googleApiClient, mLocationRequest, in requestLocationInternal() [all …]
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceUtil.java | 146 public static void overwriteKeysInConfigDataMap(final GoogleApiClient googleApiClient, in overwriteKeysInConfigDataMap() argument 149 DigitalWatchFaceUtil.fetchConfigDataMap(googleApiClient, in overwriteKeysInConfigDataMap() 156 DigitalWatchFaceUtil.putConfigDataItem(googleApiClient, overwrittenConfig); in overwriteKeysInConfigDataMap() 166 public static void putConfigDataItem(GoogleApiClient googleApiClient, DataMap newConfig) { in putConfigDataItem() argument 171 Wearable.DataApi.putDataItem(googleApiClient, putDataMapRequest.asPutDataRequest()) in putConfigDataItem()
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
D | IncomingRequestWearService.java | 136 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this) in sendMessage() local 140 googleApiClient.blockingConnect( in sendMessage() 151 googleApiClient, in sendMessage() 162 googleApiClient.disconnect(); in sendMessage() 171 googleApiClient, in sendMessage() 185 googleApiClient.disconnect(); in sendMessage()
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionsActivity.java | 191 GoogleApiClient googleApiClient = new GoogleApiClient.Builder(mContext) in doInBackground() local 195 ConnectionResult connectionResult = googleApiClient.blockingConnect( in doInBackground() 198 if (!connectionResult.isSuccess() || !googleApiClient.isConnected()) { in doInBackground() 206 Wearable.DataApi.getDataItem(googleApiClient, attractionsUri).await(); in doInBackground() 228 attraction.image = Utils.loadBitmapFromAsset(googleApiClient, in doInBackground() 230 attraction.secondaryImage = Utils.loadBitmapFromAsset(googleApiClient, in doInBackground() 237 googleApiClient.disconnect(); in doInBackground()
|
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/ |
D | Utils.java | 143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) { in loadBitmapFromAsset() argument 149 googleApiClient, asset).await().getInputStream(); in loadBitmapFromAsset()
|