/development/samples/browseable/DelayedConfirmation/Application/src/com.example.android.wearable.delayedconfirmation/ |
D | MainActivity.java | 44 private GoogleApiClient mGoogleApiClient; field in MainActivity 50 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 60 if (!mGoogleApiClient.isConnected()) { in onResume() 61 mGoogleApiClient.connect(); in onResume() 67 if (mGoogleApiClient.isConnected()) { in onDestroy() 68 mGoogleApiClient.disconnect(); in onDestroy() 75 Wearable.MessageApi.addListener(mGoogleApiClient, this); in onConnected() 80 Wearable.MessageApi.removeListener(mGoogleApiClient, this); in onConnectionSuspended() 110 Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).setResultCallback( in onStartWearableActivityClick() 116 mGoogleApiClient, node.getId(), START_ACTIVITY_PATH, new byte[0]) in onStartWearableActivityClick()
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
D | MainActivity.java | 52 private GoogleApiClient mGoogleApiClient; field in MainActivity 65 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 76 mGoogleApiClient.connect(); in onStart() 82 if (mGoogleApiClient.isConnected()) { in onStop() 83 Wearable.NodeApi.removeListener(mGoogleApiClient, this); in onStop() 85 mGoogleApiClient.disconnect(); in onStop() 94 if (mGoogleApiClient.isConnected()) { in onDeleteEventsClicked() 95 Wearable.DataApi.getDataItems(mGoogleApiClient) in onDeleteEventsClicked() 116 if (mGoogleApiClient.isConnected()) { in deleteDataItems() 126 Wearable.DataApi.deleteDataItems(mGoogleApiClient, dataItemUri) in deleteDataItems() [all …]
|
D | CalendarQueryService.java | 89 private GoogleApiClient mGoogleApiClient; field in CalendarQueryService 98 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 107 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 119 if (mGoogleApiClient.isConnected()) { in onHandleIntent() 121 mGoogleApiClient, putDataMapRequest.asPutDataRequest()).await(); in onHandleIntent() 127 mGoogleApiClient.disconnect(); in onHandleIntent()
|
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
D | GeofenceTransitionsIntentService.java | 46 private GoogleApiClient mGoogleApiClient; field in GeofenceTransitionsIntentService 55 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 78 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 89 if (mGoogleApiClient.isConnected()) { in onHandleIntent() 91 mGoogleApiClient, putDataMapRequest.asPutDataRequest()).await(); in onHandleIntent() 98 mGoogleApiClient.disconnect(); in onHandleIntent() 101 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 102 Wearable.DataApi.deleteDataItems(mGoogleApiClient, GEOFENCE_DATA_ITEM_URI).await(); in onHandleIntent() 105 mGoogleApiClient.disconnect(); in onHandleIntent()
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | DeleteQuestionService.java | 47 private GoogleApiClient mGoogleApiClient; field in DeleteQuestionService 56 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 65 mGoogleApiClient.blockingConnect(CONNECT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 67 if (!mGoogleApiClient.isConnected()) { in onHandleIntent() 73 mGoogleApiClient, dataItemUri).await(); in onHandleIntent() 79 Wearable.DataApi.putDataItem(mGoogleApiClient, request).await(); in onHandleIntent() 80 mGoogleApiClient.disconnect(); in onHandleIntent()
|
D | UpdateQuestionService.java | 52 private GoogleApiClient mGoogleApiClient; field in UpdateQuestionService 61 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 70 mGoogleApiClient.blockingConnect(TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 72 if (!mGoogleApiClient.isConnected()) { in onHandleIntent() 78 mGoogleApiClient, dataItemUri).await(); in onHandleIntent() 90 Wearable.DataApi.putDataItem(mGoogleApiClient, request).await(); in onHandleIntent() 94 mGoogleApiClient.disconnect(); in onHandleIntent()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceConfigListenerService.java | 39 private GoogleApiClient mGoogleApiClient; field in DigitalWatchFaceConfigListenerService 54 if (mGoogleApiClient == null) { in onMessageReceived() 55 mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this) in onMessageReceived() 58 if (!mGoogleApiClient.isConnected()) { in onMessageReceived() 60 mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS); in onMessageReceived() 68 DigitalWatchFaceUtil.overwriteKeysInConfigDataMap(mGoogleApiClient, configKeysToOverwrite); in onMessageReceived()
|
D | DigitalWatchFaceWearableConfigActivity.java | 51 private GoogleApiClient mGoogleApiClient; field in DigitalWatchFaceWearableConfigActivity 84 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 115 mGoogleApiClient.connect(); in onStart() 120 if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { in onStop() 121 mGoogleApiClient.disconnect(); in onStop() 155 DigitalWatchFaceUtil.overwriteKeysInConfigDataMap(mGoogleApiClient, configKeysToOverwrite); in updateConfigDataItem()
|
D | DigitalWatchFaceService.java | 119 GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(DigitalWatchFaceService.this) field in DigitalWatchFaceService.Engine 217 mGoogleApiClient.connect(); in onVisibilityChanged() 227 if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { in onVisibilityChanged() 228 Wearable.DataApi.removeListener(mGoogleApiClient, this); in onVisibilityChanged() 229 mGoogleApiClient.disconnect(); in onVisibilityChanged() 482 DigitalWatchFaceUtil.fetchConfigDataMap(mGoogleApiClient, 489 DigitalWatchFaceUtil.putConfigDataItem(mGoogleApiClient, startupConfig); 587 Wearable.DataApi.addListener(mGoogleApiClient, Engine.this);
|
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/ |
D | FindPhoneService.java | 48 private GoogleApiClient mGoogleApiClient; field in FindPhoneService 57 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 66 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 70 if (mGoogleApiClient.isConnected()) { in onHandleIntent() 75 DataItemBuffer result = Wearable.DataApi.getDataItems(mGoogleApiClient).await(); in onHandleIntent() 100 Wearable.DataApi.putDataItem(mGoogleApiClient, putDataMapRequest.asPutDataRequest()) in onHandleIntent() 106 mGoogleApiClient.disconnect(); in onHandleIntent()
|
/development/samples/browseable/DelayedConfirmation/Wearable/src/com.example.android.wearable.delayedconfirmation/ |
D | MainActivity.java | 47 private GoogleApiClient mGoogleApiClient; field in MainActivity 55 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 64 if (!mGoogleApiClient.isConnected()) { in onResume() 65 mGoogleApiClient.connect(); in onResume() 71 if (mGoogleApiClient.isConnected()) { in onDestroy() 72 mGoogleApiClient.disconnect(); in onDestroy() 118 Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).setResultCallback( in sendMessageToCompanion() 123 Wearable.MessageApi.sendMessage(mGoogleApiClient, node.getId(), path, in sendMessageToCompanion()
|
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/ |
D | MainActivity.java | 90 private GoogleApiClient mGoogleApiClient; field in MainActivity 125 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 145 mGoogleApiClient.connect(); in onStart() 165 Wearable.DataApi.removeListener(mGoogleApiClient, this); in onStop() 166 Wearable.MessageApi.removeListener(mGoogleApiClient, this); in onStop() 167 Wearable.NodeApi.removeListener(mGoogleApiClient, this); in onStop() 168 mGoogleApiClient.disconnect(); in onStop() 179 Wearable.DataApi.addListener(mGoogleApiClient, this); in onConnected() 180 Wearable.MessageApi.addListener(mGoogleApiClient, this); in onConnected() 181 Wearable.NodeApi.addListener(mGoogleApiClient, this); in onConnected() [all …]
|
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/ |
D | DataLayerListenerService.java | 50 GoogleApiClient mGoogleApiClient; field in DataLayerListenerService 55 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 58 mGoogleApiClient.connect(); in onCreate() 66 if(!mGoogleApiClient.isConnected()) { in onDataChanged() 67 ConnectionResult connectionResult = mGoogleApiClient in onDataChanged() 87 Wearable.MessageApi.sendMessage(mGoogleApiClient, nodeId, DATA_ITEM_RECEIVED_PATH, in onDataChanged()
|
D | MainActivity.java | 65 private GoogleApiClient mGoogleApiClient; field in MainActivity 87 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 97 mGoogleApiClient.connect(); in onResume() 103 Wearable.DataApi.removeListener(mGoogleApiClient, this); in onPause() 104 Wearable.MessageApi.removeListener(mGoogleApiClient, this); in onPause() 105 Wearable.NodeApi.removeListener(mGoogleApiClient, this); in onPause() 106 mGoogleApiClient.disconnect(); in onPause() 112 Wearable.DataApi.addListener(mGoogleApiClient, this); in onConnected() 113 Wearable.MessageApi.addListener(mGoogleApiClient, this); in onConnected() 114 Wearable.NodeApi.addListener(mGoogleApiClient, this); in onConnected() [all …]
|
/development/samples/browseable/AgendaData/Wearable/src/com.example.android.wearable.agendadata/ |
D | DeleteService.java | 45 private GoogleApiClient mGoogleApiClient; field in DeleteService 54 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 63 mGoogleApiClient.blockingConnect(TIME_OUT, TimeUnit.MILLISECONDS); in onHandleIntent() 68 if (mGoogleApiClient.isConnected()) { in onHandleIntent() 70 .deleteDataItems(mGoogleApiClient, dataItemUri).await(); in onHandleIntent() 95 mGoogleApiClient.disconnect(); in onHandleIntent()
|
D | HomeListenerService.java | 64 private GoogleApiClient mGoogleApiClient; field in HomeListenerService 84 mGoogleApiClient = new GoogleApiClient.Builder(this.getApplicationContext()) in onCreate() 87 mGoogleApiClient.connect(); in onCreate() 135 if (mGoogleApiClient.isConnected()) { in UpdateNotificationForDataItem() 137 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); in UpdateNotificationForDataItem()
|
/development/samples/browseable/Geofencing/Wearable/src/com.example.android.wearable.geofencing/ |
D | CheckInAndDeleteDataItemsService.java | 47 private GoogleApiClient mGoogleApiClient; field in CheckInAndDeleteDataItemsService 56 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 81 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); in onHandleIntent() 83 if (mGoogleApiClient.isConnected()) { in onHandleIntent() 85 .deleteDataItems(mGoogleApiClient, dataItemUri).await(); in onHandleIntent() 96 mGoogleApiClient.disconnect(); in onHandleIntent()
|
D | HomeListenerService.java | 53 private GoogleApiClient mGoogleApiClient; field in HomeListenerService 58 mGoogleApiClient = new GoogleApiClient.Builder(this.getApplicationContext()) in onCreate() 61 mGoogleApiClient.connect(); in onCreate()
|
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
D | MainActivity.java | 102 private GoogleApiClient mGoogleApiClient; field in MainActivity 128 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 152 if (!mGoogleApiClient.isConnected()) { in onStart() 153 mGoogleApiClient.connect(); in onStart() 159 Wearable.DataApi.removeListener(mGoogleApiClient, this); in onStop() 160 Wearable.MessageApi.removeListener(mGoogleApiClient, this); in onStop() 182 Wearable.DataApi.addListener(mGoogleApiClient, this); in onConnected() 183 Wearable.MessageApi.addListener(mGoogleApiClient, this); in onConnected() 301 Wearable.DataApi.putDataItem(mGoogleApiClient, question.toPutDataRequest()); in addQuestionDataItem() 405 Wearable.DataApi.putDataItem(mGoogleApiClient, in askNextQuestionIfExists() [all …]
|
/development/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/ |
D | SynchronizedNotificationsFragment.java | 65 private GoogleApiClient mGoogleApiClient; field in SynchronizedNotificationsFragment 70 mGoogleApiClient = new GoogleApiClient.Builder(this.getActivity()) in onCreate() 125 if (mGoogleApiClient.isConnected()) { in buildWearableOnlyNotification() 130 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in buildWearableOnlyNotification() 156 if (mGoogleApiClient.isConnected()) { in buildMirroredNotifications() 168 mGoogleApiClient.connect(); in onStart() 173 mGoogleApiClient.disconnect(); in onStop()
|
D | DismissListener.java | 47 private GoogleApiClient mGoogleApiClient; field in DismissListener 52 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 98 mGoogleApiClient.connect(); in dismissWearableNotification() 109 mGoogleApiClient, dataItemUri).setResultCallback(this); in onConnected() 126 mGoogleApiClient.disconnect(); in onResult()
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/ |
D | UpdateService.java | 53 private GoogleApiClient mGoogleApiClient; field in UpdateService 62 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 67 mGoogleApiClient.connect(); in onCreate() 89 if (mGoogleApiClient.isConnected()) { in onDataChanged() 91 mGoogleApiClient, dataItemUri).setResultCallback(this); in onDataChanged() 111 mGoogleApiClient, dataItemUri).setResultCallback(this); in onConnected()
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ |
D | WearableMainActivity.java | 75 private GoogleApiClient mGoogleApiClient; field in WearableMainActivity 139 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 145 mGoogleApiClient.connect(); in onCreate() 214 .requestLocationUpdates(mGoogleApiClient, locationRequest, this) in onConnected() 239 LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this); in onConnectionSuspended() 293 if (!mSaveGpsLocation || !mGoogleApiClient.isConnected()) { in addLocationEntry() 305 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in addLocationEntry() 321 if (mGoogleApiClient.isConnected()) { in onStop() 322 LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this); in onStop() 324 mGoogleApiClient.disconnect(); in onStop()
|
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceCompanionConfigActivity.java | 59 private GoogleApiClient mGoogleApiClient; field in DigitalWatchFaceCompanionConfigActivity 68 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 83 mGoogleApiClient.connect(); in onStart() 88 if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { in onStop() 89 mGoogleApiClient.disconnect(); in onStop() 103 Wearable.DataApi.getDataItem(mGoogleApiClient, uri).setResultCallback(this); in onConnected() 209 Wearable.MessageApi.sendMessage(mGoogleApiClient, mPeerId, PATH_WITH_FEATURE, rawData); in sendConfigUpdateMessage()
|
/development/samples/browseable/SynchronizedNotifications/Wearable/src/com.example.android.wearable.synchronizednotifications/ |
D | NotificationUpdateService.java | 53 private GoogleApiClient mGoogleApiClient; field in NotificationUpdateService 58 mGoogleApiClient = new GoogleApiClient.Builder(this) in onCreate() 88 mGoogleApiClient.connect(); in dismissPhoneNotification() 146 mGoogleApiClient, dataItemUri).setResultCallback(this); in onConnected() 162 mGoogleApiClient.disconnect(); in onResult()
|