Remove hidl support.
Merged from http://go/wvgerrit/161857 Test: streaming(Netflix, Play Movies & TV) Test: ./build_and_run_all_unit_tests.sh Test: adb shell ps | grep drm Test: metrics_dump Test: hardware/interfaces/drm/aidl/vts$ atest VtsAidlHalDrmTargetTest Bug: 259299992 Change-Id: I76bcc82bbfb3fc60987b66265a580946a16c341d
This commit is contained in:
@@ -23,11 +23,7 @@
|
||||
|
||||
#include "log.h"
|
||||
|
||||
#ifdef IS_HIDL
|
||||
# include <hwbinder/IPCThreadState.h>
|
||||
#else // AIDL is the default
|
||||
# include <android/binder_ibinder.h>
|
||||
#endif
|
||||
#include <android/binder_ibinder.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
@@ -80,12 +76,7 @@ void ClearLoggingUid() {
|
||||
uint32_t GetLoggingUid() { return tl_logging_uid_; }
|
||||
|
||||
uint32_t GetIpcCallingUid() {
|
||||
#ifdef IS_HIDL
|
||||
const auto self = android::hardware::IPCThreadState::selfOrNull();
|
||||
return self ? self->getCallingUid() : UNKNOWN_UID;
|
||||
#else // AIDL is the default
|
||||
return AIBinder_getCallingUid();
|
||||
#endif
|
||||
}
|
||||
|
||||
void InitLogging() {}
|
||||
|
||||
Reference in New Issue
Block a user