diff --git a/documentation/javadoc/allclasses-frame.html b/documentation/javadoc/allclasses-frame.html index 0952610..416e119 100644 --- a/documentation/javadoc/allclasses-frame.html +++ b/documentation/javadoc/allclasses-frame.html @@ -2,9 +2,9 @@
- +public static final int
VERSION_CODE
6
7
public static final java.lang.String
VERSION_NAME
"1.0.1"
"1.0.2"
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
-public static final int |
-CENATT |
-36 |
-
-
-public static final int |
-CENATX |
-38 |
-
-
-public static final int |
-CENCOM |
-32 |
-
-
-public static final int |
-CENCRC |
-16 |
-
-
-public static final int |
-CENDSK |
-34 |
-
-
-public static final int |
-CENEXT |
-30 |
-
-
-public static final int |
-CENFLG |
-8 |
-
-
-public static final int |
-CENHDR |
-46 |
-
-
-public static final int |
-CENHOW |
-10 |
-
-
-public static final int |
-CENLEN |
-24 |
-
-
-public static final int |
-CENNAM |
-28 |
-
-
-public static final int |
-CENOFF |
-42 |
-
-
-public static final long |
-CENSIG |
-33639248L |
-
-
-public static final int |
-CENSIZ |
-20 |
-
-
-public static final int |
-CENTIM |
-12 |
-
-
-public static final int |
-CENVEM |
-4 |
-
-
-public static final int |
-CENVER |
-6 |
-
-
-public static final int |
-ENDCOM |
-20 |
-
-
-public static final int |
-ENDHDR |
-22 |
-
-
-public static final int |
-ENDOFF |
-16 |
-
-
-public static final long |
-ENDSIG |
-101010256L |
-
-
-public static final int |
-ENDSIZ |
-12 |
-
-
-public static final int |
-ENDSUB |
-8 |
-
-
-public static final int |
-ENDTOT |
-10 |
-
-
-public static final int |
-EXTCRC |
-4 |
-
-
-public static final int |
-EXTHDR |
-16 |
-
-
-public static final int |
-EXTLEN |
-12 |
-
-
-public static final long |
-EXTSIG |
-134695760L |
-
-
-public static final int |
-EXTSIZ |
-8 |
-
-
-public static final int |
-LOCCRC |
-14 |
-
-
-public static final int |
-LOCEXT |
-28 |
-
-
-public static final int |
-LOCFLG |
-6 |
-
-
-public static final int |
-LOCHDR |
-30 |
-
-
-public static final int |
-LOCHOW |
-8 |
-
-
-public static final int |
-LOCLEN |
-22 |
-
-
-public static final int |
-LOCNAM |
-26 |
-
-
-public static final long |
-LOCSIG |
-67324752L |
-
-
-public static final int |
-LOCSIZ |
-18 |
-
-
-public static final int |
-LOCTIM |
-10 |
-
-
-public static final int |
-LOCVER |
-4 |
-
android.bluetooth.BluetoothGattCallback#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
to error name.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
to error name.DfuLogListener
.DfuLogListener
.DfuProgressListener
.DfuProgressListener
.android.bluetooth.BluetoothGattCallback
methods was called with status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback
methods was called with status other than BluetoothGatt.GATT_SUCCESS
.android.bluetooth.BluetoothGattCallback#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
- status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
+ status other than BluetoothGatt.GATT_SUCCESS
.public abstract class DfuBaseService
-extends IntentService
+extends android.app.IntentService
@@ -265,14 +284,14 @@ extends IntentService
static int
ERROR_CONNECTION_MASK
-android.bluetooth.BluetoothGattCallback
methods was called with status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback
methods was called with status other than BluetoothGatt.GATT_SUCCESS
.static int
ERROR_CONNECTION_STATE_MASK
-android.bluetooth.BluetoothGattCallback#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
- status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
+ status other than BluetoothGatt.GATT_SUCCESS
.START_CONTINUATION_MASK, START_FLAG_REDELIVERY, START_FLAG_RETRY, START_NOT_STICKY, START_REDELIVER_INTENT, START_STICKY, START_STICKY_COMPATIBILITY, STOP_FOREGROUND_DETACH, STOP_FOREGROUND_REMOVE
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RESTRICTIONS_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
protected void
close(BluetoothGatt gatt)
+close(android.bluetooth.BluetoothGatt gatt)
protected BluetoothGatt
protected android.bluetooth.BluetoothGatt
connect(java.lang.String address)
protected void
disconnect(BluetoothGatt gatt)
+disconnect(android.bluetooth.BluetoothGatt gatt)
protected abstract java.lang.Class<? extends Activity>
protected abstract java.lang.Class<? extends android.app.Activity>
getNotificationTarget()
protected void
onHandleIntent(Intent intent)
onHandleIntent(android.content.Intent intent)
protected void
refreshDeviceCache(BluetoothGatt gatt,
+refreshDeviceCache(android.bluetooth.BluetoothGatt gatt,
boolean force)
Clears the device cache.
protected void
terminateConnection(BluetoothGatt gatt,
+terminateConnection(android.bluetooth.BluetoothGatt gatt,
int error)
Disconnects from the device and cleans local variables in case of error.
@@ -756,6 +796,34 @@ extends IntentService
onBind, onStart, onStartCommand, setIntentRedelivery
dump, getApplication, onConfigurationChanged, onLowMemory, onRebind, onTaskRemoved, onTrimMemory, onUnbind, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
attachBaseContext, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterReceiver
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
#define DFU_APP_DATA_RESERVED 0x0000
) to preserve some pages. The BLE_APP_HRM_DFU sample app stores the LTK and System Attributes in the first
two pages, so in order to preserve the bond information this value should be changed to 0x0800 or more.
When those data are preserved, the new Application will notify the app with the Service Changed indication when launched for the first time. Otherwise this
- service will remove the bond information from the phone and force to refresh the device cache (see #refreshDeviceCache(android.bluetooth.BluetoothGatt, boolean)
).
+ service will remove the bond information from the phone and force to refresh the device cache (see refreshDeviceCache(android.bluetooth.BluetoothGatt, boolean)
).
In contrast to EXTRA_RESTORE_BOND
this flag will not remove the old bonding and recreate a new one, but will keep the bond information untouched.
The default value of this flag is false
public static final java.lang.String EXTRA_ERROR_TYPE
BluetoothGattCallback#onCharacteristicWrite(BluetoothGatt, BluetoothGattCharacteristic, int)
method may return a status code 8 (GATT INSUF AUTHORIZATION),
- while the status code 8 returned by BluetoothGattCallback#onConnectionStateChange(BluetoothGatt, int, int)
is a GATT CONN TIMEOUT error.BluetoothGattCallback.onCharacteristicWrite(BluetoothGatt, BluetoothGattCharacteristic, int)
method may return a status code 8 (GATT INSUF AUTHORIZATION),
+ while the status code 8 returned by BluetoothGattCallback.onConnectionStateChange(BluetoothGatt, int, int)
is a GATT CONN TIMEOUT error.public static final int ERROR_CONNECTION_MASK-
android.bluetooth.BluetoothGattCallback
methods was called with status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback
methods was called with status other than BluetoothGatt.GATT_SUCCESS
.public static final int ERROR_CONNECTION_STATE_MASK-
android.bluetooth.BluetoothGattCallback#onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
- status other than android.bluetooth.BluetoothGatt#GATT_SUCCESS
.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int)
method was called with
+ status other than BluetoothGatt.GATT_SUCCESS
.public void onCreate()+
onCreate
in class android.app.IntentService
public void onDestroy()+
onDestroy
in class android.app.IntentService
protected void onHandleIntent(Intent intent)+
protected void onHandleIntent(android.content.Intent intent)+
onHandleIntent
in class android.app.IntentService
protected BluetoothGatt connect(java.lang.String address)+
protected android.bluetooth.BluetoothGatt connect(java.lang.String address)
STATE_CONNECTING
to STATE_CONNECTED_AND_READY
or an
error occurs. This method returns null
if Bluetooth adapter is disabled.protected void terminateConnection(BluetoothGatt gatt, +protected void terminateConnection(android.bluetooth.BluetoothGatt gatt, int error)Disconnects from the device and cleans local variables in case of error. This method is SYNCHRONOUS and wait until the disconnecting process will be completed.
protected void disconnect(BluetoothGatt gatt)+
protected void disconnect(android.bluetooth.BluetoothGatt gatt)
#terminateConnection(android.bluetooth.BluetoothGatt, int)
instead.terminateConnection(android.bluetooth.BluetoothGatt, int)
instead.
gatt
- the GATT device that has to be disconnectedprotected void close(BluetoothGatt gatt)+
protected void close(android.bluetooth.BluetoothGatt gatt)
protected void refreshDeviceCache(BluetoothGatt gatt, +protected void refreshDeviceCache(android.bluetooth.BluetoothGatt gatt, boolean force)Clears the device cache. After uploading new firmware the DFU target will have other services than before.
protected abstract java.lang.Class<? extends Activity> getNotificationTarget()+
protected abstract java.lang.Class<? extends android.app.Activity> getNotificationTarget()
android.content.Intent#FLAG_ACTIVITY_NEW_TASK
flag and the following extras:
+ The activity will be launched when user click the notification. DfuService will add Intent.FLAG_ACTIVITY_NEW_TASK
flag and the following extras:
EXTRA_DEVICE_ADDRESS
- target device addressEXTRA_DEVICE_NAME
- target device name