Commit Graph

10397 Commits

Author SHA1 Message Date
Tobias Thierer
fa82e757dd OWNERS: tobiast -> ngeoffray.
This CL topic was created via:

  find . -name OWNERS | xargs grep -l tobiast | xargs sed \
  -i 's/tobiast/ngeoffray/g'

Plus appropriate repo start, git commit, repo upload commands:

  while read proj; do croot $proj ; repo start OWNERS-tobiast-ngeoffray ; \
  git commit -F ~/commit-message.txt; croot ; done \
  < ~/owners-projects.txt

  repo upload -t --br=OWNERS-tobiast-ngeoffray

No attempt was made to sort the files after the replacement.

Exempt-From-Owner-Approval: Both old and new owner are on this CL.
Test: Manually inspected the result.
Bug: 152399425
Change-Id: I2f100a71d399a7d4d46ea036fff564ff5c5dbda7
2020-03-26 14:10:06 +00:00
Treehugger Robot
4dc2f8f773 Merge "Fix bugprone-copy-constructor-init warnings" 2020-03-17 19:26:33 +00:00
Chih-hung Hsieh
0dbbb661cf Merge "Fix bugprone-use-after-move warnings" 2020-03-17 18:34:53 +00:00
Chih-Hung Hsieh
3fb38f7fe2 Fix bugprone-copy-constructor-init warnings
* normally a copy constructor should call base copy constructor

Bug: 151109313
Test: WITH_TIDY=1 make
Change-Id: I9677889973178c26cd787a457333877619956b51
2020-03-10 12:58:29 -07:00
Chih-Hung Hsieh
243bc1929b Fix bugprone-use-after-move warnings
Bug: 150783499
Test: WITH_TIDY=1 make
Change-Id: I185cb21521676ddbc4f2b7f098611a2efc7275e6
(cherry picked from commit c658184d36)
Merged-In: I185cb21521676ddbc4f2b7f098611a2efc7275e6
2020-03-06 14:00:53 -08:00
Nikita Iashchenko
7ea3b2164d Regenerate LocaleDataTables.cpp wtih Unicode 13 update
LocaleDataTables.cpp is regenerated with Unicode 13 updates from CLDR.

Bug: 149845726
Test: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP
Test: m droid
Change-Id: Id2d023723b50c1c2f73fe07f46fb9b3cae990752
2020-03-06 11:34:51 +00:00
Automerger Merge Worker
1257bc0b9d Merge "Use String8 ostream from String8.h" am: a9117815ed
Change-Id: Ica1c3b9b672a90b88a398d1fb04cbc55cddce5bd
2020-02-27 23:22:51 +00:00
Steven Moreland
4351d26575 Use String8 ostream from String8.h
Bug: N/A
Test: N/A
Change-Id: If2762ec4a9bb84cca41b1752fe005605eb9b2013
2020-02-26 09:14:29 -08:00
Automerger Merge Worker
6467a114fc Merge "Remove obsolete subdirs and optional_subdirs" am: 2b5484564a
Change-Id: If5b2437f188c641456feea642d456b7af7013044
2020-02-20 11:50:58 +00:00
Anton Hansson
7ede3dd2b3 Remove obsolete subdirs and optional_subdirs
I was looking for documentation of what these mean, but discovered
that these attributes have been obsolete for years.

Test: m
Change-Id: Ifcf47e99d22b1546780968d1030f835173612a27
Merged-In: Ifcf47e99d22b1546780968d1030f835173612a27
2020-02-19 15:27:58 +00:00
Automerger Merge Worker
f1e6950510 Merge "Remove String16 operator<<, now provided in header" am: 35d04c27ee
Change-Id: I225b599e1bb7ba052361c0c0cb926b2c015f7baf
2020-02-11 23:03:21 +00:00
Steven Moreland
849ccdeafe Remove String16 operator<<, now provided in header
Bug: N/A
Test: N/A
Change-Id: Ic0418d81d37726dcfc100ce919b6f79be4077c8a
2020-02-10 15:28:41 -08:00
TreeHugger Robot
8da97bddbd Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master 2020-01-16 18:29:18 +00:00
Yi Kong
2d969e4dfd Revert "Disable the new pass manager for libhwui"
This reverts commit 304d4bd65d.

The new pass manager is not the root cause of non-determinism.

Change-Id: I5c0c44bbefd7f3c0442422f5c718e77b1f18f139
2020-01-15 14:46:57 -08:00
Automerger Merge Worker
3b2fb10faa Merge "Allow zero stride" am: 136a4fc875 am: 878963bef6
Change-Id: Ia91d71e779efe51dd0ef07fa5d75cb3062ace9e7
2020-01-10 20:05:56 +00:00
Anders Frostad Pedersen
d2ba4f36c7 Allow zero stride
For some pixel formats, stride has no meaning.
Take this into account and use buffer width instead.

Bug: 143470518
Change-Id: I728b40803e80c4e534504c5b9db55921bb5e7dbc
Merged-In: I728b40803e80c4e534504c5b9db55921bb5e7dbc
Test: android.graphics.cts.ImageDecoderTest#testConserveMemoryPlusHardware
2020-01-09 23:28:56 +00:00
Automerger Merge Worker
4870a488d4 Merge changes from topic "icu65.1-upgrade" am: ad2026640c am: b1cc7c336b
Change-Id: Idb00177817ea267435bd52a08baba8ee66bc8a17
2019-12-20 12:16:45 +00:00
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
Automerger Merge Worker
b43a2e6740 Merge "Add per-file ownership to libs/androidfw/LocaleDataTables.cpp" am: 073b0dad72 am: 36fac337ad
Change-Id: Ia0b55f46f5b92ee72ac17f8c1a1c76a75ddc51a5
2019-12-19 21:19:21 +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
Automerger Merge Worker
ffbeb382a2 Merge "Regenerate LocaleDataTables.cpp" am: 6658c31b4e am: ccc64a5aef
Change-Id: Ie1c1ae3210049bac2d005ed82b05b838ff25d183
2019-12-17 12:24:11 +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
John Reck
122674a0b5 Merge "Fix for Surface#lockHardwareCanvas lockups" into qt-qpr1-dev
am: d90c8a0f5e

Change-Id: I918abc5c9160c4f0f50b5679b6f8835105c25d84
2019-11-25 14:12:53 -08:00
John Reck
ff299aef20 Fix for Surface#lockHardwareCanvas lockups
By avoiding setting a dequeue buffer timeout we avoid
hitting a different path in BufferQueue that prevents
async behavior from happening. This restores P's
behavior in this path.

Bug: 143860379
Test: repro app in bug
Change-Id: Iffbd9f9e6689a40876ff3aa74c10020e3f09fc6a
Merged-In: Iffbd9f9e6689a40876ff3aa74c10020e3f09fc6a
2019-11-22 19:16:21 +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 019adb0293)
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 694f3e4a55)
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 134372dba9)
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 cba9579158)
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