Commit Graph

448938 Commits

Author SHA1 Message Date
Sarah Chin
20c0cd6b4c Merge changes from topic "phone_info_5g"
* changes:
  Expose NR State string method for use in RadioInfo
  Fixed unreadble debug messages
2020-07-23 19:08:50 +00:00
Hall Liu
df9bf16543 Merge "Skip carrier priv check for trusted UIDs" 2020-07-23 18:08:03 +00:00
Treehugger Robot
dce2f1c04b Merge "Update language to comply with Android’s inclusive language guidance" 2020-07-23 17:56:04 +00:00
Sarah Chin
f39b4cbec1 Expose NR State string method for use in RadioInfo
Test: build
Bug: 160825855
Change-Id: Ie709cad1c94ad204c46a559d316f45da16c3541c
Merged-In: Ie709cad1c94ad204c46a559d316f45da16c3541c
2020-07-23 09:45:26 -07:00
Jack Yu
c42d38c3ea Fixed unreadble debug messages
Fix: 158875554
Test: Manual
Change-Id: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
Merged-In: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
2020-07-23 09:45:05 -07:00
Leon Scroggins
da4dc882af Merge "Update graphics language to comply with Android’s inclusive language guidance" 2020-07-23 13:25:17 +00:00
vichang
ed7ca56dfc Merge "Add vichang into OWNER of android.text.format" 2020-07-23 11:50:17 +00:00
Treehugger Robot
c4a477881e Merge "Update language to comply with Android’s inclusive language guidance" 2020-07-23 09:19:01 +00:00
Marvin Ramin
0bb72bdf03 Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

Bug: 161896447
Bug: 161846328
Change-Id: Ib4ed8e266f80b9b1b9377f6bbbdcaeceea6ed3f0
Test: n/a - documentation changes only
2020-07-23 07:07:56 +00:00
Seigo Nonaka
f47561320f Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Test: atest TextViewTest
Change-Id: I83f253f6edfb2724972793b3495835540b7b52e4
2020-07-22 22:54:14 -07:00
Hall Liu
f470edeff3 Skip carrier priv check for trusted UIDs
Checking carrier privileges for UIDs with lots of shared apps can incur
a significant performance hit. For UIDs that are fixed and trusted
(system and phone), skip the permission check and always allow.

Bug: 160971853
Test: manual verification -- observed lower rate of cache misses for
getPackageInfo from com.android.phone.

Change-Id: I1399cab579308479d7cf191b8795441cbcd3ff65
Merged-In: I1399cab579308479d7cf191b8795441cbcd3ff65
2020-07-22 18:06:47 -07:00
Yifan Hong
af04506edd Merge changes from topic "runtime_skipcache"
* changes:
  VINTF: Remove skipCache boolean.
  Debug.isVmapStack reads kernel configs only
2020-07-22 20:06:39 +00:00
Shuo Qian
059739f34a Merge "Add permission QUERY_ALL_PACKAGES into WAPPushManager" 2020-07-22 19:31:53 +00:00
vichang
3f89b904a8 Merge "Remove @CorePlatformApi LocaleData usage in frameworks" 2020-07-22 19:13:44 +00:00
Shuo Qian
cb1c40c826 Add permission QUERY_ALL_PACKAGES into WAPPushManager
Test: Sanity
Bug: 161319976
Change-Id: I931c5a7c5e9c5ee3fd72fa2c0a29df48073fd90c
Merged-In: I931c5a7c5e9c5ee3fd72fa2c0a29df48073fd90c
(cherry picked from commit 11bbbee915)
(cherry picked from commit 647d9fb723)
2020-07-22 17:59:05 +00:00
Elliott Hughes
4a724fc1ee Merge "Remove the watchdog's fd tracker." 2020-07-22 17:15:46 +00:00
Anton Hansson
6b54515b61 Merge "Add bp-based disting of android stubs" 2020-07-22 17:12:42 +00:00
Leon Scroggins III
f663182d52 Update graphics language to comply with Android’s inclusive language guidance
Bug: 161896447
Test: make

See https://source.android.com/setup/contribute/respectful-code for reference

Change-Id: I57b81fb5fd2177fbf96f9cc900097f7da1955fca
2020-07-22 13:00:12 -04:00
Anton Hansson
a920550096 Add bp-based disting of android stubs
This used to be done in Make, but with bp-based dist now supporting
tags we can convert these java_library { hostdex: true } libraries
to dist their classes.jar rather than dex jar.

Bug: 161214753
Test: diff results of `m sdk dist`
Merged-In: Id54507e297b5c57d1ce58f14eb347e7661a5328d
Change-Id: Id54507e297b5c57d1ce58f14eb347e7661a5328d
2020-07-22 16:20:46 +00:00
Anton Hansson
20b012282e Merge "Add explicit dep on services.backup" 2020-07-22 15:55:41 +00:00
Anton Hansson
b2fb9636b9 Add explicit dep on services.backup
android_robolectric_test is having some implicit deps removed
from it, so add in what we depend on directly.

Test: m RunFrameworksServicesRoboTests
Change-Id: Ice2abeb3f4d031cfe15ce919b750d6de59316c1f
Merged-In: Ice2abeb3f4d031cfe15ce919b750d6de59316c1f
2020-07-22 15:38:33 +01:00
Treehugger Robot
71b90ae022 Merge "Add carrier config for NR timer reset" 2020-07-22 10:06:59 +00:00
Sergey Nikolaienkov
e3548b2259 Merge "Make Shell require permission for a new CTS test" 2020-07-22 06:17:36 +00:00
Yifan Hong
9e55b45cdf VINTF: Remove skipCache boolean.
Test: pass
Change-Id: Iec1aa7f7c2ef203ff2f1fd6adb456baec24c075a
2020-07-21 17:28:12 -07:00
Yifan Hong
85429d850f Debug.isVmapStack reads kernel configs only
... but not other runtime VINTF info. This may or may
not fix the nullptr exception when accessing getRuntimeInfo().

In either case, this change should improves code health in general:
- it avoids reading things it doesn't need
- it avoids copying the map

Bug: 151092221
Test: m libandroid_runtime -j

Change-Id: I6cb9052eb56fd83ef7ee81751d9791533a36aeed
(cherry picked from commit 77c1f592fa)
Merged-In: I6cb9052eb56fd83ef7ee81751d9791533a36aeed
2020-07-21 17:26:14 -07:00
Treehugger Robot
3e21dc8b70 Merge "Add KEYCODE_CAPTIONS mapping to LKC KEY_SUBTITLE" 2020-07-21 20:48:06 +00:00
Yifan Hong
b888b08ffe Merge changes Iefd5b12b,I6907880a
* changes:
  Add *_dlkm notice files.
  Change LicenseHtml search path from product_services -> system_ext
2020-07-21 19:26:43 +00:00
Yifan Hong
6c0406f7a0 Add *_dlkm notice files.
Two new partitions are created in Android. New notice files are placed
in these new partitions.

Test: none
Bug: 156020364
Change-Id: Iefd5b12b3bbb449b189ade313157e80f36d99c88
2020-07-21 19:26:14 +00:00
Aman Gupta
6c984953ea Add KEYCODE_CAPTIONS mapping to LKC KEY_SUBTITLE
From https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h,
KEY_SUBTITLE is near the TV codes. Note that 0x172 == 370.

  #define KEY_CHANNEL		0x16b
  #define KEY_FAVORITES		0x16c
  #define KEY_EPG			0x16d
  #define KEY_PVR			0x16e	/* Media Select Home */
  #define KEY_MHP			0x16f
  #define KEY_LANGUAGE		0x170
  #define KEY_TITLE		0x171
  #define KEY_SUBTITLE		0x172
  #define KEY_ANGLE		0x173
  #define KEY_FULL_SCREEN		0x174	/* AC View Toggle */
  #define KEY_ZOOM		KEY_FULL_SCREEN

You can also see on https://www.kernel.org/doc/html/v4.9/media/uapi/rc/rc-tables.html it is listed in the "Movie play control" section:

  KEY_SUBTITLE	Allow changing the subtitle

Change-Id: I7690269cddd00b787a939f87ba651db38f1160ac
Signed-off-by: Aman Gupta <aman@tmm1.net>
2020-07-21 12:09:52 -07:00
Max Spector
01e469da99 Merge "Fuzzer for libandroidfw" 2020-07-21 17:44:23 +00:00
vichang
3bd9f08ae5 Merge "Use DateFormatSymbols directly instead of using LocaleData" 2020-07-21 16:14:26 +00:00
Treehugger Robot
1710dbd097 Merge "Add KEYCODE_LAST_CHANNEL mapping to LKC KEY_LAST" 2020-07-21 15:32:16 +00:00
Anton Hansson
58095aa504 Merge "Remove service stub dep on default libs" 2020-07-21 15:16:44 +00:00
Eduardo Rocha
935178e2fd Fuzzer for libandroidfw
Bug: 161463861
Test: Builds and runs on host and device.

Change-Id: I78b19376275dc5a29afcab48c70eea479bff8728
2020-07-21 13:51:37 +00:00
Anton Hansson
4304e60655 Remove service stub dep on default libs
Not specifying any sdk_version defaults the library to building
against the platform internals. We do not want to build the stubs
against the platform internals, as that risks leaking internals
in the stubs.

Follow what the other stubs are doing, which is to build against
no default libs, and compiling with java version 1.8.

Bug: 158850553
Test: m
Change-Id: I310842747422b108ac2a1fcf11afac5c323ed5b1
2020-07-21 14:37:25 +01:00
vichang
3db0441e5c Merge "Remove the duplicated constant declaration in DateUtilsBridge" 2020-07-21 09:11:09 +00:00
vichang
6e706c4cee Merge changes from topic "DateIntervalFormat"
* changes:
  Make a copy of DateIntervalFormat from libcore - part 2
  Make a copy of DateIntervalFormat from libcore
2020-07-21 08:59:57 +00:00
Victor Chang
bbe4493efb Add vichang into OWNER of android.text.format
Most android.text.format classes are wrappers of ICU4J or libcore.

Test: n/a
Change-Id: I3269efece738cfc7344d1823f7a79677f6cb93fc
2020-07-20 21:17:48 +01:00
Victor Chang
55a6efbfd9 Remove @CorePlatformApi LocaleData usage in frameworks
They can be replaced by the public API provided by ICU4J instead.
No extra layer of caching equivalent to the LocaleData cache is
added because ICU4J has caches instances, e.g. DateFormatSymbols,
etc.

Bug: 160606356
Test: atest FrameworksCoreTests:android.text.format
Change-Id: I07048e0e1a4835d2744b7fce6a5ed79a112e456b
2020-07-20 21:09:40 +01:00
Victor Chang
c744bd5f64 Use DateFormatSymbols directly instead of using LocaleData
Bug: 160606356
Test: atest FrameworksCoreTests:android.text.format
Change-Id: Id5d70328ab146d439ed45135e0fa9d1b9cc95257
2020-07-20 21:09:40 +01:00
Victor Chang
6a691eeec7 Remove the duplicated constant declaration in DateUtilsBridge
Bug: 160606356
Test: m droid FrameworksCoreTests
Change-Id: Ifa79b2a29c6fc0c767337efe569da2d2ba29f959
2020-07-20 21:09:40 +01:00
Victor Chang
3a3a8ada42 Make a copy of DateIntervalFormat from libcore - part 2
Bug: 160606356
Test: atest FrameworksCoreTests:android.text.format
Change-Id: I4c4253c707211f2a5ee0a11da107ab1dd6c4fab8
2020-07-20 21:09:40 +01:00
Michael Wright
e1c169c983 Merge "Fix color mismatch of pointers" 2020-07-20 17:28:16 +00:00
SongFerngWang
a88f75d097 Add carrier config for NR timer reset
KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL:
Whetherdevice reset all of NR timers when device camped on a
network that haven't 5G capability and RRC currently in IDLE state.

Bug: 160365713
Test: build pass.
Change-Id: I9802b8712798054a85307e549fb665bc85166311
Merged-In: I9802b8712798054a85307e549fb665bc85166311
2020-07-20 12:59:30 +08:00
Treehugger Robot
8857e6b645 Merge "Enable clang-format for frameworks/base" 2020-07-18 02:24:02 +00:00
Garfield Tan
4c2d3daf6a Enable clang-format for frameworks/base
Copy and paste internal setup to AOSP. Not include folders not in AOSP
yet.

Bug: None
Test: repo upload
Change-Id: I08b8c6d1bae7d1954847c207ef8e6d80373b2d05
Merged-In: I08b8c6d1bae7d1954847c207ef8e6d80373b2d05
2020-07-17 18:43:18 -07:00
Jeongik Cha
a12966975c Change LicenseHtml search path from product_services -> system_ext
product_services partition is not used anymore, its name is changed to
system_ext, so following this, change path in LicenseHtml

Test: m
Bug: 134359158
Change-Id: I6907880ab8af456358fb3420b74dcd3e409b41f3
(cherry picked from commit 2f2fe4f72a)
Merged-In: I6907880ab8af456358fb3420b74dcd3e409b41f3
2020-07-17 16:01:36 -07:00
Elliott Hughes
6e75720db3 Remove the watchdog's fd tracker.
The existence of both fdtrack and the older OpenFdMonitor is confusing
to partners, and not obviously useful because the fdtrack limit is so
much lower than the OpenFdMonitor limit (now that the default
RLIMIT_NOFILE is 32Ki).

Bug: https://issuetracker.google.com/161199049
Test: builds
Change-Id: I86436f287d0e25d1dfae95b915beb78c88dccce2
Merged-In: I86436f287d0e25d1dfae95b915beb78c88dccce2
2020-07-17 21:15:07 +00:00
Elliott Hughes
285dfb3126 Merge "Zygote: Add Arm pointer authentication keychange support." 2020-07-17 18:01:19 +00:00
Anton Hansson
88a03065a2 Merge "Remove always-empty variable" 2020-07-17 08:51:29 +00:00