Loading cmds/atrace/atrace.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -854,7 +854,6 @@ static bool setUpUserspaceTracing() tags |= c.tags; } } ok &= setTagsProperty(tags); bool coreServicesTagEnabled = false; for (size_t i = 0; i < arraysize(k_categories); i++) { Loading @@ -876,9 +875,11 @@ static bool setUpUserspaceTracing() packageList += android::base::GetProperty(k_coreServicesProp, ""); } ok &= setAppCmdlineProperty(&packageList[0]); ok &= setTagsProperty(tags); #if !ATRACE_SHMEM ok &= pokeBinderServices(); pokeHalServices(); #endif if (g_tracePdx) { ok &= ServiceUtility::PokeServices(); } Loading cmds/surfacereplayer/replayer/Replayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -606,7 +606,7 @@ void Replayer::setDisplayProjection(SurfaceComposerClient::Transaction& t, pc.viewport().bottom()); Rect frame = Rect(pc.frame().left(), pc.frame().top(), pc.frame().right(), pc.frame().bottom()); t.setDisplayProjection(mDisplays[id], pc.orientation(), viewport, frame); t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); } status_t Replayer::createSurfaceControl( Loading include/android/bitmap.h +13 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,19 @@ typedef struct { int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, AndroidBitmapInfo* info); #if __ANDROID_API__ >= 30 /** * Given a java bitmap object, return its ADataSpace. * * Note that ADataSpace only exposes a few values. This may return * ADATASPACE_UNKNOWN, even for Named ColorSpaces, if they have no * corresponding ADataSpace. */ int32_t AndroidBitmap_getDataSpace(JNIEnv* env, jobject jbitmap) __INTRODUCED_IN(30); #endif // __ANDROID_API__ >= 30 /** * Given a java bitmap object, attempt to lock the pixel address. * Locking will ensure that the memory for the pixels will not move Loading include/input/DisplayViewport.h +10 −3 Original line number Diff line number Diff line Loading @@ -17,16 +17,23 @@ #ifndef _LIBINPUT_DISPLAY_VIEWPORT_H #define _LIBINPUT_DISPLAY_VIEWPORT_H #include <cinttypes> #include <optional> #include <android-base/stringprintf.h> #include <ui/DisplayInfo.h> #include <input/Input.h> #include <inttypes.h> #include <optional> using android::base::StringPrintf; namespace android { enum { DISPLAY_ORIENTATION_0 = 0, DISPLAY_ORIENTATION_90 = 1, DISPLAY_ORIENTATION_180 = 2, DISPLAY_ORIENTATION_270 = 3 }; /** * Describes the different type of viewports supported by input flinger. * Keep in sync with values in InputManagerService.java. Loading include/input/TouchVideoFrame.h +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ #include <stdint.h> #include <sys/time.h> #include <ui/DisplayInfo.h> #include <vector> namespace android { Loading Loading
cmds/atrace/atrace.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -854,7 +854,6 @@ static bool setUpUserspaceTracing() tags |= c.tags; } } ok &= setTagsProperty(tags); bool coreServicesTagEnabled = false; for (size_t i = 0; i < arraysize(k_categories); i++) { Loading @@ -876,9 +875,11 @@ static bool setUpUserspaceTracing() packageList += android::base::GetProperty(k_coreServicesProp, ""); } ok &= setAppCmdlineProperty(&packageList[0]); ok &= setTagsProperty(tags); #if !ATRACE_SHMEM ok &= pokeBinderServices(); pokeHalServices(); #endif if (g_tracePdx) { ok &= ServiceUtility::PokeServices(); } Loading
cmds/surfacereplayer/replayer/Replayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -606,7 +606,7 @@ void Replayer::setDisplayProjection(SurfaceComposerClient::Transaction& t, pc.viewport().bottom()); Rect frame = Rect(pc.frame().left(), pc.frame().top(), pc.frame().right(), pc.frame().bottom()); t.setDisplayProjection(mDisplays[id], pc.orientation(), viewport, frame); t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); } status_t Replayer::createSurfaceControl( Loading
include/android/bitmap.h +13 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,19 @@ typedef struct { int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, AndroidBitmapInfo* info); #if __ANDROID_API__ >= 30 /** * Given a java bitmap object, return its ADataSpace. * * Note that ADataSpace only exposes a few values. This may return * ADATASPACE_UNKNOWN, even for Named ColorSpaces, if they have no * corresponding ADataSpace. */ int32_t AndroidBitmap_getDataSpace(JNIEnv* env, jobject jbitmap) __INTRODUCED_IN(30); #endif // __ANDROID_API__ >= 30 /** * Given a java bitmap object, attempt to lock the pixel address. * Locking will ensure that the memory for the pixels will not move Loading
include/input/DisplayViewport.h +10 −3 Original line number Diff line number Diff line Loading @@ -17,16 +17,23 @@ #ifndef _LIBINPUT_DISPLAY_VIEWPORT_H #define _LIBINPUT_DISPLAY_VIEWPORT_H #include <cinttypes> #include <optional> #include <android-base/stringprintf.h> #include <ui/DisplayInfo.h> #include <input/Input.h> #include <inttypes.h> #include <optional> using android::base::StringPrintf; namespace android { enum { DISPLAY_ORIENTATION_0 = 0, DISPLAY_ORIENTATION_90 = 1, DISPLAY_ORIENTATION_180 = 2, DISPLAY_ORIENTATION_270 = 3 }; /** * Describes the different type of viewports supported by input flinger. * Keep in sync with values in InputManagerService.java. Loading
include/input/TouchVideoFrame.h +0 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ #include <stdint.h> #include <sys/time.h> #include <ui/DisplayInfo.h> #include <vector> namespace android { Loading