Skip to content

Commit e2f79ab

Browse files
tweenkGerrit Code Review
authored andcommitted
Merge "Delete code for legacy VR services." into main
2 parents 0e3c35a + 26743a5 commit e2f79ab

214 files changed

Lines changed: 0 additions & 38834 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmds/atrace/Android.bp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ cc_binary {
3333
"libcutils",
3434
"libz",
3535
"libbase",
36-
"libpdx_default_transport",
3736
"android.hardware.atrace@1.0",
3837
],
3938

cmds/atrace/atrace.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include <android/hidl/manager/1.0/IServiceManager.h>
4242
#include <hidl/ServiceManagement.h>
4343

44-
#include <pdx/default_transport/service_utility.h>
4544
#include <utils/String8.h>
4645
#include <utils/Timers.h>
4746
#include <utils/Tokenizer.h>
@@ -53,7 +52,6 @@
5352
#include <android-base/stringprintf.h>
5453

5554
using namespace android;
56-
using pdx::default_transport::ServiceUtility;
5755
using hardware::hidl_vec;
5856
using hardware::hidl_string;
5957
using hardware::Return;
@@ -72,7 +70,6 @@ const char* k_tracePreferSdkProperty = "debug.atrace.prefer_sdk";
7270
const char* k_traceAppsNumberProperty = "debug.atrace.app_number";
7371
const char* k_traceAppsPropertyTemplate = "debug.atrace.app_%d";
7472
const char* k_coreServiceCategory = "core_services";
75-
const char* k_pdxServiceCategory = "pdx";
7673
const char* k_coreServicesProp = "ro.atrace.core.services";
7774

7875
const char* kVendorCategoriesPath = "/vendor/etc/atrace/atrace_categories.txt";
@@ -131,7 +128,6 @@ static const TracingCategory k_categories[] = {
131128
{ "nnapi", "NNAPI", ATRACE_TAG_NNAPI, { } },
132129
{ "rro", "Runtime Resource Overlay", ATRACE_TAG_RRO, { } },
133130
{ k_coreServiceCategory, "Core services", 0, { } },
134-
{ k_pdxServiceCategory, "PDX services", 0, { } },
135131
{ "sched", "CPU Scheduling", 0, {
136132
{ REQ, "events/sched/sched_switch/enable" },
137133
{ REQ, "events/sched/sched_wakeup/enable" },
@@ -299,7 +295,6 @@ static const char* g_debugAppCmdLine = "";
299295
static const char* g_outputFile = nullptr;
300296

301297
/* Global state */
302-
static bool g_tracePdx = false;
303298
static bool g_traceAborted = false;
304299
static bool g_categoryEnables[arraysize(k_categories)] = {};
305300
static std::string g_traceFolder;
@@ -456,10 +451,6 @@ static bool isCategorySupported(const TracingCategory& category)
456451
return !android::base::GetProperty(k_coreServicesProp, "").empty();
457452
}
458453

459-
if (strcmp(category.name, k_pdxServiceCategory) == 0) {
460-
return true;
461-
}
462-
463454
bool ok = category.tags != 0;
464455
for (int i = 0; i < MAX_SYS_FILES; i++) {
465456
const char* path = category.sysfiles[i].path;
@@ -818,11 +809,6 @@ static bool setUpUserspaceTracing()
818809
if (strcmp(k_categories[i].name, k_coreServiceCategory) == 0) {
819810
coreServicesTagEnabled = g_categoryEnables[i];
820811
}
821-
822-
// Set whether to poke PDX services in this session.
823-
if (strcmp(k_categories[i].name, k_pdxServiceCategory) == 0) {
824-
g_tracePdx = g_categoryEnables[i];
825-
}
826812
}
827813

828814
std::string packageList(g_debugAppCmdLine);
@@ -834,9 +820,6 @@ static bool setUpUserspaceTracing()
834820
}
835821
ok &= setAppCmdlineProperty(&packageList[0]);
836822
ok &= setTagsProperty(tags);
837-
if (g_tracePdx) {
838-
ok &= ServiceUtility::PokeServices();
839-
}
840823

841824
return ok;
842825
}
@@ -845,10 +828,6 @@ static void cleanUpUserspaceTracing()
845828
{
846829
setTagsProperty(0);
847830
clearAppProperties();
848-
849-
if (g_tracePdx) {
850-
ServiceUtility::PokeServices();
851-
}
852831
}
853832

854833

libs/gui/Android.bp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,7 @@ cc_library_shared {
309309

310310
header_libs: [
311311
"jni_headers",
312-
"libdvr_headers",
313312
"libgui_aidl_headers",
314-
"libpdx_headers",
315313
],
316314

317315
afdo: true,

libs/ui/include/ui/BufferHubDefs.h

Lines changed: 0 additions & 184 deletions
This file was deleted.

libs/vr/.clang-format

Lines changed: 0 additions & 5 deletions
This file was deleted.

libs/vr/Android.bp

Lines changed: 0 additions & 14 deletions
This file was deleted.

libs/vr/CPPLINT.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

libs/vr/OWNERS

Lines changed: 0 additions & 4 deletions
This file was deleted.

libs/vr/libbroadcastring/Android.bp

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)