Java Code Examples for com.google.android.gms.wearable.DataMap#getLong()
The following examples show how to use
com.google.android.gms.wearable.DataMap#getLong() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WatchUpdaterService.java From xDrip-plus with GNU General Public License v3.0 | 6 votes |
private void syncFieldData(DataMap dataMap) { String dex_txid = dataMap.getString("dex_txid", ""); byte[] G5_BATTERY_MARKER = dataMap.getByteArray(G5CollectionService.G5_BATTERY_MARKER); byte[] G5_FIRMWARE_MARKER = dataMap.getByteArray(G5CollectionService.G5_FIRMWARE_MARKER); if (dex_txid != null && dex_txid.equals(mPrefs.getString("dex_txid", "default"))) { if (G5_BATTERY_MARKER != null) { long watch_last_battery_query = dataMap.getLong(G5CollectionService.G5_BATTERY_FROM_MARKER); long phone_last_battery_query = PersistentStore.getLong(G5CollectionService.G5_BATTERY_FROM_MARKER + dex_txid); if (watch_last_battery_query > phone_last_battery_query) { G5CollectionService.setStoredBatteryBytes(dex_txid, G5_BATTERY_MARKER); PersistentStore.setLong(G5CollectionService.G5_BATTERY_FROM_MARKER + dex_txid, watch_last_battery_query); G5CollectionService.getBatteryStatusNow = false; Ob1G5CollectionService.getBatteryStatusNow = false; } } if (G5_FIRMWARE_MARKER != null) { G5CollectionService.setStoredFirmwareBytes(dex_txid, G5_FIRMWARE_MARKER); } } }
Example 2
Source File: ListenerService.java From xDrip-plus with GNU General Public License v3.0 | 6 votes |
private void syncSensorData(DataMap dataMap, Context context) {//KS Log.d(TAG, "syncSensorData"); if (dataMap != null) { String uuid = dataMap.getString("uuid"); Log.d(TAG, "syncSensorData add Sensor for uuid=" + uuid); long started_at = dataMap.getLong("started_at"); Integer latest_battery_level = dataMap.getInt("latest_battery_level"); String sensor_location = dataMap.getString("sensor_location"); Sensor.InitDb(context);//ensure database has already been initialized if (uuid != null && !uuid.isEmpty()) { Log.d(TAG, "syncSensorData add Sensor for uuid=" + uuid + " timestamp=" + started_at + " timeString=" + JoH.dateTimeText(started_at)); Sensor sensor = Sensor.getByUuid(uuid); if (sensor == null) { Log.d(TAG, "syncSensorData createUpdate new Sensor..."); Sensor.createUpdate(started_at, 0, latest_battery_level, sensor_location, uuid); Sensor newsensor = Sensor.currentSensor(); if (newsensor != null) { Log.d(TAG, "syncSensorData createUpdate Sensor with uuid=" + uuid + " started at=" + started_at); } else Log.d(TAG, "syncSensorData Failed to createUpdate new Sensor for uuid=" + uuid); } else Log.d(TAG, "syncSensorData Sensor already exists with uuid=" + uuid); } } }
Example 3
Source File: NOChart.java From AndroidAPS with GNU Affero General Public License v3.0 | 6 votes |
private void loadBasalsAndTemps(DataMap dataMap) { ArrayList<DataMap> temps = dataMap.getDataMapArrayList("temps"); if (temps != null) { tempWatchDataList = new ArrayList<>(); for (DataMap temp : temps) { TempWatchData twd = new TempWatchData(); twd.startTime = temp.getLong("starttime"); twd.startBasal = temp.getDouble("startBasal"); twd.endTime = temp.getLong("endtime"); twd.endBasal = temp.getDouble("endbasal"); twd.amount = temp.getDouble("amount"); tempWatchDataList.add(twd); } } ArrayList<DataMap> basals = dataMap.getDataMapArrayList("basals"); if (basals != null) { basalWatchDataList = new ArrayList<>(); for (DataMap basal : basals) { BasalWatchData bwd = new BasalWatchData(); bwd.startTime = basal.getLong("starttime"); bwd.endTime = basal.getLong("endtime"); bwd.amount = basal.getDouble("amount"); basalWatchDataList.add(bwd); } } }
Example 4
Source File: WearService.java From android-samples with Apache License 2.0 | 5 votes |
@Override public void onDataChanged(DataEventBuffer dataEventBuffer) { super.onDataChanged(dataEventBuffer); //This method will call while any changes in data map occurs from watch side //This is data map. So, message delivery is guaranteed. for (DataEvent dataEvent : dataEventBuffer) { //Check for only those data who changed if (dataEvent.getType() == DataEvent.TYPE_CHANGED) { DataMap dataMap = DataMapItem.fromDataItem(dataEvent.getDataItem()).getDataMap(); //Check if the data map path matches with the step tracking status path String path = dataEvent.getDataItem().getUri().getPath(); if (path.equals(STEP_TRACKING_STATUS_PATH)) { //Read the values boolean isTracking = dataMap.getBoolean("status"); long timeStamp = dataMap.getLong("status-time"); //send broadcast to update the UI in MainActivity based on the tracking status Intent intent = new Intent(TRACKING_STATUS_ACTION); intent.putExtra("status", isTracking); intent.putExtra("status-time", timeStamp); LocalBroadcastManager.getInstance(this).sendBroadcast(intent); Log.d("Tracking status: ", isTracking + " Time: " + timeStamp); } } } }
Example 5
Source File: WatchUpdaterService.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
private synchronized void syncTreatmentsData(DataMap dataMap, boolean bBenchmark) { Log.d(TAG, "syncTreatmentsData"); ArrayList<DataMap> entries = dataMap.getDataMapArrayList("entries"); long timeOfLastEntry = 0; if (entries != null) { Log.d(TAG, "syncTreatmentsData count=" + entries.size()); for (DataMap entry : entries) { if (entry != null) { Log.d(TAG, "syncTreatmentsData entry=" + entry); String record = entry.getString("entry"); if (record != null && record.length() > 1) { Log.d(TAG, "Received wearable 2: voice payload: " + record); long timestamp = entry.getLong("timestamp"); if (timestamp <= PersistentStore.getLong(LAST_RECORD_TIMESTAMP)) { Log.e(TAG, "Ignoring repeated or older sync timestamp"); continue; } final long since = JoH.msSince(timestamp); if ((since < -(Constants.SECOND_IN_MS * 5)) || (since > Constants.HOUR_IN_MS * 72)) { JoH.static_toast_long("Rejecting wear treatment as time out of range!"); UserError.Log.e(TAG, "Rejecting wear treatment due to time: " + record + " since: " + since); } else { if (record.contains("uuid null")) { Log.e(TAG, "Skipping xx uuid null record!"); continue; } receivedText(getApplicationContext(), record); PersistentStore.setLong(LAST_RECORD_TIMESTAMP, timestamp); } Log.d(TAG, "syncTreatmentsData add Table record=" + record); timeOfLastEntry = (long) timestamp + 1; Log.d(TAG, "syncTreatmentsData WATCH treatments timestamp=" + JoH.dateTimeText(timestamp)); } } } sendDataReceived(DATA_ITEM_RECEIVED_PATH, "DATA_RECEIVED_LOGS count=" + entries.size(), timeOfLastEntry, bBenchmark ? "BM" : "TREATMENTS", -1); } }
Example 6
Source File: DexCollectionService.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
public static void setWatchStatus(DataMap dataMap) { lastStateWatch = dataMap.getString("lastState", ""); last_transmitter_DataWatch = new TransmitterData(); last_transmitter_DataWatch.timestamp = dataMap.getLong("timestamp", 0); mStaticStateWatch = dataMap.getInt("mStaticState", 0); last_battery_level_watch = dataMap.getInt("last_battery_level", -1); retry_time_watch = dataMap.getLong("retry_time", 0); failover_time_watch = dataMap.getLong("failover_time", 0); static_last_hexdump_watch = dataMap.getString("static_last_hexdump", ""); static_last_sent_hexdump_watch = dataMap.getString("static_last_sent_hexdump", ""); }
Example 7
Source File: ListenerService.java From PowerSwitch_Android with GNU General Public License v3.0 | 5 votes |
/** * This method converts received data contained in a DataMap Array back to Scenes. * * @param dataMapArrayList received data * @return List of Rooms containing the appropriate Receivers and Buttons */ public static ArrayList<Scene> extractSceneDataMapItems(ArrayList<DataMap> dataMapArrayList) { ArrayList<Scene> scenes = new ArrayList<>(); for (DataMap dataMapItem : dataMapArrayList) { if (dataMapItem.containsKey(WearableConstants.SCENE_NAME_DATAMAP_KEY)) { long sceneId = dataMapItem.getLong(WearableConstants.SCENE_ID_DATAMAP_KEY); String sceneName = dataMapItem.getString(WearableConstants.SCENE_NAME_DATAMAP_KEY); Scene scene = new Scene(sceneId, sceneName); scenes.add(scene); } } return scenes; }
Example 8
Source File: SensorReceiverService.java From SensorDashboard with Apache License 2.0 | 5 votes |
private void unpackSensorData(int sensorType, DataMap dataMap) { int accuracy = dataMap.getInt(DataMapKeys.ACCURACY); long timestamp = dataMap.getLong(DataMapKeys.TIMESTAMP); float[] values = dataMap.getFloatArray(DataMapKeys.VALUES); Log.d(TAG, "Received sensor data " + sensorType + " = " + Arrays.toString(values)); sensorManager.addSensorData(sensorType, accuracy, timestamp, values); }
Example 9
Source File: WatchUpdaterService.java From xDrip with GNU General Public License v3.0 | 5 votes |
private synchronized void syncTreatmentsData(DataMap dataMap, boolean bBenchmark) { Log.d(TAG, "syncTreatmentsData"); ArrayList<DataMap> entries = dataMap.getDataMapArrayList("entries"); long timeOfLastEntry = 0; if (entries != null) { Log.d(TAG, "syncTreatmentsData count=" + entries.size()); for (DataMap entry : entries) { if (entry != null) { Log.d(TAG, "syncTreatmentsData entry=" + entry); String record = entry.getString("entry"); if (record != null && record.length() > 1) { Log.d(TAG, "Received wearable 2: voice payload: " + record); long timestamp = entry.getLong("timestamp"); if (timestamp <= PersistentStore.getLong(LAST_RECORD_TIMESTAMP)) { Log.e(TAG, "Ignoring repeated or older sync timestamp"); continue; } final long since = JoH.msSince(timestamp); if ((since < -(Constants.SECOND_IN_MS * 5)) || (since > Constants.HOUR_IN_MS * 72)) { JoH.static_toast_long("Rejecting wear treatment as time out of range!"); UserError.Log.e(TAG, "Rejecting wear treatment due to time: " + record + " since: " + since); } else { if (record.contains("uuid null")) { Log.e(TAG, "Skipping xx uuid null record!"); continue; } receivedText(getApplicationContext(), record); PersistentStore.setLong(LAST_RECORD_TIMESTAMP, timestamp); } Log.d(TAG, "syncTreatmentsData add Table record=" + record); timeOfLastEntry = (long) timestamp + 1; Log.d(TAG, "syncTreatmentsData WATCH treatments timestamp=" + JoH.dateTimeText(timestamp)); } } } sendDataReceived(DATA_ITEM_RECEIVED_PATH, "DATA_RECEIVED_LOGS count=" + entries.size(), timeOfLastEntry, bBenchmark ? "BM" : "TREATMENTS", -1); } }
Example 10
Source File: DexCollectionService.java From xDrip with GNU General Public License v3.0 | 5 votes |
public static void setWatchStatus(DataMap dataMap) { lastStateWatch = dataMap.getString("lastState", ""); last_transmitter_DataWatch = new TransmitterData(); last_transmitter_DataWatch.timestamp = dataMap.getLong("timestamp", 0); mStaticStateWatch = dataMap.getInt("mStaticState", 0); last_battery_level_watch = dataMap.getInt("last_battery_level", -1); retry_time_watch = dataMap.getLong("retry_time", 0); failover_time_watch = dataMap.getLong("failover_time", 0); static_last_hexdump_watch = dataMap.getString("static_last_hexdump", ""); static_last_sent_hexdump_watch = dataMap.getString("static_last_sent_hexdump", ""); }
Example 11
Source File: BaseWatchFace.java From NightWatch with GNU General Public License v3.0 | 5 votes |
@Override public void onReceive(Context context, Intent intent) { DataMap dataMap = DataMap.fromBundle(intent.getBundleExtra("data")); if (layoutSet) { wakeLock.acquire(50); sgvLevel = dataMap.getLong("sgvLevel"); batteryLevel = dataMap.getInt("batteryLevel"); datetime = dataMap.getDouble("timestamp"); rawString = dataMap.getString("rawString"); sgvString = dataMap.getString("sgvString"); batteryString = dataMap.getString("battery"); mSgv.setText(dataMap.getString("sgvString")); if(ageLevel()<=0) { mSgv.setPaintFlags(mSgv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); } else { mSgv.setPaintFlags(mSgv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG); } final java.text.DateFormat timeFormat = DateFormat.getTimeFormat(BaseWatchFace.this); mTime.setText(timeFormat.format(System.currentTimeMillis())); showAgoRawBatt(); mDirection.setText(dataMap.getString("slopeArrow")); mDelta.setText(dataMap.getString("delta")); if (chart != null) { addToWatchSet(dataMap); setupCharts(); } mRelativeLayout.measure(specW, specH); mRelativeLayout.layout(0, 0, mRelativeLayout.getMeasuredWidth(), mRelativeLayout.getMeasuredHeight()); invalidate(); } else { Log.d("ERROR: ", "DATA IS NOT YET SET"); } setColor(); }
Example 12
Source File: RawDisplayData.java From AndroidAPS with GNU Affero General Public License v3.0 | 5 votes |
private void updateData(DataMap dataMap) { WearUtil.getWakeLock("readingPrefs", 50); sgvLevel = dataMap.getLong("sgvLevel"); datetime = dataMap.getLong("timestamp"); sSgv = dataMap.getString("sgvString"); sDirection = dataMap.getString("slopeArrow"); sDelta = dataMap.getString("delta"); sAvgDelta = dataMap.getString("avgDelta"); sUnits = dataMap.getString("glucoseUnits"); }
Example 13
Source File: BIGChart.java From xDrip-Experimental with GNU General Public License v3.0 | 4 votes |
@Override public void onReceive(Context context, Intent intent) { Bundle bundle = intent.getBundleExtra("data"); if (bundle ==null){ return; } DataMap dataMap = DataMap.fromBundle(bundle); if (layoutSet) { wakeLock.acquire(50); sgvLevel = dataMap.getLong("sgvLevel"); batteryLevel = dataMap.getInt("batteryLevel"); datetime = dataMap.getDouble("timestamp"); rawString = dataMap.getString("rawString"); sgvString = dataMap.getString("sgvString"); batteryString = dataMap.getString("battery"); mSgv.setText(dataMap.getString("sgvString")); if(ageLevel()<=0) { mSgv.setPaintFlags(mSgv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); } else { mSgv.setPaintFlags(mSgv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG); } final java.text.DateFormat timeFormat = DateFormat.getTimeFormat(BIGChart.this); mTime.setText(timeFormat.format(System.currentTimeMillis())); showAgoRawBatt(); String delta = dataMap.getString("delta"); if (delta.endsWith(" mg/dl")) { mDelta.setText(delta.substring(0, delta.length() - 6)); } else if (delta.endsWith(" mmol")) { mDelta.setText(delta.substring(0, delta.length() - 5)); } if (chart != null) { addToWatchSet(dataMap); setupCharts(); } mRelativeLayout.measure(specW, specH); mRelativeLayout.layout(0, 0, mRelativeLayout.getMeasuredWidth(), mRelativeLayout.getMeasuredHeight()); invalidate(); setColor(); //start animation? // dataMap.getDataMapArrayList("entries") == null -> not on "resend data". if (sharedPrefs.getBoolean("animation", false) && dataMap.getDataMapArrayList("entries") == null && (sgvString.equals("100") || sgvString.equals("5.5") || sgvString.equals("5,5"))) { startAnimation(); } } else { Log.d("ERROR: ", "DATA IS NOT YET SET"); } }
Example 14
Source File: WatchUpdaterService.java From xDrip with GNU General Public License v3.0 | 4 votes |
private synchronized void syncLogData(DataMap dataMap, boolean bBenchmark) {//KS Log.d(TAG, "syncLogData"); long watch_syncLogsRequested = dataMap.getLong("syncLogsRequested", -1); ArrayList<DataMap> entries = dataMap.getDataMapArrayList("entries"); long timeOfLastEntry = 0; int saved = 0; if (entries != null) { Gson gson = new GsonBuilder() .excludeFieldsWithoutExposeAnnotation() .registerTypeAdapter(Date.class, new DateTypeAdapter()) .serializeSpecialFloatingPointValues() .create(); Log.d(TAG, "syncLogData add Table entries count=" + entries.size() + " watch_syncLogsRequested=" + watch_syncLogsRequested); for (DataMap entry : entries) { if (entry != null) { String record = entry.getString("entry"); if (record != null) { UserError data = gson.fromJson(record, UserError.class); if (data != null) { timeOfLastEntry = (long) data.timestamp + 1; if (data.shortError != null && !data.shortError.isEmpty()) { //add wear prefix if (!data.shortError.startsWith("wear")) { data.shortError = mPrefs.getString("wear_logs_prefix", "wear") + data.shortError; } } UserError exists = UserError.getForTimestamp(data); if (exists == null && !bBenchmark) { data.save(); saved++; } else { //Log.d(TAG, "syncLogData Log entry already exists with shortError=" + data.shortError + " timestamp=" + JoH.dateTimeText((long)data.timestamp)); } } } } } if (saved > 0) { Log.d(TAG, "syncLogData Saved timeOfLastEntry=" + JoH.dateTimeText(timeOfLastEntry) + " saved=" + saved); } else { Log.d(TAG, "syncLogData No records saved due to being duplicates! timeOfLastEntry=" + JoH.dateTimeText(timeOfLastEntry) + " count=" + entries.size()); } sendDataReceived(DATA_ITEM_RECEIVED_PATH, "DATA_RECEIVED_LOGS count=" + entries.size(), timeOfLastEntry, bBenchmark ? "BM" : "LOG", watch_syncLogsRequested); } }
Example 15
Source File: G5BaseService.java From xDrip with GNU General Public License v3.0 | 4 votes |
public static void setWatchStatus(DataMap dataMap) { lastStateWatch = dataMap.getString("lastState", ""); static_last_timestamp_watch = dataMap.getLong("timestamp", 0); }
Example 16
Source File: WatchUpdaterService.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
private synchronized void syncLogData(DataMap dataMap, boolean bBenchmark) {//KS Log.d(TAG, "syncLogData"); long watch_syncLogsRequested = dataMap.getLong("syncLogsRequested", -1); ArrayList<DataMap> entries = dataMap.getDataMapArrayList("entries"); long timeOfLastEntry = 0; int saved = 0; if (entries != null) { Gson gson = new GsonBuilder() .excludeFieldsWithoutExposeAnnotation() .registerTypeAdapter(Date.class, new DateTypeAdapter()) .serializeSpecialFloatingPointValues() .create(); Log.d(TAG, "syncLogData add Table entries count=" + entries.size() + " watch_syncLogsRequested=" + watch_syncLogsRequested); for (DataMap entry : entries) { if (entry != null) { String record = entry.getString("entry"); if (record != null) { UserError data = gson.fromJson(record, UserError.class); if (data != null) { timeOfLastEntry = (long) data.timestamp + 1; if (data.shortError != null && !data.shortError.isEmpty()) { //add wear prefix if (!data.shortError.startsWith("wear")) { data.shortError = mPrefs.getString("wear_logs_prefix", "wear") + data.shortError; } } UserError exists = UserError.getForTimestamp(data); if (exists == null && !bBenchmark) { data.save(); saved++; } else { //Log.d(TAG, "syncLogData Log entry already exists with shortError=" + data.shortError + " timestamp=" + JoH.dateTimeText((long)data.timestamp)); } } } } } if (saved > 0) { Log.d(TAG, "syncLogData Saved timeOfLastEntry=" + JoH.dateTimeText(timeOfLastEntry) + " saved=" + saved); } else { Log.d(TAG, "syncLogData No records saved due to being duplicates! timeOfLastEntry=" + JoH.dateTimeText(timeOfLastEntry) + " count=" + entries.size()); } sendDataReceived(DATA_ITEM_RECEIVED_PATH, "DATA_RECEIVED_LOGS count=" + entries.size(), timeOfLastEntry, bBenchmark ? "BM" : "LOG", watch_syncLogsRequested); } }
Example 17
Source File: G5BaseService.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
public static void setWatchStatus(DataMap dataMap) { lastStateWatch = dataMap.getString("lastState", ""); static_last_timestamp_watch = dataMap.getLong("timestamp", 0); }
Example 18
Source File: Emmet.java From Wear-Emmet with Apache License 2.0 | 4 votes |
private void callMethodOnObject(final Object object, final DataMap methodDataMap) { String methodName = methodDataMap.getString(METHOD_NAME); ArrayList<DataMap> methodDataMapList = methodDataMap.getDataMapArrayList(METHOD_PARAMS); List<Method> methodsList = getMethodWithName(object, methodName, methodDataMapList.size()); for (Method method : methodsList) { try { if (method != null) { int nbArgs = methodDataMapList.size(); Object[] params = new Object[nbArgs]; for (int argumentPos = 0; argumentPos < nbArgs; ++argumentPos) { Class paramClass = method.getParameterTypes()[argumentPos]; DataMap map = methodDataMapList.get(argumentPos); String type = map.getString(PARAM_TYPE); switch (type) { case (TYPE_INT): params[argumentPos] = map.getInt(PARAM_VALUE); break; case (TYPE_FLOAT): params[argumentPos] = map.getFloat(PARAM_VALUE); break; case (TYPE_DOUBLE): params[argumentPos] = map.getDouble(PARAM_VALUE); break; case (TYPE_LONG): params[argumentPos] = map.getLong(PARAM_VALUE); break; case (TYPE_STRING): params[argumentPos] = map.getString(PARAM_VALUE); break; default: { Type t = method.getGenericParameterTypes()[argumentPos]; Object deserialized = SerialisationUtilsGSON.deserialize(t, map.getString(PARAM_VALUE)); params[argumentPos] = deserialized; } } } //found the method method.invoke(object, params); //if call success, return / don't call other methods return; } } catch (Exception e) { Log.e(TAG, "callMethodOnObject error", e); } } }
Example 19
Source File: SystemStatusFragment.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); //Injectors.getMicroStatusComponent().inject(this); requestWearCollectorStatus(); serviceDataReceiver = new BroadcastReceiver() { @Override public void onReceive(Context ctx, Intent intent) { final String action = intent.getAction(); //final String msg = intent.getStringExtra("data"); Bundle bundle = intent.getBundleExtra("data"); if (bundle != null) { DataMap dataMap = DataMap.fromBundle(bundle); String lastState = dataMap.getString("lastState", ""); long last_timestamp = dataMap.getLong("timestamp", 0); UserError.Log.d(TAG, "serviceDataReceiver onReceive:" + action + " :: " + lastState + " last_timestamp :: " + last_timestamp); switch (action) { case WatchUpdaterService.ACTION_BLUETOOTH_COLLECTION_SERVICE_UPDATE: switch (DexCollectionType.getDexCollectionType()) { case DexcomG5: G5CollectionService.setWatchStatus(dataMap);//msg, last_timestamp break; case DexcomShare: if (lastState != null && !lastState.isEmpty()) { setConnectionStatus(lastState);//TODO getLastState() in non-G5 Services } break; default: DexCollectionService.setWatchStatus(dataMap);//msg, last_timestamp if (lastState != null && !lastState.isEmpty()) { setConnectionStatus(lastState); } break; } break; } } } }; final ActivitySystemStatusBinding binding = DataBindingUtil.inflate( inflater, R.layout.activity_system_status, container, false); microStatus = new MicroStatusImpl(); binding.setMs(microStatus); return binding.getRoot(); }
Example 20
Source File: DataBundleUtil.java From android_external_GmsLib with Apache License 2.0 | 4 votes |
@Override Long load(DataMap dataMap, String key) { return dataMap.getLong(key); }