10376 Commits

Author SHA1 Message Date
Nikita Iashchenko
ad2026640c Merge changes from topic "icu65.1-upgrade"
* changes:
  Regenerate LocaleDataTables.cpp
  Update API surface for ICU 65.1
2019-12-20 11:14:44 +00:00
Nikita Iashchenko
7b085ddae0 Regenerate LocaleDataTables.cpp
LocaleDataTables.cpp was regenerated running the following command
(should be run from frameworks/base):

$ ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp

Test: m droid
Change-Id: If180ff22a74b485cc3cca34a3f9ba98c826a2210
2019-12-19 19:36:50 +00:00
Victor Chang
dbd6c5e267 Add per-file ownership to libs/androidfw/LocaleDataTables.cpp
Test: treehugger
Change-Id: I61366a576e75137cef2b6607cd860cfd16c23869
2019-12-19 15:55:52 +00:00
Victor Chang
e84c6b50c2 Regenerate LocaleDataTables.cpp
LocaleDataTables.cpp is outdated due to ICU update over the years

Test: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP
Test: m droid
Change-Id: I21918cc0f50c7347e514dc7b015607e19cffb377
2019-12-16 15:31:09 +00:00
Colin Cross
f4e74b8fa0 Fix fallthrough warning
Fix a single fallthrough warning and re-enable -Wimplicit-fallthrough.

Test: m libhwui
Change-Id: I850f53f717417f70c9d0416176d03fd64473d1ba
2019-10-31 13:47:42 -07:00
Nick Desaulniers
0b6b756f3d Merge "[frameworks][base][hwui] fix -Wimplicit-int-float-conversion"
am: f7cf0dfa55

Change-Id: I8e7398797b53eab6efdebf7b5e83f6573ee5f83c
2019-10-15 21:30:43 -07:00
Treehugger Robot
f7cf0dfa55 Merge "[frameworks][base][hwui] fix -Wimplicit-int-float-conversion" 2019-10-16 03:48:23 +00:00
Yi Kong
6fecf93fea Merge "[hwui] Remove -Wno-missing-braces"
am: d6e30691e5

Change-Id: I63d4d6b012bc5408758040f91702d46f811d99fa
2019-10-14 18:35:11 -07:00
Yi Kong
9a283f69a0 Merge "Disable the new pass manager for libhwui"
am: 3268a5ec1a

Change-Id: I164d3eacf5f955568724557c571d0588e7f100a4
2019-10-14 16:25:12 -07:00
Pirama Arumuga Nainar
c1610d3c95 [hwui] Remove -Wno-missing-braces
The Clang bug that caused this silencing has been fixed for a while.

Test: mmma frameworks/base/libs/hwui
Change-Id: Ia03f7c223f95a51fbda70dbbbabf4821eaef74ca
2019-10-14 10:52:54 -07:00
Yi Kong
304d4bd65d Disable the new pass manager for libhwui
Clang is producing non-deterministic result when the new pass manager is
enabled.  Turn it off as a temporary workaround.

Test: presubmit
Bug: 142372146
Change-Id: Ie21d97c0fe6770b0ae9ec103133b940b1eb8a220
2019-10-14 10:52:37 -07:00
Nick Desaulniers
19ae5f9ac9 [frameworks][base][hwui] fix -Wimplicit-int-float-conversion
DIRTY_MAX cannot be represented precisely in an IEEE 754 single
precision float.  Calls to DamageAccumulator::dirty() that pass
DIRTY_MAX thus result in an implicit cast that results in imprecision.
Add one to the DIRTY_MAX constant so that its value can be precisely
representing in a single precision float.

Alternatively, we can accept the imprecision via explicit casts in
multiple call sites.

Bug: 139945549
Test: mm
Change-Id: I38b2942f976ad05af2d0e45d1a9fe4214e759a02
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-10 20:22:44 +00:00
Stan Iliev
b7cdf14a1f Merge "Improve comparison of fractions"
am: 0517cd144f

Change-Id: I211f5ea4546e400b328c244908e23cb7c375eb04
2019-10-01 10:49:14 -07:00
Stan Iliev
f2539c3bac Improve comparison of fractions
Fraction comparison does not work for 143.999985 and 2.000001.
This CL resolves this corner case.

Bug: 140778647
Test: pass CTS
Change-Id: I7e39ba822167a3c36c628255a4c79b1ade976929
(cherry picked from commit 019adb02932a889ebd200a1de8b8c4780b1477dc)
2019-09-30 10:32:04 -04:00
Stan Iliev
7b5a8dfe4a Merge changes from topic "textureview_readback"
am: fc733e1d5e

Change-Id: Ic1308ec895badad285cc90a370de8d844cad4250
2019-09-27 10:57:36 -07:00
Treehugger Robot
fc733e1d5e Merge changes from topic "textureview_readback"
* changes:
  Improve integer aligned coordinate detection
  Improve logic when to use filtering in readback and TextureView
2019-09-27 17:36:31 +00:00
Jeongik Cha
dee02a0fae Merge changes from topic "system_ext"
am: a828ee6442

Change-Id: I2b636d0c54c932342586de47a38c16e93bf978e8
2019-09-26 15:40:26 -07:00
Treehugger Robot
a828ee6442 Merge changes from topic "system_ext"
* changes:
  Consider overlay in system_ext as system's
  Support /system_ext partition
2019-09-26 22:18:07 +00:00
Stan Iliev
819698bb99 Improve integer aligned coordinate detection
65.9998 should be detected as integer aligned. Before this CL
only 65.0001 was detected as an integer.

Test: Pass TextureViewTest#testSamplingWithTransform
Bug: 137682518
Change-Id: I65e650f50040ab56d2237c14d5d8ee191349b93e
(cherry picked from commit 694f3e4a5518e8e3fe025a5a04e9088fe41df97d)
2019-09-26 13:29:17 -04:00
Stan Iliev
25057111ca Improve logic when to use filtering in readback and TextureView
Detect scaling in screen coordinates, which allows to turn off
filtering for some rect-to-rect matrices (90/270 rotation, scaling).

Test: CTS test coverage expanded in testSamplingWithTransform
Bug: 135895166
Change-Id: Icf5c45fa62bb7a96c5f5464d312bf98a653bc78d
(cherry picked from commit 134372dba9cbe44684c50560b741c7e7b5a29fef)
2019-09-26 13:22:41 -04:00
John Reck
fa06f3baca Increase dequeueBuffer timeout
Timeout recovery isn't working properly, so increase it
to avoid any false-positives from something like a
slow screen-on

Bug: 137509524
Test: none
Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
Merged-In: Ic4fae04b41f71600479f9557e334f67c27851db4
2019-09-26 02:21:50 +00:00
Jeongik Cha
3e725f2224 Consider overlay in system_ext as system's
When there is overlay package in system_ext, turn on POLICY_SYSTEM_PARTITION.
In other words, overlay pacakge in /system_ext is considered as system's one

Test: mv vendor/overlay/framework-res__auto_generated_rro.apk system_ext/overlay
      and then check if it works properly.
Bug: 136715327

Change-Id: Ib225368eae41203a8630f4310d26e9cf1afa706a
Merged-In: Ib225368eae41203a8630f4310d26e9cf1afa706a
(cherry picked from commit cba9579158cc70bf8eadb6e8a239e0ab2dc073d2)
2019-09-23 22:01:29 +00:00
John Reck
f9af5e03ad Merge "TextureVuew rebind GL texture, if AHB content has changed"
am: 6c5f83aaa3

Change-Id: Ia8894e023660fe9ae8f8621685c0ae91cf750d12
2019-09-23 13:22:56 -07:00
Stan Iliev
419b4095ba TextureVuew rebind GL texture, if AHB content has changed
Bug: 138674291
Test: Ran apps with TextureView and CTS
Change-Id: Ieecf7daf160761de719356644ddaeda8f9c068e1
2019-09-20 14:20:23 -07:00
TreeHugger Robot
ad324a3d7e Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master 2019-09-11 20:31:32 +00:00
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07:00
Colin Cross
f74defb808 Adapt to google::protobuf::uint64 type change
Protobuf 3.9.1 redefines google::protobuf::uint64 from unsigned long
long to uint64_t, which is sometimes unsigned long and sometimes
unsigned long long.  Use PRIu64 to print it, and add an implementation
of ProtoOutputStream::write for long.

Bug: 117607748
Test: m checkbuild
Change-Id: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
Merged-In: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
2019-09-06 13:54:11 -07:00
Yi Kong
ae6248d35b Merge "Fix reversed logic"
am: 946e857c71

Change-Id: I22194d1d2923170a224ad6d782dd8155e957ebe3
2019-08-30 07:16:21 -07:00
Yi Kong
f69c334dea Fix reversed logic
To check if a value falls in a range, it should be
  a >= MIN && a <= MAX
instead of
  a >= MIN || a <= MAX

Found by an experimental Clang warning change,
https://reviews.llvm.org/D66044.

Test: presubmit
Change-Id: I91e2a04687285d9311fd831197c73af38ec8379c
2019-08-30 02:09:30 +00:00
John Reck
6769f25c17 Merge "Increase dequeueBuffer timeout" into qt-r1-dev
am: 5ab5cd7aa2

Change-Id: Ia32a0b1177a5e7160680e1d4c9c40ff23075c431
2019-07-22 12:34:30 -07:00
John Reck
3f333d6d72 Increase dequeueBuffer timeout
Timeout recovery isn't working properly, so increase it
to avoid any false-positives from something like a
slow screen-on

Bug: 137509524
Test: none
Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
2019-07-18 10:48:49 -07:00
Ryan Mitchell
18e2a06453 Merge "Set idmap2 binary uid and gid after forking" into qt-dev am: ebad9125c8
am: e9acb9c566

Change-Id: I30d650e7d5548f6e53f37c22f62e4de244145bdc
2019-07-02 11:53:41 -07:00
Ryan Mitchell
e9acb9c566 Merge "Set idmap2 binary uid and gid after forking" into qt-dev
am: ebad9125c8

Change-Id: I13b16878cad1cb742c0b417fa09ec406e8f1bf2d
2019-07-02 10:52:24 -07:00
Ryan Mitchell
3fc3c813ff Merge "Set idmap2 binary uid and gid after forking" into qt-dev
am: ebad9125c8

Change-Id: Ia4a881fc50118e15c4b6cbe66164c76e7b765298
2019-07-02 10:32:13 -07:00
Ryan Mitchell
a8f13667c2 Set idmap2 binary uid and gid after forking
The file permissions of the idmap2 binary are currently not set
correctly when the system forks and execs the idmap binary during
zygote. This chnages sets the uid and gid after forking to the same uid
and gid of the parent process.

Bug: 134897503
Test: device boots and generates idmap
Change-Id: Ic7fac49e5982f3c47713603b905c3a6be117a05b
2019-07-01 21:19:21 +00:00
Elliott Hughes
0566225cb8 Merge "Move off ZipString and over to std::string/std::string_view as appropriate." into qt-dev-plus-aosp
am: ee1c95f060

Change-Id: Ic87fff08eaf240bbaa370432b6955520206d3882
2019-06-17 16:26:05 -07:00
Elliott Hughes
a65cae9e7f Move off ZipString and over to std::string/std::string_view as appropriate.
(Cherrypick to AOSP master, resolving merge conflicts.)

Bug: http://b/129068177
Test: treehugger
Change-Id: Ib46761d89772d3a3c655a39df573fd305c117d19
Merged-In: Ib46761d89772d3a3c655a39df573fd305c117d19
2019-06-17 16:05:19 -07:00
Elliott Hughes
78de4f999d Move off ZipString and over to std::string/std::string_view as appropriate.
Bug: http://b/129068177
Test: treehugger
Change-Id: Ib46761d89772d3a3c655a39df573fd305c117d19
2019-06-17 16:47:58 +00:00
John Reck
b57389a7f2 Merge "Fix setPositionListener race condition" into qt-dev am: 2c52298236
am: 76925e1210

Change-Id: I5dc7565f6fb7faae96e54bafcfa2a1bdcf3b389e
2019-06-12 18:14:51 -07:00
John Reck
282048a2b0 Merge "Fix setPositionListener race condition" into qt-dev
am: 2c52298236

Change-Id: Iea1515f11646a38bf7252ac7ee547296aeddced1
2019-06-12 18:10:47 -07:00
John Reck
76925e1210 Merge "Fix setPositionListener race condition" into qt-dev
am: 2c52298236

Change-Id: I93fb56c0e171ffc291962a3aa872ffb650545762
2019-06-12 18:01:47 -07:00
John Reck
097e1d3330 Fix setPositionListener race condition
Fixes: 131625115
Test: atest android.view.cts.SystemGestureExclusionRectsTest android.view.cts.SurfaceViewSyncTest android.uirendering.cts.testclasses.SurfaceViewTests

Change-Id: Ia357ff6fa5d5fe1e152abc23bbd6d8051cfd7aa7
2019-06-12 15:41:50 -07:00
Ady Abraham
8c219250c7 Merge "DisplayEventDispatcher: use eConfigChangedDispatch" into qt-r1-dev
am: 619946fdc4

Change-Id: I98ecea42a933ed20ddd7b085baa88c277e53e353
2019-06-07 18:36:52 -07:00
Ady Abraham
9c501aad4b DisplayEventDispatcher: use eConfigChangedDispatch
In order to get DISPLAY_EVENT_CONFIG_CHANGED, eConfigChangedDispatch needs
to be used when creating DisplayEventDispatcher.

Bug: 131688378
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest
Test: trigger config change and observe logcat
Change-Id: I0de8037ee5b024b7d9729750f582be919087be41
2019-06-07 10:26:47 -07:00
Ryan Savitski
1bbf28fa59 incident report args: add setter stubs & constant aliases
Bug: 130543265
Merged-In: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
Change-Id: I855002050bf8a9f43b997060b1990f26eec597c7
2019-06-07 13:39:53 +01:00
Nader Jawad
768c1a86e0 Merge "Brought back compatibility check for falling back on dest_out whenever clear is used as a blend mode to draw bitmaps" into qt-dev
am: 1f915b0d33

Change-Id: I69b496f9fac8f8443ec041f2a8f938cdfa5f3b6c
2019-05-30 16:54:06 -07:00
Nader Jawad
476d0d1605 Brought back compatibility check for falling back on dest_out
whenever clear is used as a blend mode to draw bitmaps

Modified SkiaRecordingCanvas to call filterBitmap instead of
filterPaint in order to conduct the necessary compatibility checks
to use dest_out instead of clear whenever a bitmap is drawn

Test: In progress..
Bug: 131689368
Change-Id: I56d015e773b312cac948d850ca2997d8df0cc66d
Merged-In: I56d015e773b312cac948d850ca2997d8df0cc66d
2019-05-30 15:51:37 -07:00
Gao Shuo
0832ce87d7 Merge "Avoid fake high input latency while vsync drifting" am: 3996c9eb72
am: 151f38fe89

Change-Id: Ida223a2af7a0669cf495bac8ccb8fa90414d159d
2019-05-28 14:58:09 -07:00
Gao Shuo
7e05ff35fa Avoid fake high input latency while vsync drifting
Usually isTrippleBuffered should be true when mSwapDeadline bigger
than IntendedVsync. However, vsync could be drifting on some platforms,
which make isTrippleBuffered to be true and report a fake high input
latency.

So add a small threshold to avoid this case.

Test: Manually
Change-Id: Ib6ff1046cfb94f89f4985361b84ad2d34850f783
Signed-off-by: Gao Shuo <shuo.gao@intel.com>
Signed-off-by: Wu Zhongmin <zhongmin.wu@intel.com>
Signed-off-by: Zhu Tingting <tingting.zhu@intel.com>
2019-05-27 14:14:57 +08:00
John Reck
e496882e8f Merge "Log less" into qt-dev
am: 7ede526835

Change-Id: I64811f0ee057b51446b2d1c1e9972631de1494a1
2019-05-24 17:17:29 -07:00