Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42123c1c authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-80d7cd88-53c4-4e65-952a-f34bc86a0841-for-git_oc-mr1-release-40...

release-request-80d7cd88-53c4-4e65-952a-f34bc86a0841-for-git_oc-mr1-release-4050000 snap-temp-L22200000068540971

Change-Id: I56a6e810795209ca57f4c8a88a2edada44dd3800
parents 7a614fea 589f804d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -34,11 +34,12 @@ interface IEvsEnumerator {
    /**
     * Get the IEvsCamera associated with a cameraId from a CameraDesc
     *
     * Given a camera's unique cameraId from ca CameraDesc, returns
     * the ICamera interface associated with the specified camera.
     * When done using the camera, the caller may release it by calling closeCamera().
     * TODO(b/36122635) Reliance on the sp<> going out of scope is not recommended because the
     * resources may not be released right away due to asynchronos behavior in the hardware binder.
     * Given a camera's unique cameraId from CameraDesc, returns the
     * IEvsCamera interface associated with the specified camera. When
     * done using the camera, the caller may release it by calling closeCamera().
     * Note: Reliance on the sp<> going out of scope is not recommended
     * because the resources may not be released right away due to asynchronos
     * behavior in the hardware binder (ref b/36122635).
     */
    openCamera(string cameraId) generates (IEvsCamera carCamera);

+0 −3
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ cc_library_shared {
        "vendor_interface.cc",
    ],
    shared_libs: [
        "android.frameworks.schedulerservice@1.0",
        "android.hardware.bluetooth@1.0",
        "libbase",
        "libcutils",
@@ -49,7 +48,6 @@ cc_library_static {
    ],
    export_include_dirs: ["."],
    shared_libs: [
        "android.frameworks.schedulerservice@1.0",
        "liblog",
    ],
}
@@ -86,7 +84,6 @@ cc_test {
        "test",
    ],
    shared_libs: [
        "android.frameworks.schedulerservice@1.0",
        "libbase",
        "libhidlbase",
        "liblog",
+0 −1
Original line number Diff line number Diff line
@@ -35,6 +35,5 @@ LOCAL_SHARED_LIBRARIES += \
  libhidlbase \
  libhidltransport \
  android.hardware.bluetooth@1.0 \
  android.frameworks.schedulerservice@1.0\

include $(BUILD_EXECUTABLE)
+6 −15
Original line number Diff line number Diff line
@@ -30,8 +30,6 @@
#include "sys/select.h"
#include "unistd.h"

#include <android/frameworks/schedulerservice/1.0/ISchedulingPolicyService.h>

static const int INVALID_FD = -1;

static const int BT_RT_PRIORITY = 1;
@@ -119,19 +117,12 @@ int AsyncFdWatcher::notifyThread() {
}

void AsyncFdWatcher::ThreadRoutine() {
  using ::android::frameworks::schedulerservice::V1_0::ISchedulingPolicyService;
  using ::android::hardware::Return;
  sp<ISchedulingPolicyService> manager = ISchedulingPolicyService::getService();
  if (manager == nullptr) {
    ALOGE("%s: Couldn't get scheduler manager to set SCHED_FIFO.", __func__);
  } else {
    Return<bool> ret = manager->requestPriority(getpid(),
                                                gettid(),
                                                BT_RT_PRIORITY);
    if (!ret.isOk() || !ret) {
      ALOGE("%s unable to set SCHED_FIFO for pid %d, tid %d", __func__,
            getpid(), gettid());
    }
  // Make watching thread RT.
  struct sched_param rt_params;
  rt_params.sched_priority = BT_RT_PRIORITY;
  if (sched_setscheduler(gettid(), SCHED_FIFO, &rt_params)) {
    ALOGE("%s unable to set SCHED_FIFO for pid %d, tid %d, error %s", __func__,
          getpid(), gettid(), strerror(errno));
  }

  while (running_) {
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@

#include <hidl/LegacySupport.h>

// Add an extra thread for calls to the scheduler service.
static const size_t kMaxThreads = 2;
// Extra threads make priority inheritance faster.
static const size_t kMaxThreads = 5;

// Generated HIDL files
using android::hardware::bluetooth::V1_0::IBluetoothHci;
Loading