summaryrefslogtreecommitdiffstats
path: root/btif/include
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@cyngn.com>2016-07-07 12:32:54 -0700
committerJessica Wagantall <jwagantall@cyngn.com>2016-07-07 14:16:05 -0700
commit8c6a7c500e1a160b3fffaf1ffd5d826659fdffe5 (patch)
tree1e95cbbabe6f2b5b2e17edf2841c7f921eff39c0 /btif/include
parent2e63e65c7a558415f64a1957bd9cc060ab10f64e (diff)
parent514139f4b40cbb035bb92f3e24d5a389d75db9e6 (diff)
downloadandroid_system_bt-8c6a7c500e1a160b3fffaf1ffd5d826659fdffe5.tar.gz
android_system_bt-8c6a7c500e1a160b3fffaf1ffd5d826659fdffe5.tar.bz2
android_system_bt-8c6a7c500e1a160b3fffaf1ffd5d826659fdffe5.zip
Merge remote-tracking branch 'remotes/android-6.0.1_r52' into HEAD
Ticket: CYNGNOS-3020 Change-Id: I0d26ff4917b8886ca5fcc54b235bdb6afe8d8925
Diffstat (limited to 'btif/include')
-rw-r--r--btif/include/btif_api.h17
-rw-r--r--btif/include/btif_storage.h12
2 files changed, 29 insertions, 0 deletions
diff --git a/btif/include/btif_api.h b/btif/include/btif_api.h
index bf9ee3f29..fc1b67afe 100644
--- a/btif/include/btif_api.h
+++ b/btif/include/btif_api.h
@@ -87,6 +87,23 @@ bt_status_t btif_shutdown_bluetooth(void);
/*******************************************************************************
**
+** Function is_restricted_mode
+**
+** Description Checks if BT was enabled in restriced mode. In restricted
+** mode, bonds that are created are marked as temporary.
+** These bonds persist until we leave restricted mode, at
+** which point they will be deleted from the config. Also
+** while in restricted mode, the user can access devices
+** that are already paired before entering restricted mode,
+** but they cannot remove any of these devices.
+**
+** Returns bool
+**
+*******************************************************************************/
+bool is_restricted_mode(void);
+
+/*******************************************************************************
+**
** Function btif_get_adapter_properties
**
** Description Fetches all local adapter properties
diff --git a/btif/include/btif_storage.h b/btif/include/btif_storage.h
index e4d465c9f..46e4ced94 100644
--- a/btif/include/btif_storage.h
+++ b/btif/include/btif_storage.h
@@ -325,6 +325,18 @@ BOOLEAN btif_storage_is_fixed_pin_zeros_keyboard(bt_bdaddr_t *remote_bd_addr);
/*******************************************************************************
**
+** Function btif_storage_is_retricted_device
+**
+** Description BTIF storage API - checks if this device is a restricted device
+**
+** Returns TRUE if the device is labled as restricted
+** FALSE otherwise
+**
+*******************************************************************************/
+BOOLEAN btif_storage_is_restricted_device(const bt_bdaddr_t *remote_bd_addr);
+
+/*******************************************************************************
+**
** Function btif_storage_is_wiimote
**
** Description BTIF storage API - checks if this device is a wiimote