summaryrefslogtreecommitdiff
path: root/opengl/tests
AgeCommit message (Collapse)Author
2021-02-25[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/proto/Android.bp cmds/surfacereplayer/replayer/Android.bp data/etc/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/attestation/Android.bp libs/attestation/tests/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/ftl/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvr_manager/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/configdump/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/filter/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp opengl/tests/tritex/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/powermanager/Android.bp services/powermanager/benchmarks/Android.bp services/powermanager/tests/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/FrameTimeline/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vibratorservice/Android.bp services/vibratorservice/benchmarks/Android.bp services/vibratorservice/test/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/Android.bp services/vr/hardware_composer/aidl/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Icd397e38ca313ae4886bd92afa927d4633a75c4f
2021-02-25Revert "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native"Bob Badour
This reverts commit f84491a4874f20653104f47622d7215521310526. This reverts commit 2e6718529b3f3b55d310db6738e71255e9b74dee. Change-Id: I1a9655335b856d6909b27929e00c0bde3186d893
2021-02-17[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: Ib1de8cd7b87446de45d79db15cd90b93a591846d
2021-02-05Rename DisplayConfig to DisplayModeMarin Shalamanov
This CL continues the raneming of display "configs" to display "modes". The goal of this is to have the same names as in the java code and the public display APIs. Additionally in this CL we move DisplayConfig (from libui) to the namespace android::ui. This is to prevent conflict with the SurfaceFlinger's internal android::DisplayMode. This is consistent with the neighboring classes which are also in the ui namespace. Also the type of the parameter defaultMode of {s,g}etDesiredDisplayModeSpecs is changed to size_t for consistency with the rest of the code. Appropriate error handling is added for this. Bug: 159590486 Bug: 179158858 Test: presubmit Change-Id: I31e5be1f2223a9ec9340789ce3dc5738eceaf40f
2020-07-29Merge "OpenGL: Use more inclusive terms" am: 303d4ecdad am: 4464572a00Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1374795 Change-Id: Ib0b17ff7397b2682b69b0ba1d331a64590d3816e
2020-07-28OpenGL: Use more inclusive termsYiwei Zhang
Bug: 162288333 Test: build Change-Id: I290a827e26fcd186a0461a568e41d0c50b7e19cd
2020-04-28Merge "Change to using sysprop for libEGL and EGL_test" into rvc-dev am: ↵TreeHugger Robot
ef960f8a6d Change-Id: Ia5313100cd57362985411790747e377daf5cafc3
2020-04-28Change to using sysprop for libEGL and EGL_testSundong Ahn
The configstore service was deprecated. So change to use sysprop instead of configstore. Bug: 124531214 Test: m -j && check reading system properties Change-Id: I220094082a1d4ec4e7649ad0d9b614e0bcc334a6
2020-04-14Merge "Add dependency on jni_headers to opengl tests" am: e65d87a96b am: ↵Orion Hodson
437b0af693 Change-Id: If8cfdded40ea4d60814631bd2ecff117cfa51323
2020-04-14Add dependency on jni_headers to opengl testsOrion Hodson
Preparation for removing implicit include paths for jni.h from soong. Bug: 152482542 Test: m checkbuild Change-Id: I7a6c702f93d37d079861dac1d1adad12a6cc4ccf
2020-01-29SF: Redesign API to query display informationDominik Laskowski
The DisplayInfo list returned by ISurfaceComposer for display configs contains display information/state redundant across configs. Extract config information to DisplayConfig, and repurpose DisplayInfo for immutable information about a physical display. In a future CL, SF will populate DisplayInfo with additional data (e.g. connection type, EDID fields) on initial connection. DisplayConfigs retain the ability to reload on subsequent connections. Introduce ui::DisplayState for transactional state applicable to both physical and virtual displays. Bug: 144601064 Test: dumpsys display Change-Id: I72003e8ef71483ef483d0de85d28b859a6c9f5fc
2020-01-07ui: Deduplicate rotation typesDominik Laskowski
Introduce ui::Rotation, replacing ISurfaceComposer::Rotation as well as DISPLAY_ORIENTATION_* and DisplayState::eOrientation* constants. libinput has widespread use of int32_t for orientation, so move DISPLAY_ORIENTATION_* to input/DisplayViewport.h for now. Bug: 144601064 Test: go/wm-smoke Test: screencap Change-Id: Ic4b8494e37c9d79c00d5b4be5eb88585f09efebf
2019-10-09[frameworks][native][opengl] fix -Wimplicit-int-float-conversionNick Desaulniers
IEEE754 single precision cannot precisely represent RAND_MAX. error: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion] For purposes of generating random uniforms, this does not matter. Add explicit casts of RAND_MAX to float to fix. Bug: 139945549 Test: mm Change-Id: I3a609b9bbe2e62eeacf5a6853ba625a512e5bcba Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-09-27Move to bionic platform include.Christopher Ferris
Bug: 141560639 Test: Builds. Change-Id: Iccc1cc09135399c6f7d4f33a0483762cd28ae43a Merged-In: Iccc1cc09135399c6f7d4f33a0483762cd28ae43a (cherry picked from commit ddd1d6b32c7b79ee8d5d1c00907a47d5d9834e9f)
2019-09-09Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Iec1802ce9226570d3a02cc5242f7ca72e1370635
2019-02-02SF: Plumb physical display IDs to libguiDominik Laskowski
This CL replaces ISurfaceComposer::{eDisplayIdMain,eDisplayIdHdmi} with the stable 64-bit display IDs generated by SF. Note that the 64-bit IDs fall back to the old values if the HWC API for display identification is not supported. Bug: 74619554 Test: LocalDisplayAdapter and Choreographer receive 64-bit IDs Test: 64-bit IDs fall back to 0 and 1 on HWC 2.2 and below Change-Id: I3c08eff6eb8bb179ecce596ab2820a2aa44c8649
2019-01-29Merge "Convert Android.mk file to Android.bp" am: 058cb93644 am: c044eea3fcSasha Smundak
am: 98bf6d7ecf Change-Id: I9e3c37fc8b719f0e9bc0b39ded934d5118a62bc1
2019-01-25Convert Android.mk file to Android.bpSasha Smundak
See build/soong/README.md for more information. Bug: 122332691 Test: treehugger Change-Id: I2146596aad99baa128511d07ab73470885319d49
2019-01-02Merge "Fix/suppress google-explicit-constructor warnings" am: cd6fc8c1dd am: ↵Chih-hung Hsieh
4754484fc8 am: e1bdb45c74 Change-Id: Iea1eea59b8faa5adea475588490d0fd956788ee2
2019-01-02Fix/suppress google-explicit-constructor warningsChih-Hung Hsieh
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: I6a755699f83d2d5929c9d4a6884a321110d78cea
2018-12-11[EGL] Advertize DISPLAY_P3_PASSTHROUGH_EXT.Peiyong Lin
Make sure we advertize DISPLAY_P3_PASSTHROUGH_EXT extension, and add platform support. BUG: b/111436479 b/117886297 b/120213877 Test: adb shell /data/nativetest/EGL_test/EGL_test Change-Id: I9848a3502e6a3e416f70c7097c25b596d92aaf0a
2018-11-01Merge "EGL_test: add 4 colorspace tests" am: e2c3de42a4 am: f113ccf5faYiwei Zhang
am: 462771a5d1 Change-Id: Ib4ff39ae2bdd075060c6bd07f1bf20ada2b11e1b
2018-10-18EGL_test: add 4 colorspace testsWeiwan Liu
EGLTest.EGLInvalidColorspaceAttribute EGLTest.EGLUnsupportedColorspaceFormatCombo EGLTest.EGLCreateWindowFailAndSucceed EGLTest.EGLCreateWindowTwoColorspaces Test: Manual testing of new test cases Change-Id: Ie3ec355cebe6fd001af1d3008b4575cd2f209dc0
2018-07-18[opengl] Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: Ia2f91707b277954d5105f6fdb489caad9ef8848c
2018-03-10EGL: Plumb HDR metadataCourtney Goeltzenleuchter
HDR metadata comes in bit by bit via eglSurfaceAttribute. Don't want to call native_window_set_buffers_smpte2086_metadata for every piece, instead wait until eglSwapBuffers and call native_window_set_buffers_smpte2086_metadata then. Does require changing the state of the surface, so some const goes away. Bug: 63710530 Test: adb -d shell am start -n \ com.drawelements.deqp/android.app.NativeActivity \ -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.hdr_metadata.* \ --deqp-log-filename=/sdcard/dEQP-Log.qpa"' Test: adb shell /data/nativetest/test-opengl-gl2_basic/test-opengl-gl2_basic Test: adb shell /data/nativetest/test-opengl-gl_basic/test-opengl-gl_basic Change-Id: I2e428ec18737f6caa8c0e1893705b7796fd77272
2018-03-09Merge "Fix link-type warning on GLPerf" into pi-devTreeHugger Robot
2018-03-09Merge "Fix link-type warning on GLDual" into pi-devTreeHugger Robot
2018-03-09Merge "Fix link-type warning on GL2JNI" into pi-devTreeHugger Robot
2018-03-08Fix link-type warning on GLDualInseob Kim
An sdk app GLDual uses a native:platform library libgldualjni, which causes a link-type warning. Actually libutils is the only platform library used by libgldualjni, and the warning can be eliminated by rewriting code not to use libutils and setting LOCAL_SDK_VERSION. Bug: 73907534 Test: mma -j does not show any link-type warnings Change-Id: I2a4f4bb0ac8002cb7ab5c60f8ba74728eca92f22
2018-03-08Fix link-type warning on GL2JNIInseob Kim
An sdk app GL2JNI uses a native:platform library libgl2jni, which causes a link-type warning. Actually libutils is the only platform library used by libgl2jni, and the warning can be eliminated by rewriting code not to use libutils and setting LOCAL_SDK_VERSION. Bug: 73907534 Test: mma -j does not show any link-type warnings Change-Id: I76cb1ea579a7cf091852cd3f7ceadb781d33ea4a
2018-03-08Fix link-type warning on GLJNIInseob Kim
An sdk app GLJNI uses a native:platform library libgljni, which causes a link-type warning. Actually libutils is the only platform library used by libgljni, and the warning can be eliminated by rewriting code not to use libutils and setting LOCAL_SDK_VERSION. Bug: 73907534 Test: mma -j does not show any link-type warnings Change-Id: Ia7e02c343f4b18c70be15f6b1c9462ee4bdca733
2018-03-08Fix link-type warning on GLPerfInseob Kim
An sdk app GLPerf uses a native:platform library libglperf, which causes a link-type warning. Actually libutils is the only platform library used by libglperf, and the warning can be eliminated by rewriting code not to use libutils and setting LOCAL_SDK_VERSION. Bug: 73907534 Test: mma -j does not show any link-type warnings Change-Id: I9ad9b542288e6dd914f14ec45d8d35c6985da89f
2018-02-23Build TestFramerate against the sdk.Anton Hansson
It doesn't need private APIs. Test: make Bug: 73535841 Change-Id: I5f7d84620097b38d88c570a5b5ce08e3474b2cda
2018-02-23Merge "frameworks/native: Set LOCAL_SDK_VERSION where possible." am: ↵hansson
8b3b108987 am: 52d0ad7033 am: 1d385c1268 Change-Id: I9746d2aa19a8926cfce37960af8c3db801528bcb
2018-02-22frameworks/native: Set LOCAL_SDK_VERSION where possible.Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: Ic762cfcbc5d9fdd57b65823bb41674ee3e4aa47f
2018-02-02Add hdr attributes to setSurfaceAttrCourtney Goeltzenleuchter
Keep original copies of hdr metadata to return to the user if requested. Scale integer values prior to sending to system. Test: --deqp-case=dEQP-EGL.functional.hdr_color.* Bug: 72491459, 72828483 Change-Id: I86ed35cf96d740ac230cc10acde322acbeffe847
2018-01-24Add HDR dataspaces to EGLCourtney Goeltzenleuchter
bug: 63710530 Test: adb shell /data/nativetest/EGL_test/EGL_test Test: adb -d shell am start -n \ com.drawelements.deqp/android.app.NativeActivity \ -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.hdr_color.* \ --deqp-log-filename=/sdcard/dEQP-Log.qpa"' Change-Id: I52c43539806c901c674f037489d502d771080a30
2017-11-15Merge "Use -Werror in frameworks/native/opengl/tests" am: 5de5abdef3 am: ↵Chih-hung Hsieh
7b8ff05d85 am: e73db29190 Change-Id: Ie3b34b143a236f296a16b48b15dcfb10452f543c
2017-11-15Merge "Use -Werror in frameworks/native/opengl/tests"Chih-hung Hsieh
am: 5de5abdef3 Change-Id: I6c830dccd375a8e982672f3b9e935ae5371f6122
2017-11-15Use -Werror in frameworks/native/opengl/testsChih-Hung Hsieh
* Remove or comment out unused local variables. * Remove unused function. * Cast print argument type to fix format mismatch warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I81e80849ac36288932df235cb0d63bd870357d86
2017-11-14Fix signed/unsigned conversion warningChih-Hung Hsieh
sizeof(T) hands back size_t; clang got upset that we were comparing it to an int. Bug: None Test: mma. Warning disappeared. Change-Id: I8f201f85a03fcf1070a091a5692eeb00ec13961c Merged-In: I8f201f85a03fcf1070a091a5692eeb00ec13961c (cherry picked from commit d3f1401b9d48de65c015b49048ee8deeb85cec0b)
2017-11-07Fix trivial compiler warningsChih-Hung Hsieh
Test: Compile & executed many of the tests on Marlin Change-Id: I2d88922c5dcc88de0394c5bfade02ca1dd9d7b60 Merged-In: I2d88922c5dcc88de0394c5bfade02ca1dd9d7b60 (cherry picked from commit 9c938487732de50adb46a2699ce930195c873ea1)
2017-10-31Fix clang-tidy performance warnings in frameworks/native.Chih-Hung Hsieh
* Use const reference parameter type to avoid unnecessary copy. * Use more efficient overloaded string methods. * Use const reference type for loop index variables to avoid unnecessary copy. (cherry picked from commit cb057c2e6bf23b43df49282c0db26b663e4535f7) Bug: 30407689 Bug: 30411878 Bug: 30413223 Test: build with WITH_TIDY=1 Merged-In: I75ed62e2cb9939878b8932ed512ceb7e241edd6f Change-Id: I75ed62e2cb9939878b8932ed512ceb7e241edd6f
2017-10-26Convert tests to Android.bpChih-Hung Hsieh
Test: make adb shell stop; adb sync; adb shell start - wait for device to finish adb shell /data/nativetest/angeles/angeles adb shell /data/nativetest/test-opengl-configdump/test-opengl-configdump adb shell /data/nativetest/EGL_test/EGL_test adb shell /data/nativetest/test-opengl-fillrate/test-opengl-fillrate adb shell /data/nativetest/test-opengl-filter/test-opengl-filter 3 adb shell /data/nativetest/test-opengl-filter/test-opengl-filter 3 pbuffer adb shell /data/nativetest/test-opengl-finish/test-opengl-finish adb shell /data/nativetest/test-opengl-gl2_basic/test-opengl-gl2_basic adb shell /data/nativetest/test-opengl-gl2_copyTexImage/test-opengl-gl2_copyTexImage adb shell /data/nativetest/test-opengl-gl2_yuvtex/test-opengl-gl2_yuvtex adb shell /data/nativetest/test-opengl-gl_basic/test-opengl-gl_basic adb shell /data/nativetest/test-opengl-gl2_perf/test-opengl-gl2_perf adb shell /data/nativetest/test-opengl-gl_yuvtex/test-opengl-gl_yuvtex adb shell /data/nativetest/test-opengl-gralloc/test-opengl-gralloc Bug: 37512442 Change-Id: I5d7b974333f485570304728d0572e251bb576f7e Merged-In: I5d7b974333f485570304728d0572e251bb576f7e (cherry picked from commit 03d9f07200796e5c436e28325b6b120e3c14c6e9)
2017-10-11SurfaceFlinger Transactions as distinct objects.Robert Carr
Essentially a process global singleton for transactions is not so useful once we make surface control public API as process isn't something an app developer is really thinking about. It's also nice that we get to delete two of the plumbing layers. Test: Boots Change-Id: I8864bd7e2f5865e3c0a425cf82f9928211911774
2017-09-20resolve merge conflicts of 8007bdd7d to stage-aosp-masterJae Shin
Test: I solemnly swear I tested this conflict resolution. Change-Id: I728cde095a0b722ff64c0f7b0ef1df4b54cf1fbd
2017-09-20Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDKJiyong Park
They are used by libRSDriver and libRS_internal which are VNDK-SP libraries. Therefore, the EGL/GLES libs must be LLNDK or VNDK-SP. We choose to make them as LLNDK since they already have stable ABIs (as they are NDK). In addition, two more functions of libEGL are exposed to vendors eglQueryStringImplementationANDROID and eglDupNativeFenceFDANDROID are non-NDK symbols but are being used by libgui, which is a library marked with vendor_available:true. In order to provide the symbols to the library, they are added to the map.txt file and tagged as "# vndk" so that they are exposed only when built for vendor libs (and hidden when built for NDK). Furthermore, eglQueryStringImplementationANDROID is changed to C-symbol in order to be mentioned in the map.txt file, where C++ mangled symbol name can't be used. Bug: 64425518 Test: BOARD_VNDK_VERSION=current m -j libRSDriver.vendor Test: BOARD_VNDK_VERSION=current m -j libRS_internal.vendor Merged-In: I4d5bcd5f72fb05a7908887f5192de70fd1d8c8f1 Change-Id: I4d5bcd5f72fb05a7908887f5192de70fd1d8c8f1 (cherry picked from commit 00b15b8f223976d016e16536e4720771ef634695)
2017-09-19Fix unused parameter warningCourtney Goeltzenleuchter
Test: make Bug: 29940137 Merged-In: Iac7c58674f4191baa28e8141851bd74ab2329771 Change-Id: Iac7c58674f4191baa28e8141851bd74ab2329771 (cherry picked from commit 10d17f78f3e63e93b03c86a8c013584a8a7e21f3)
2017-09-19Print ImplementationANDROID extensions as wellCourtney Goeltzenleuchter
Test: adb shell /system/bin/test-opengl-gl2_basic Now includes extension list from eglQueryStringImplementationANDROID Bug: 29940137 Merged-In: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 Change-Id: I7aae05f7dbc07a17f9d35fe93f929d9dfd8f0d55 (cherry picked from commit e29ff8f973f7dacb9e263375962140911ae191e3)
2017-08-15Merge "Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDK" into oc-mr1-devJiyong Park
am: d2bc3ac8c4 Change-Id: I2ac5a8e4bf53de7f8a7e47ea77c8818c6f036c66