OSDN Git Service

DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
authorXin Li <delphij@google.com>
Tue, 9 Jul 2019 23:54:23 +0000 (16:54 -0700)
committerXin Li <delphij@google.com>
Tue, 9 Jul 2019 23:54:23 +0000 (16:54 -0700)
Bug: 136196576
Change-Id: I0b01b2d05243625f3c4ae1b3326bae88ea6a9f36

1  2 
btif/Android.bp
main/Android.bp
osi/src/alarm.cc
osi/test/alarm_test.cc
stack/sdp/sdp_db.cc
stack/sdp/sdp_discovery.cc
stack/sdp/sdp_utils.cc
stack/sdp/sdpint.h

diff --cc btif/Android.bp
@@@ -136,9 -126,16 +136,16 @@@ cc_test 
          "liblog",
          "libprotobuf-cpp-lite",
          "libcutils",
 +        "libprocessgroup",
          "libutils",
          "libcrypto",
 -        "libstatslog",
+         "android.hardware.keymaster@4.0",
+         "android.hardware.keymaster@3.0",
+         "libkeymaster4support",
+         "libkeystore_aidl",
+         "libkeystore_binder",
+         "libkeystore_parcelables",
+         "libbinder",
      ],
      static_libs: [
          "libbt-bta",
diff --cc main/Android.bp
@@@ -54,6 -52,13 +54,12 @@@ cc_library_shared 
          "libtinyxml2",
          "libz",
          "libcrypto",
 -        "libstatslog",
+         "android.hardware.keymaster@4.0",
+         "android.hardware.keymaster@3.0",
+         "libkeymaster4support",
+         "libkeystore_aidl",
+         "libkeystore_binder",
+         "libkeystore_parcelables",
      ],
      static_libs: [
          "libbt-sbc-decoder",
@@@ -91,11 -92,11 +91,11 @@@ struct alarm_t 
    // potentially long-running callback is executing. |alarm_cancel| uses this
    // mutex to provide a guarantee to its caller that the callback will not be
    // in progress when it returns.
-   std::recursive_mutex* callback_mutex;
+   std::shared_ptr<std::recursive_mutex> callback_mutex;
 -  period_ms_t creation_time;
 -  period_ms_t period;
 -  period_ms_t deadline;
 -  period_ms_t prev_deadline;  // Previous deadline - used for accounting of
 +  uint64_t creation_time_ms;
 +  uint64_t period_ms;
 +  uint64_t deadline_ms;
 +  uint64_t prev_deadline_ms;  // Previous deadline - used for accounting of
                                // periodic timers
    bool is_periodic;
    fixed_queue_t* queue;  // The processing queue to add this alarm to
Simple merge
Simple merge
@@@ -336,8 -349,20 +336,9 @@@ static void sdp_copy_raw_data(tCONN_CB
    unsigned int cpy_len, rem_len;
    uint32_t list_len;
    uint8_t* p;
+   uint8_t* p_end;
    uint8_t type;
  
 -#if (SDP_DEBUG_RAW == TRUE)
 -  uint8_t num_array[SDP_MAX_LIST_BYTE_COUNT];
 -  uint32_t i;
 -
 -  for (i = 0; i < p_ccb->list_len; i++) {
 -    snprintf((char*)&num_array[i * 2], sizeof(num_array) - i * 2, "%02X",
 -             (uint8_t)(p_ccb->rsp_list[i]));
 -  }
 -  SDP_TRACE_WARNING("result :%s", num_array);
 -#endif
 -
    if (p_ccb->p_db->raw_data) {
      cpy_len = p_ccb->p_db->raw_size - p_ccb->p_db->raw_used;
      list_len = p_ccb->list_len;
Simple merge
Simple merge