private static void updateG5State(boolean now, boolean previous, String reference) { if (now != previous) { PersistentStore.setBoolean(reference, now); } }
private static void updateG5State(boolean now, boolean previous, String reference) { if (now != previous) { PersistentStore.setBoolean(reference, now); } }
private static void updateG5State(boolean now, boolean previous, String reference) { if (now != previous) { PersistentStore.setBoolean(reference, now); } }
public void startBtShareService() {//private Log.d(TAG, "starting bt share service"); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { PersistentStore.setBoolean(pref_run_wear_collector, true); this.mContext.startService(new Intent(this.mContext, DexShareCollectionService.class)); } }
private static void setElevatedMarkerFalseIfItWasTrue() { if (PersistentStore.getBoolean(ELEVATED_MARKER)) { // last reading was elevated but this one isn't so clear the marker PersistentStore.setBoolean(ELEVATED_MARKER, false); } }
public void startBtG5Service() {//private Log.d(TAG, "starting G5 service"); //if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { PersistentStore.setBoolean(pref_run_wear_collector, true); if (!Pref.getBooleanDefaultFalse(Ob1G5CollectionService.OB1G5_PREFS)) { G5CollectionService.keep_running = true; this.mContext.startService(new Intent(this.mContext, G5CollectionService.class)); } else { Ob1G5CollectionService.keep_running = true; this.mContext.startService(new Intent(this.mContext, Ob1G5CollectionService.class)); } //} }
private static void setSupportsGzip(String id, boolean value) { if (supportsGzip(id) != value) { UserError.Log.e(TAG, "Setting GZIP support: " + id + " " + value); PersistentStore.setBoolean(END_SUPPORTS_GZIP_MARKER + id, value); } }
private static void setSupportsGzip(String id, boolean value) { if (supportsGzip(id) != value) { UserError.Log.e(TAG, "Setting GZIP support: " + id + " " + value); PersistentStore.setBoolean(END_SUPPORTS_GZIP_MARKER + id, value); } }
public void setSeverity(CompoundButton v, boolean value, int i) { severities.put(i, value); refresh(); PersistentStore.setBoolean(PREF_SEVERITY_SELECTION + i, value); }
public void setSeverity(CompoundButton v, boolean value, int i) { severities.put(i, value); refresh(); PersistentStore.setBoolean(PREF_SEVERITY_SELECTION + i, value); }
public void updateErrors(boolean from_timer) { List<Integer> severitiesList = new ArrayList<>(); PersistentStore.setBoolean("events-highcheckbox", highCheckboxView.isChecked()); PersistentStore.setBoolean("events-mediumcheckbox", mediumCheckboxView.isChecked()); PersistentStore.setBoolean("events-lowcheckbox", lowCheckboxView.isChecked()); PersistentStore.setBoolean("events-userlowcheckbox", userEventLowCheckboxView.isChecked()); PersistentStore.setBoolean("events-userhighcheckbox", userEventHighCheckboxView.isChecked());
public void updateErrors(boolean from_timer) { List<Integer> severitiesList = new ArrayList<>(); PersistentStore.setBoolean("events-highcheckbox", highCheckboxView.isChecked()); PersistentStore.setBoolean("events-mediumcheckbox", mediumCheckboxView.isChecked()); PersistentStore.setBoolean("events-lowcheckbox", lowCheckboxView.isChecked()); PersistentStore.setBoolean("events-userlowcheckbox", userEventLowCheckboxView.isChecked()); PersistentStore.setBoolean("events-userhighcheckbox", userEventHighCheckboxView.isChecked());
public void startBtWixelService() {//private Log.d(TAG, "starting bt wixel service"); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { Log.d(TAG, "SDK_INT >=JELLY_BEAN_MR2"); PersistentStore.setBoolean(pref_run_wear_collector, true); this.mContext.startService(new Intent(this.mContext, DexCollectionService.class)); Log.d(TAG, "After startService"); } Log.d(TAG, "exit"); }
PersistentStore.setBoolean("reminders-rbday", rbday.isChecked()); PersistentStore.setBoolean("reminders-rbhour", rbhour.isChecked()); PersistentStore.setBoolean("reminders-rbweek", rbweek.isChecked());
final List<BgReading> the_readings = BgReading.latestForGraphAsc(500000, calendar.getTimeInMillis(), JoH.tsl()); if ((the_readings != null) && (the_readings.size() > 0)) { PersistentStore.setBoolean(UploaderTask.BACKFILLING_BOOSTER, true); long bgcount = the_readings.size(); long trcount = 0;
final List<BgReading> the_readings = BgReading.latestForGraphAsc(500000, calendar.getTimeInMillis(), JoH.tsl()); if ((the_readings != null) && (the_readings.size() > 0)) { PersistentStore.setBoolean(UploaderTask.BACKFILLING_BOOSTER, true); long bgcount = the_readings.size(); long trcount = 0;
public synchronized static boolean setStoredBatteryBytes(String transmitterId, byte[] data) { UserError.Log.e(TAG, "Store: BatteryRX dbg: " + JoH.bytesToHex(data)); if (transmitterId.length() != 6) return false; if (data.length < 10) return false; Log.wtf(TAG, "Saving battery data: " + new BatteryInfoRxMessage(data).toString()); PersistentStore.setBytes(G5_BATTERY_MARKER + transmitterId, data); PersistentStore.setLong(G5_BATTERY_FROM_MARKER + transmitterId, JoH.tsl()); PersistentStore.setBoolean(G5_BATTERY_WEARABLE_SEND, true); return true; }
public static void stopBtService(Context context) { Log.d(TAG, "stopBtService call stopService"); PersistentStore.setBoolean(pref_run_wear_collector, false); CollectionServiceStarter collectionServiceStarter = new CollectionServiceStarter(context); collectionServiceStarter.stopBtWixelService(); collectionServiceStarter.stopBtShareService(); collectionServiceStarter.stopG5ShareService(); Log.d(TAG, "stopBtService should have called onDestroy"); }
PersistentStore.setBoolean(GLUCOSE_READING_MARKER + mLastConnectedDeviceAddress, true);
PersistentStore.setBoolean(GLUCOSE_READING_MARKER + mLastConnectedDeviceAddress, true);