Ok, I have just checked out one new cupcake and built it with the patches I posted. I did not see any problem. I attached my screen. Also, I apply the patch 0002*. It works as well.
I think your build env has issues. You may need to try to build the standard cupcake without any patches first to isolate the problem.
Yi
ote: Recompile with -Xlint:deprecation for details.
Copying out/target/common/obj/APPS/ApiDemosTests_intermediates/classes-full-debug.jar
Copying: out/target/common/obj/APPS/ApiDemosTests_intermediates/classes.jar
target Dex: ApiDemosTests
target Package: ApiDemosTests (out/target/product/eee_701/obj/APPS/ApiDemosTests_intermediates/package.apk)
Finding NOTICE files: out/target/product/eee_701/obj/NOTICE_FILES/hash-timestamp
Combining NOTICE files: out/target/product/eee_701/obj/NOTICE.html
gzip -c out/target/product/eee_701/obj/NOTICE.html > out/target/product/eee_701/obj/NOTICE.html.gz
Target system fs image: out/target/product/eee_701/obj/PACKAGING/systemimage_unopt_intermediates/system.img
tune2fs 1.41.4 (27-Jan-2009)
tune2fs -C 1 out/target/product/eee_701/obj/PACKAGING/systemimage_unopt_intermediates/system.img
tune2fs 1.41.4 (27-Jan-2009)
Setting current mount count to 1
e2fsck -fy out/target/product/eee_701/obj/PACKAGING/systemimage_unopt_intermediates/system.img ; [ $? -lt 4 ]
e2fsck 1.41.4 (27-Jan-2009)
Filesystem did not have a UUID; generating one.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? yes
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: ***** FILE SYSTEM WAS MODIFIED *****
system: 324/816 files (1.9% non-contiguous), 391629/411380 blocks
Install system fs image: out/target/product/eee_701/system.img
Installed file list: out/target/product/eee_701/installed-files.txt
ysun@ysun-desktop:~/android/cupcake_1.5$ ls
bionic bootable build dalvik development external frameworks hardware kernel Makefile out packages prebuilt system vendor
ysun@ysun-desktop:~/android/cupcake_1.5$ cd frameworks/base/
ysun@ysun-desktop:~/android/cupcake_1.5/frameworks/base$ git apply ~/Desktop/0002-fixed-screen-flicking-caused-by-wrong-mouse-location.patch
/home/ysun/Desktop/0002-fixed-screen-flicking-caused-by-wrong-mouse-location.patch:112: trailing whitespace.
RawInputEvent.CLASS_TOUCHSCREEN,
warning: 1 line adds whitespace errors.
ysun@ysun-desktop:~/android/cupcake_1.5/frameworks/base$