2015-08-23 00:54:28 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service;
|
2015-08-22 01:08:46 +02:00
|
|
|
|
|
|
|
import android.bluetooth.BluetoothAdapter;
|
|
|
|
import android.content.Context;
|
2022-06-15 01:54:44 +02:00
|
|
|
import android.location.Location;
|
2015-08-22 01:08:46 +02:00
|
|
|
import android.net.Uri;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.Alarm;
|
2016-05-16 17:30:11 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.CalendarEventSpec;
|
2016-04-04 20:08:34 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.CallSpec;
|
2016-06-24 10:25:08 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.CannedMessagesSpec;
|
2016-04-04 20:08:34 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.MusicSpec;
|
2016-06-08 20:27:25 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.MusicStateSpec;
|
2015-09-26 22:24:52 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.NotificationSpec;
|
2021-12-27 14:54:58 +01:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.Reminder;
|
2016-12-31 18:13:04 +01:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.WeatherSpec;
|
2022-05-15 18:22:55 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.WorldClock;
|
2015-08-22 01:08:46 +02:00
|
|
|
|
2016-12-31 18:56:24 +01:00
|
|
|
class TestDeviceSupport extends AbstractDeviceSupport {
|
2015-08-22 01:08:46 +02:00
|
|
|
|
2016-12-31 18:56:24 +01:00
|
|
|
TestDeviceSupport() {
|
2015-08-22 01:08:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setContext(GBDevice gbDevice, BluetoothAdapter btAdapter, Context context) {
|
|
|
|
super.setContext(gbDevice, btAdapter, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean connect() {
|
2015-08-23 00:54:28 +02:00
|
|
|
gbDevice.setState(GBDevice.State.INITIALIZED);
|
|
|
|
gbDevice.sendDeviceUpdateIntent(getContext());
|
|
|
|
return true;
|
2015-08-22 01:08:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void dispose() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean useAutoConnect() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|