OSDN Git Service

Rename net_test_bluedroid to net_test_bluetooth
authorAndre Eisenbach <eisenbach@google.com>
Thu, 29 Oct 2015 18:18:20 +0000 (11:18 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 29 Oct 2015 20:27:03 +0000 (13:27 -0700)
Also remove other bluedroid references.

Change-Id: I349e48e50b0a0a45ca1267a765145299837601d3

34 files changed:
bta/sys/bta_sys_main.c
btif/src/bluetooth.c
btif/src/btif_av.c
btif/src/btif_sock_l2cap.c
doc/btsnoop_net.md
doc/directory_layout.md
doc/log_tags.md
doc/network_ports.md
doc/power_management.md
doc/properties.md
include/bt_target.h
osi/src/alarm.c
test/gtest_net_test_bluetooth/Android.mk [moved from test/gtest_net_test_bluedroid/Android.mk with 96% similarity]
test/gtest_net_test_bluetooth/base.h [moved from test/gtest_net_test_bluedroid/base.h with 100% similarity]
test/gtest_net_test_bluetooth/cases/adapter.c [moved from test/gtest_net_test_bluedroid/cases/adapter.c with 100% similarity]
test/gtest_net_test_bluetooth/cases/cases.c [moved from test/gtest_net_test_bluedroid/cases/cases.c with 100% similarity]
test/gtest_net_test_bluetooth/cases/cases.h [moved from test/gtest_net_test_bluedroid/cases/cases.h with 100% similarity]
test/gtest_net_test_bluetooth/cases/gatt.c [moved from test/gtest_net_test_bluedroid/cases/gatt.c with 100% similarity]
test/gtest_net_test_bluetooth/cases/pan.c [moved from test/gtest_net_test_bluedroid/cases/pan.c with 100% similarity]
test/gtest_net_test_bluetooth/cases/rfcomm.c [moved from test/gtest_net_test_bluedroid/cases/rfcomm.c with 100% similarity]
test/gtest_net_test_bluetooth/main.cpp [moved from test/gtest_net_test_bluedroid/main.cpp with 100% similarity]
test/gtest_net_test_bluetooth/support/adapter.c [moved from test/gtest_net_test_bluedroid/support/adapter.c with 100% similarity]
test/gtest_net_test_bluetooth/support/adapter.h [moved from test/gtest_net_test_bluedroid/support/adapter.h with 100% similarity]
test/gtest_net_test_bluetooth/support/callbacks.c [moved from test/gtest_net_test_bluedroid/support/callbacks.c with 100% similarity]
test/gtest_net_test_bluetooth/support/callbacks.h [moved from test/gtest_net_test_bluedroid/support/callbacks.h with 100% similarity]
test/gtest_net_test_bluetooth/support/gatt.c [moved from test/gtest_net_test_bluedroid/support/gatt.c with 100% similarity]
test/gtest_net_test_bluetooth/support/gatt.h [moved from test/gtest_net_test_bluedroid/support/gatt.h with 100% similarity]
test/gtest_net_test_bluetooth/support/hal.c [moved from test/gtest_net_test_bluedroid/support/hal.c with 100% similarity]
test/gtest_net_test_bluetooth/support/hal.h [moved from test/gtest_net_test_bluedroid/support/hal.h with 100% similarity]
test/gtest_net_test_bluetooth/support/pan.c [moved from test/gtest_net_test_bluedroid/support/pan.c with 100% similarity]
test/gtest_net_test_bluetooth/support/pan.h [moved from test/gtest_net_test_bluedroid/support/pan.h with 100% similarity]
test/gtest_net_test_bluetooth/support/rfcomm.c [moved from test/gtest_net_test_bluedroid/support/rfcomm.c with 100% similarity]
test/gtest_net_test_bluetooth/support/rfcomm.h [moved from test/gtest_net_test_bluedroid/support/rfcomm.h with 100% similarity]
test/suite/Android.mk

index 2fa239d..739d5f8 100644 (file)
@@ -58,7 +58,7 @@ static pthread_mutex_t bta_alarm_lock;
 extern thread_t *bt_workqueue_thread;
 
 /* trace level */
-/* TODO Bluedroid - Hard-coded trace levels -  Needs to be configurable */
+/* TODO Hard-coded trace levels -  Needs to be configurable */
 UINT8 appl_trace_level = BT_TRACE_LEVEL_WARNING; //APPL_INITIAL_TRACE_LEVEL;
 UINT8 btif_trace_level = BT_TRACE_LEVEL_WARNING;
 
index 48d66d4..04509e7 100644 (file)
@@ -25,7 +25,7 @@
  ***********************************************************************************/
 
 #define LOG_NDDEBUG 0
-#define LOG_TAG "bt_bluedroid"
+#define LOG_TAG "bt_btif"
 
 #include <stdio.h>
 #include <stdlib.h>
index b546a47..412a158 100644 (file)
  *
  ******************************************************************************/
 
-/*****************************************************************************
- *
- *  Filename:      btif_av.c
- *
- *  Description:   Bluedroid AV implementation
- *
- *****************************************************************************/
-
 #include "btif_av.h"
 
 #include <assert.h>
index e57efa2..12c301d 100644 (file)
@@ -997,7 +997,7 @@ void btsock_l2cap_signaled(int fd, int flags, uint32_t user_id)
                          * typically written to the socket in a tight loop, hence we risk the ioctl
                          * will return the total amount of data in the buffer, which could be
                          * multiple 64kbyte chunks.
-                         * UPDATE: As bluedroid cannot handle 64kbyte buffers, the size is reduced
+                         * UPDATE: As the stack cannot handle 64kbyte buffers, the size is reduced
                          * to around 8kbyte - and using malloc for buffer allocation here seems to
                          * be wrong
                          * UPDATE: Since we are responsible for freeing the buffer in the
index efd1071..2500908 100644 (file)
@@ -4,7 +4,7 @@ btsnoop_net exposes Bluetooth snoop logs over a local TCP socket which enables
 real-time debugging of HCI data with hcidump.
 
 This feature is enabled by  setting `BtSnoopLogOutput=true` in `bt_stack.conf`.
-Once it has been enabled and the stack restarted, bluedroid will listen for
+Once it has been enabled and the stack restarted, the stack will listen for
 incoming TCP connections on port 8872.
 
 To use this feature with hcidump on a Linux host, you can run:
index b13d826..80b17c8 100644 (file)
@@ -12,11 +12,11 @@ of one or more modules.
 * audio_a2dp_hw - A2DP audio HAL implementation.
 * bta - *Bluetooth Application* - Strange collection of a-lot of things **Deprecate?**
 * btcore - *Bluetooth Core* - Bluetooth data type definitions and operations on those data types.
-* btif - *Bluetooth Interface* - Bluedroid JNI interface to Android.
+* btif - *Bluetooth Interface* - JNI interface to Android.
 * conf - *Configuration* - Various configuration text files.
 * doc - *Documentation* - Stack documentation.
 * embdrv - **Deprecated** - Bluetooth SBC Codec.
-* hci - *Host Controller Interface* - Communication protocol with bluetooth chip.
+* hci - *Host Controller Interface* - Communication protocol with Bluetooth chip.
 * include - **Deprecated** - System global include files.
 * main - *Main stack entrypoint* - Provides HAL for stack access.
 * osi - *Operating System Interface* - General resource support for stack.
index 9d9085b..f460fd0 100644 (file)
@@ -1,11 +1,11 @@
 Log Tags
 ===
-This document lists all of the log tags used by bluedroid.
+This document lists all of the log tags used by the Bluetooth stack.
 
 * audio_a2dp_hw
-* bluedroid
 * BTA_AG_CO:
 * bta_sys_main
+* bt_btif
 * bt_btif_config
 * bt_btif_config_transcode
 * bt_classic_peer
index 731ed79..5244a14 100644 (file)
@@ -1,7 +1,8 @@
 Network Ports
 ===
-This document lists all of the network ports used by bluedroid. It should be
-used as a reference and as a mechanism to avoid port namespace conflicts.
+This document lists all of the network ports used by the bluetooth stack.
+It should be used as a reference and as a mechanism to avoid port
+namespace conflicts.
 
 * TCP 8872 (hci/src/btsnoop_net.c) - read live btsnoop logs
 * TCP 8873 (hci/src/hci_inject.c) - inject HCI packets into HCI stream
index ae90d29..b40f854 100644 (file)
@@ -2,10 +2,10 @@
 
 ### Overview
 
-Power management (PM) in bluedroid is an event-driven state machine, tickled by
-various `bta/sys` events via a callback. The actual state switching calls are
-handled by the BTM HCI interfacing code, with results being posted back to the
-PM code via the BTA workqueue thread.
+Power management (PM) is an event-driven state machine, tickled by various
+`bta/sys` events via a callback. The actual state switching calls are handled
+by the BTM HCI interfacing code, with results being posted back to the PM
+code via the BTA workqueue thread.
 
 Power states are managed per-device, per-profile, so every incoming event
 includes a profile ID, app ID, and a `BD_ADDR`.
index 7d1edca..06c2bf4 100644 (file)
@@ -1,6 +1,7 @@
 Properties
 ===
-This document describes all of the Android properties used by bluedroid.
+This document describes all of the Android properties used by the Bluetooth
+stack.
 
 Please keep the following list in alphabetical order.
 
index ca3ba81..de3d50f 100644 (file)
@@ -1621,7 +1621,7 @@ The maximum number of payload octets that the local device can receive in a sing
 #define BTA_EIR_SERVER_NUM_CUSTOM_UUID     8
 #endif
 
-/* CHLD override for bluedroid */
+/* CHLD override */
 #ifndef BTA_AG_CHLD_VAL_ECC
 #define BTA_AG_CHLD_VAL_ECC  "(0,1,1x,2,2x,3)"
 #endif
index b105de4..c8c1f83 100644 (file)
@@ -62,7 +62,7 @@ struct alarm_t {
 int64_t TIMER_INTERVAL_FOR_WAKELOCK_IN_MS = 3000;
 static const clockid_t CLOCK_ID = CLOCK_BOOTTIME;
 static const clockid_t CLOCK_ID_ALARM = CLOCK_BOOTTIME_ALARM;
-static const char *WAKE_LOCK_ID = "bluedroid_timer";
+static const char *WAKE_LOCK_ID = "bluetooth_timer";
 static const char *WAKE_LOCK_PATH = "/sys/power/wake_lock";
 static const char *WAKE_UNLOCK_PATH = "/sys/power/wake_unlock";
 static ssize_t locked_id_len = -1;
similarity index 96%
rename from test/gtest_net_test_bluedroid/Android.mk
rename to test/gtest_net_test_bluetooth/Android.mk
index e55766b..36e3701 100644 (file)
@@ -19,7 +19,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE := gtest_net_test_bluedroid
+LOCAL_MODULE := gtest_net_test_bluetooth
 
 LOCAL_C_INCLUDES += \
     $(LOCAL_PATH)/../../
index 6dc45e3..ab7c14a 100644 (file)
@@ -19,7 +19,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE := net_test_bluedroid
+LOCAL_MODULE := net_test_bluetooth
 
 LOCAL_C_INCLUDES += \
     $(LOCAL_PATH)/../../