com.eveningoutpost.dexdrip.Services.WifiCollectionService Java Examples

The following examples show how to use com.eveningoutpost.dexdrip.Services.WifiCollectionService. 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: CollectionServiceStarter.java    From xDrip with GNU General Public License v3.0 4 votes vote down vote up
private void startWifWixelThread() {
    Log.d(TAG, "starting wifi wixel service");
    startServiceCompat(new Intent(this.mContext, WifiCollectionService.class));
}
 
Example #2
Source File: CollectionServiceStarter.java    From xDrip with GNU General Public License v3.0 4 votes vote down vote up
private void stopWifWixelThread() {
    Log.d(TAG, "stopping wifi wixel service");
    this.mContext.stopService(new Intent(this.mContext, WifiCollectionService.class));
}
 
Example #3
Source File: MegaStatus.java    From xDrip with GNU General Public License v3.0 4 votes vote down vote up
private static void populate(MegaStatusListAdapter la, String section) {
    if ((la == null) || (section == null)) {
        UserError.Log.e(TAG, "Adapter or Section were null in populate()");
        return;
    }

    la.clear(false);
    switch (section) {

        case G4_STATUS:
            la.addRows(DexCollectionService.megaStatus());
            break;
        case G5_STATUS:
            if (Pref.getBooleanDefaultFalse(Ob1G5CollectionService.OB1G5_PREFS)) {
                la.addRows(Ob1G5CollectionService.megaStatus());
            } else {
                la.addRows(G5CollectionService.megaStatus());
            }
            break;
        case MEDTRUM_STATUS:
            la.addRows(MedtrumCollectionService.megaStatus());
            break;
        case IP_COLLECTOR:
            la.addRows(WifiCollectionService.megaStatus(mActivity));
            break;
        case XDRIP_PLUS_SYNC:
            la.addRows(DoNothingService.megaStatus());
            la.addRows(GcmListenerSvc.megaStatus());
            la.addRows(DesertSync.megaStatus());
            la.addRows(RollCall.megaStatus());
            break;
        case UPLOADERS:
            la.addRows(UploaderQueue.megaStatus());
            break;
        case LEFUN_STATUS:
            la.addRows(LeFunService.megaStatus());
            break;
        case MIBAND_STATUS:
            la.addRows(MiBandService.megaStatus());
            break;
        case BLUEJAY_STATUS:
            la.addRows(BlueJayService.megaStatus());
            break;
        case INPEN_STATUS:
            la.addRows(InPenService.megaStatus());
            break;
        case NIGHTSCOUT_FOLLOW:
            la.addRows(NightscoutFollowService.megaStatus());
            break;
        case SHARE_FOLLOW:
            la.addRows(ShareFollowService.megaStatus());
            break;
        case XDRIP_LIBRE2:
            la.addRows(LibreReceiver.megaStatus());
            break;
    }
    la.changed();
}
 
Example #4
Source File: CollectionServiceStarter.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
private void startWifWixelThread() {
    Log.d(TAG, "starting wifi wixel service");
    startServiceCompat(new Intent(this.mContext, WifiCollectionService.class));
}
 
Example #5
Source File: CollectionServiceStarter.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
private void stopWifWixelThread() {
    Log.d(TAG, "stopping wifi wixel service");
    this.mContext.stopService(new Intent(this.mContext, WifiCollectionService.class));
}
 
Example #6
Source File: MegaStatus.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
private static void populate(MegaStatusListAdapter la, String section) {
    if ((la == null) || (section == null)) {
        UserError.Log.e(TAG, "Adapter or Section were null in populate()");
        return;
    }

    la.clear(false);
    switch (section) {

        case G4_STATUS:
            la.addRows(DexCollectionService.megaStatus());
            break;
        case G5_STATUS:
            if (Pref.getBooleanDefaultFalse(Ob1G5CollectionService.OB1G5_PREFS)) {
                la.addRows(Ob1G5CollectionService.megaStatus());
            } else {
                la.addRows(G5CollectionService.megaStatus());
            }
            break;
        case MEDTRUM_STATUS:
            la.addRows(MedtrumCollectionService.megaStatus());
            break;
        case IP_COLLECTOR:
            la.addRows(WifiCollectionService.megaStatus(mActivity));
            break;
        case XDRIP_PLUS_SYNC:
            la.addRows(DoNothingService.megaStatus());
            la.addRows(GcmListenerSvc.megaStatus());
            la.addRows(DesertSync.megaStatus());
            la.addRows(RollCall.megaStatus());
            break;
        case UPLOADERS:
            la.addRows(UploaderQueue.megaStatus());
            break;
        case LEFUN_STATUS:
            la.addRows(LeFunService.megaStatus());
            break;
        case MIBAND_STATUS:
            la.addRows(MiBandService.megaStatus());
            break;
        case BLUEJAY_STATUS:
            la.addRows(BlueJayService.megaStatus());
            break;
        case INPEN_STATUS:
            la.addRows(InPenService.megaStatus());
            break;
        case NIGHTSCOUT_FOLLOW:
            la.addRows(NightscoutFollowService.megaStatus());
            break;
        case SHARE_FOLLOW:
            la.addRows(ShareFollowService.megaStatus());
            break;
        case XDRIP_LIBRE2:
            la.addRows(LibreReceiver.megaStatus());
            break;
    }
    la.changed();
}
 
Example #7
Source File: CollectionServiceStarter.java    From xDrip-Experimental with GNU General Public License v3.0 4 votes vote down vote up
private void startWifWixelThread() {
    Log.d(TAG, "starting wifi wixel service");
    mContext.startService(new Intent(mContext, WifiCollectionService.class));
}
 
Example #8
Source File: CollectionServiceStarter.java    From xDrip-Experimental with GNU General Public License v3.0 4 votes vote down vote up
private void stopWifWixelThread() {
    Log.d(TAG, "stopping wifi wixel service");
    mContext.stopService(new Intent(mContext, WifiCollectionService.class));
}