Change to using sysprop for vrflinger_test
The configstore service was deprecated. So change to use sysprop instead of configstore. Bug: 124531214 Test: m -j Change-Id: I5367b5715c797facd37736eee84651addbaa230d
This commit is contained in:
parent
2af0642bfb
commit
8e852f5231
2 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,7 @@ shared_libs = [
|
|||
"libutils",
|
||||
"libnativewindow",
|
||||
"libpdx_default_transport",
|
||||
"libSurfaceFlingerProp",
|
||||
]
|
||||
|
||||
static_libs = [
|
||||
|
@ -32,5 +33,6 @@ cc_test {
|
|||
"-Wall",
|
||||
"-Werror",
|
||||
],
|
||||
header_libs: ["libsurfaceflinger_headers"],
|
||||
name: "vrflinger_test",
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <SurfaceFlingerProperties.h>
|
||||
#include <android/hardware/configstore/1.0/ISurfaceFlingerConfigs.h>
|
||||
#include <android/hardware/configstore/1.1/types.h>
|
||||
#include <android/hardware_buffer.h>
|
||||
|
@ -147,9 +148,7 @@ TEST(VrFlingerTest, ActivateDeactivate) {
|
|||
// Exit immediately if the device doesn't support vr flinger. This ConfigStore
|
||||
// check is the same mechanism used by surface flinger to decide if it should
|
||||
// initialize vr flinger.
|
||||
bool vr_flinger_enabled =
|
||||
getBool<ISurfaceFlingerConfigs, &ISurfaceFlingerConfigs::useVrFlinger>(
|
||||
false);
|
||||
bool vr_flinger_enabled = android::sysprop::use_vr_flinger(false);
|
||||
if (!vr_flinger_enabled) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue