diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-03-14 23:06:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-14 23:06:38 +0000 |
commit | 99e12d339e4fd28198601d7aafd1d16cb587dd9e (patch) | |
tree | caa0f502486625eca00333d61ddb663046e0e621 | |
parent | 97eff51b56483c6a3fb584242fbbd02b8a2e290d (diff) | |
parent | 27c1015c2b6fb0cdb66199dfee44b948df6e3f77 (diff) | |
download | native-platform-tools-35.0.1.tar.gz |
Merge "Snap for 11579193 from 342f92247253c3ee5daf19715c6729b25a00141b to sdk-release" into sdk-releaseplatform-tools-35.0.1
-rw-r--r-- | data/etc/Android.bp | 6 | ||||
-rw-r--r-- | libs/binder/ndk/libbinder_ndk.map.txt | 43 | ||||
-rw-r--r-- | opengl/libs/EGL/Loader.cpp | 13 |
3 files changed, 52 insertions, 10 deletions
diff --git a/data/etc/Android.bp b/data/etc/Android.bp index e90b8d8590..89c6c0f046 100644 --- a/data/etc/Android.bp +++ b/data/etc/Android.bp @@ -317,6 +317,12 @@ prebuilt_etc { } prebuilt_etc { + name: "android.hardware.vulkan.compute-0.prebuilt.xml", + src: "android.hardware.vulkan.compute-0.xml", + defaults: ["frameworks_native_data_etc_defaults"], +} + +prebuilt_etc { name: "android.hardware.vulkan.level-1.prebuilt.xml", src: "android.hardware.vulkan.level-1.xml", defaults: ["frameworks_native_data_etc_defaults"], diff --git a/libs/binder/ndk/libbinder_ndk.map.txt b/libs/binder/ndk/libbinder_ndk.map.txt index de624e44f6..826e199093 100644 --- a/libs/binder/ndk/libbinder_ndk.map.txt +++ b/libs/binder/ndk/libbinder_ndk.map.txt @@ -164,47 +164,88 @@ LIBBINDER_NDK34 { # introduced=UpsideDownCake LIBBINDER_NDK35 { # introduced=VanillaIceCream global: APersistableBundle_readFromParcel; + APersistableBundle_readFromParcel; # llndk=202404 APersistableBundle_writeToParcel; + APersistableBundle_writeToParcel; # llndk=202404 APersistableBundle_new; + APersistableBundle_new; # llndk=202404 APersistableBundle_dup; + APersistableBundle_dup; # llndk=202404 APersistableBundle_delete; + APersistableBundle_delete; # llndk=202404 APersistableBundle_isEqual; + APersistableBundle_isEqual; # llndk=202404 APersistableBundle_size; + APersistableBundle_size; # llndk=202404 APersistableBundle_erase; + APersistableBundle_erase; # llndk=202404 APersistableBundle_putBoolean; + APersistableBundle_putBoolean; # llndk=202404 APersistableBundle_putInt; + APersistableBundle_putInt; # llndk=202404 APersistableBundle_putLong; + APersistableBundle_putLong; # llndk=202404 APersistableBundle_putDouble; + APersistableBundle_putDouble; # llndk=202404 APersistableBundle_putString; + APersistableBundle_putString; # llndk=202404 APersistableBundle_putBooleanVector; + APersistableBundle_putBooleanVector; # llndk=202404 APersistableBundle_putIntVector; + APersistableBundle_putIntVector; # llndk=202404 APersistableBundle_putLongVector; + APersistableBundle_putLongVector; # llndk=202404 APersistableBundle_putDoubleVector; + APersistableBundle_putDoubleVector; # llndk=202404 APersistableBundle_putStringVector; + APersistableBundle_putStringVector; # llndk=202404 APersistableBundle_putPersistableBundle; + APersistableBundle_putPersistableBundle; # llndk=202404 APersistableBundle_getBoolean; + APersistableBundle_getBoolean; # llndk=202404 APersistableBundle_getInt; + APersistableBundle_getInt; # llndk=202404 APersistableBundle_getLong; + APersistableBundle_getLong; # llndk=202404 APersistableBundle_getDouble; + APersistableBundle_getDouble; # llndk=202404 APersistableBundle_getString; + APersistableBundle_getString; # llndk=202404 APersistableBundle_getBooleanVector; + APersistableBundle_getBooleanVector; # llndk=202404 APersistableBundle_getIntVector; + APersistableBundle_getIntVector; # llndk=202404 APersistableBundle_getLongVector; + APersistableBundle_getLongVector; # llndk=202404 APersistableBundle_getDoubleVector; + APersistableBundle_getDoubleVector; # llndk=202404 APersistableBundle_getStringVector; + APersistableBundle_getStringVector; # llndk=202404 APersistableBundle_getPersistableBundle; + APersistableBundle_getPersistableBundle; # llndk=202404 APersistableBundle_getBooleanKeys; + APersistableBundle_getBooleanKeys; # llndk=202404 APersistableBundle_getIntKeys; + APersistableBundle_getIntKeys; # llndk=202404 APersistableBundle_getLongKeys; + APersistableBundle_getLongKeys; # llndk=202404 APersistableBundle_getDoubleKeys; + APersistableBundle_getDoubleKeys; # llndk=202404 APersistableBundle_getStringKeys; + APersistableBundle_getStringKeys; # llndk=202404 APersistableBundle_getBooleanVectorKeys; + APersistableBundle_getBooleanVectorKeys; # llndk=202404 APersistableBundle_getIntVectorKeys; + APersistableBundle_getIntVectorKeys; # llndk=202404 APersistableBundle_getLongVectorKeys; + APersistableBundle_getLongVectorKeys; # llndk=202404 APersistableBundle_getDoubleVectorKeys; + APersistableBundle_getDoubleVectorKeys; # llndk=202404 APersistableBundle_getStringVectorKeys; + APersistableBundle_getStringVectorKeys; # llndk=202404 APersistableBundle_getPersistableBundleKeys; - AServiceManager_openDeclaredPassthroughHal; # systemapi llndk + APersistableBundle_getPersistableBundleKeys; # llndk=202404 + AServiceManager_openDeclaredPassthroughHal; # systemapi llndk=202404 }; LIBBINDER_NDK_PLATFORM { diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index e487cbc54d..af0bcffc1f 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp @@ -67,7 +67,6 @@ static const char* PERSIST_DRIVER_SUFFIX_PROPERTY = "persist.graphics.egl"; static const char* RO_DRIVER_SUFFIX_PROPERTY = "ro.hardware.egl"; static const char* RO_BOARD_PLATFORM_PROPERTY = "ro.board.platform"; static const char* ANGLE_SUFFIX_VALUE = "angle"; -static const char* VENDOR_ANGLE_BUILD = "ro.gfx.angle.supported"; static const char* HAL_SUBNAME_KEY_PROPERTIES[3] = { PERSIST_DRIVER_SUFFIX_PROPERTY, @@ -494,14 +493,9 @@ static void* load_system_driver(const char* kind, const char* suffix, const bool void* dso = nullptr; - const bool AngleInVendor = property_get_bool(VENDOR_ANGLE_BUILD, false); const bool isSuffixAngle = suffix != nullptr && strcmp(suffix, ANGLE_SUFFIX_VALUE) == 0; - // Only use sphal namespace when system ANGLE binaries are not the default drivers. - const bool useSphalNamespace = !isSuffixAngle || AngleInVendor; - const std::string absolutePath = - findLibrary(libraryName, useSphalNamespace ? VENDOR_LIB_EGL_DIR : SYSTEM_LIB_PATH, - exact); + findLibrary(libraryName, isSuffixAngle ? SYSTEM_LIB_PATH : VENDOR_LIB_EGL_DIR, exact); if (absolutePath.empty()) { // this happens often, we don't want to log an error return nullptr; @@ -509,8 +503,9 @@ static void* load_system_driver(const char* kind, const char* suffix, const bool const char* const driverAbsolutePath = absolutePath.c_str(); // Currently the default driver is unlikely to be ANGLE on most devices, - // hence put this first. - if (useSphalNamespace) { + // hence put this first. Only use sphal namespace when system ANGLE binaries + // are not the default drivers. + if (!isSuffixAngle) { // Try to load drivers from the 'sphal' namespace, if it exist. Fall back to // the original routine when the namespace does not exist. // See /system/linkerconfig/contents/namespace for the configuration of the |