/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/ |
DataLayerListenerService.java | 50 GoogleApiClient mGoogleApiClient; 55 mGoogleApiClient = new GoogleApiClient.Builder(this) 58 mGoogleApiClient.connect(); 66 if(!mGoogleApiClient.isConnected()) { 67 ConnectionResult connectionResult = mGoogleApiClient 87 Wearable.MessageApi.sendMessage(mGoogleApiClient, nodeId, DATA_ITEM_RECEIVED_PATH,
|
MainActivity.java | 65 private GoogleApiClient mGoogleApiClient; 87 mGoogleApiClient = new GoogleApiClient.Builder(this) 97 mGoogleApiClient.connect(); 103 Wearable.DataApi.removeListener(mGoogleApiClient, this); 104 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 105 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 106 mGoogleApiClient.disconnect(); 112 Wearable.DataApi.addListener(mGoogleApiClient, this); 113 Wearable.MessageApi.addListener(mGoogleApiClient, this); 114 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/development/samples/browseable/Geofencing/Wearable/src/com.example.android.wearable.geofencing/ |
CheckInAndDeleteDataItemsService.java | 47 private GoogleApiClient mGoogleApiClient; 56 mGoogleApiClient = new GoogleApiClient.Builder(this) 81 mGoogleApiClient.blockingConnect(CONNECTION_TIME_OUT_MS, TimeUnit.MILLISECONDS); 83 if (mGoogleApiClient.isConnected()) { 85 .deleteDataItems(mGoogleApiClient, dataItemUri).await(); 96 mGoogleApiClient.disconnect();
|
/developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
MainActivity.java | 52 private GoogleApiClient mGoogleApiClient; 65 mGoogleApiClient = new GoogleApiClient.Builder(this) 76 mGoogleApiClient.connect(); 82 if (mGoogleApiClient.isConnected()) { 83 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 85 mGoogleApiClient.disconnect(); 94 if (mGoogleApiClient.isConnected()) { 95 Wearable.DataApi.getDataItems(mGoogleApiClient) 116 if (mGoogleApiClient.isConnected()) { 126 Wearable.DataApi.deleteDataItems(mGoogleApiClient, dataItemUri [all...] |
/developers/samples/android/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
MainActivity.java | 52 private GoogleApiClient mGoogleApiClient; 65 mGoogleApiClient = new GoogleApiClient.Builder(this) 76 mGoogleApiClient.connect(); 82 if (mGoogleApiClient.isConnected()) { 83 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 85 mGoogleApiClient.disconnect(); 94 if (mGoogleApiClient.isConnected()) { 95 Wearable.DataApi.getDataItems(mGoogleApiClient) 116 if (mGoogleApiClient.isConnected()) { 126 Wearable.DataApi.deleteDataItems(mGoogleApiClient, dataItemUri [all...] |
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
MainActivity.java | 52 private GoogleApiClient mGoogleApiClient; 65 mGoogleApiClient = new GoogleApiClient.Builder(this) 76 mGoogleApiClient.connect(); 82 if (mGoogleApiClient.isConnected()) { 83 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 85 mGoogleApiClient.disconnect(); 94 if (mGoogleApiClient.isConnected()) { 95 Wearable.DataApi.getDataItems(mGoogleApiClient) 116 if (mGoogleApiClient.isConnected()) { 126 Wearable.DataApi.deleteDataItems(mGoogleApiClient, dataItemUri [all...] |
/developers/build/prebuilts/gradle/DelayedConfirmation/Wearable/src/main/java/com/example/android/wearable/delayedconfirmation/ |
MainActivity.java | 47 private GoogleApiClient mGoogleApiClient; 55 mGoogleApiClient = new GoogleApiClient.Builder(this) 64 if (!mGoogleApiClient.isConnected()) { 65 mGoogleApiClient.connect(); 71 if (mGoogleApiClient.isConnected()) { 72 mGoogleApiClient.disconnect(); 118 Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).setResultCallback( 123 Wearable.MessageApi.sendMessage(mGoogleApiClient, node.getId(), path,
|
/developers/samples/android/wearable/wear/DelayedConfirmation/Wearable/src/main/java/com/example/android/wearable/delayedconfirmation/ |
MainActivity.java | 47 private GoogleApiClient mGoogleApiClient; 55 mGoogleApiClient = new GoogleApiClient.Builder(this) 64 if (!mGoogleApiClient.isConnected()) { 65 mGoogleApiClient.connect(); 71 if (mGoogleApiClient.isConnected()) { 72 mGoogleApiClient.disconnect(); 118 Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).setResultCallback( 123 Wearable.MessageApi.sendMessage(mGoogleApiClient, node.getId(), path,
|
/development/samples/browseable/DelayedConfirmation/Wearable/src/com.example.android.wearable.delayedconfirmation/ |
MainActivity.java | 47 private GoogleApiClient mGoogleApiClient; 55 mGoogleApiClient = new GoogleApiClient.Builder(this) 64 if (!mGoogleApiClient.isConnected()) { 65 mGoogleApiClient.connect(); 71 if (mGoogleApiClient.isConnected()) { 72 mGoogleApiClient.disconnect(); 118 Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).setResultCallback( 123 Wearable.MessageApi.sendMessage(mGoogleApiClient, node.getId(), path,
|
/developers/build/prebuilts/gradle/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 90 private GoogleApiClient mGoogleApiClient; 125 mGoogleApiClient = new GoogleApiClient.Builder(this) 145 mGoogleApiClient.connect(); 165 Wearable.DataApi.removeListener(mGoogleApiClient, this); 166 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 167 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 168 mGoogleApiClient.disconnect(); 179 Wearable.DataApi.addListener(mGoogleApiClient, this); 180 Wearable.MessageApi.addListener(mGoogleApiClient, this); 181 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/developers/build/prebuilts/gradle/SynchronizedNotifications/Application/src/main/java/com/example/android/wearable/synchronizednotifications/ |
DismissListener.java | 47 private GoogleApiClient mGoogleApiClient; 52 mGoogleApiClient = new GoogleApiClient.Builder(this) 98 mGoogleApiClient.connect(); 109 mGoogleApiClient, dataItemUri).setResultCallback(this); 126 mGoogleApiClient.disconnect();
|
/developers/samples/android/wearable/wear/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 90 private GoogleApiClient mGoogleApiClient; 125 mGoogleApiClient = new GoogleApiClient.Builder(this) 145 mGoogleApiClient.connect(); 165 Wearable.DataApi.removeListener(mGoogleApiClient, this); 166 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 167 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 168 mGoogleApiClient.disconnect(); 179 Wearable.DataApi.addListener(mGoogleApiClient, this); 180 Wearable.MessageApi.addListener(mGoogleApiClient, this); 181 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/developers/samples/android/wearable/wear/SynchronizedNotifications/Application/src/main/java/com/example/android/wearable/synchronizednotifications/ |
DismissListener.java | 47 private GoogleApiClient mGoogleApiClient; 52 mGoogleApiClient = new GoogleApiClient.Builder(this) 98 mGoogleApiClient.connect(); 109 mGoogleApiClient, dataItemUri).setResultCallback(this); 126 mGoogleApiClient.disconnect();
|
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/ |
MainActivity.java | 90 private GoogleApiClient mGoogleApiClient; 125 mGoogleApiClient = new GoogleApiClient.Builder(this) 145 mGoogleApiClient.connect(); 165 Wearable.DataApi.removeListener(mGoogleApiClient, this); 166 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 167 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 168 mGoogleApiClient.disconnect(); 179 Wearable.DataApi.addListener(mGoogleApiClient, this); 180 Wearable.MessageApi.addListener(mGoogleApiClient, this); 181 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/development/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/ |
DismissListener.java | 47 private GoogleApiClient mGoogleApiClient; 52 mGoogleApiClient = new GoogleApiClient.Builder(this) 98 mGoogleApiClient.connect(); 109 mGoogleApiClient, dataItemUri).setResultCallback(this); 126 mGoogleApiClient.disconnect();
|
/developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/ |
UpdateService.java | 53 private GoogleApiClient mGoogleApiClient; 62 mGoogleApiClient = new GoogleApiClient.Builder(this) 67 mGoogleApiClient.connect(); 89 if (mGoogleApiClient.isConnected()) { 91 mGoogleApiClient, dataItemUri).setResultCallback(this); 111 mGoogleApiClient, dataItemUri).setResultCallback(this);
|
/developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/ |
UpdateService.java | 53 private GoogleApiClient mGoogleApiClient; 62 mGoogleApiClient = new GoogleApiClient.Builder(this) 67 mGoogleApiClient.connect(); 89 if (mGoogleApiClient.isConnected()) { 91 mGoogleApiClient, dataItemUri).setResultCallback(this); 111 mGoogleApiClient, dataItemUri).setResultCallback(this);
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/ |
UpdateService.java | 53 private GoogleApiClient mGoogleApiClient; 62 mGoogleApiClient = new GoogleApiClient.Builder(this) 67 mGoogleApiClient.connect(); 89 if (mGoogleApiClient.isConnected()) { 91 mGoogleApiClient, dataItemUri).setResultCallback(this); 111 mGoogleApiClient, dataItemUri).setResultCallback(this);
|
/developers/build/prebuilts/gradle/Quiz/Application/src/main/java/com/example/android/wearable/quiz/ |
MainActivity.java | 102 private GoogleApiClient mGoogleApiClient; 128 mGoogleApiClient = new GoogleApiClient.Builder(this) 152 if (!mGoogleApiClient.isConnected()) { 153 mGoogleApiClient.connect(); 159 Wearable.DataApi.removeListener(mGoogleApiClient, this); 160 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 163 // disconnect mGoogleApiClient. 182 Wearable.DataApi.addListener(mGoogleApiClient, this); 183 Wearable.MessageApi.addListener(mGoogleApiClient, this); 301 Wearable.DataApi.putDataItem(mGoogleApiClient, question.toPutDataRequest()) [all...] |
/developers/samples/android/wearable/wear/Quiz/Application/src/main/java/com/example/android/wearable/quiz/ |
MainActivity.java | 102 private GoogleApiClient mGoogleApiClient; 128 mGoogleApiClient = new GoogleApiClient.Builder(this) 152 if (!mGoogleApiClient.isConnected()) { 153 mGoogleApiClient.connect(); 159 Wearable.DataApi.removeListener(mGoogleApiClient, this); 160 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 163 // disconnect mGoogleApiClient. 182 Wearable.DataApi.addListener(mGoogleApiClient, this); 183 Wearable.MessageApi.addListener(mGoogleApiClient, this); 301 Wearable.DataApi.putDataItem(mGoogleApiClient, question.toPutDataRequest()) [all...] |
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
MainActivity.java | 102 private GoogleApiClient mGoogleApiClient; 128 mGoogleApiClient = new GoogleApiClient.Builder(this) 152 if (!mGoogleApiClient.isConnected()) { 153 mGoogleApiClient.connect(); 159 Wearable.DataApi.removeListener(mGoogleApiClient, this); 160 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 163 // disconnect mGoogleApiClient. 182 Wearable.DataApi.addListener(mGoogleApiClient, this); 183 Wearable.MessageApi.addListener(mGoogleApiClient, this); 301 Wearable.DataApi.putDataItem(mGoogleApiClient, question.toPutDataRequest()) [all...] |
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 65 private GoogleApiClient mGoogleApiClient; 87 mGoogleApiClient = new GoogleApiClient.Builder(this) 97 mGoogleApiClient.connect(); 103 Wearable.DataApi.removeListener(mGoogleApiClient, this); 104 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 105 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 106 mGoogleApiClient.disconnect(); 112 Wearable.DataApi.addListener(mGoogleApiClient, this); 113 Wearable.MessageApi.addListener(mGoogleApiClient, this); 114 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 65 private GoogleApiClient mGoogleApiClient; 87 mGoogleApiClient = new GoogleApiClient.Builder(this) 97 mGoogleApiClient.connect(); 103 Wearable.DataApi.removeListener(mGoogleApiClient, this); 104 Wearable.MessageApi.removeListener(mGoogleApiClient, this); 105 Wearable.NodeApi.removeListener(mGoogleApiClient, this); 106 mGoogleApiClient.disconnect(); 112 Wearable.DataApi.addListener(mGoogleApiClient, this); 113 Wearable.MessageApi.addListener(mGoogleApiClient, this); 114 Wearable.NodeApi.addListener(mGoogleApiClient, this) [all...] |
/developers/build/prebuilts/gradle/WatchFace/Application/src/main/java/com/example/android/wearable/watchface/ |
DigitalWatchFaceCompanionConfigActivity.java | 59 private GoogleApiClient mGoogleApiClient; 68 mGoogleApiClient = new GoogleApiClient.Builder(this) 83 mGoogleApiClient.connect(); 88 if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { 89 mGoogleApiClient.disconnect(); 103 Wearable.DataApi.getDataItem(mGoogleApiClient, uri).setResultCallback(this); 209 Wearable.MessageApi.sendMessage(mGoogleApiClient, mPeerId, PATH_WITH_FEATURE, rawData);
|
/developers/samples/android/wearable/wear/WatchFace/Application/src/main/java/com/example/android/wearable/watchface/ |
DigitalWatchFaceCompanionConfigActivity.java | 59 private GoogleApiClient mGoogleApiClient; 68 mGoogleApiClient = new GoogleApiClient.Builder(this) 83 mGoogleApiClient.connect(); 88 if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) { 89 mGoogleApiClient.disconnect(); 103 Wearable.DataApi.getDataItem(mGoogleApiClient, uri).setResultCallback(this); 209 Wearable.MessageApi.sendMessage(mGoogleApiClient, mPeerId, PATH_WITH_FEATURE, rawData);
|