Commit Graph

88522 Commits

Author SHA1 Message Date
Tony Mak
ae85aae6aa Cleanup TextClassifier APIs
Major changes:
1. ConversationAction is now in top-level.
2. Removed TypeConfig, and repurposed TextClassifier.EntityConfig for
   general use. It would be better to rename it to be something like
   TypeConfig. But just a bad name is probably not worth to deprecate
   the existing APIs.
3. Hints constants are moved to Request object.
4. Action constants are moved to ConversationAction object.

Test: atest TextClassifierTest.java

BUG: 120841922

Change-Id: Ia466aaf4c5050a9c7e404dcd3b295f5ef7e4ce6f
2019-01-14 17:06:00 +00:00
Jorim Jaggi
4a710a85d2 Merge changes I88f7f7e5,If6c1153d
* changes:
  Expand docs for animation listener
  A brave new world for window insets (11/n)
2019-01-14 15:37:23 +00:00
TreeHugger Robot
efad1da2f1 Merge "Update documentation on notification policy access" 2019-01-14 14:35:47 +00:00
Mihai Popa
cf33420452 Merge "Fix TextView#setTextCursorDrawable for resid=0" 2019-01-14 14:35:43 +00:00
Issei Suzuki
9178eee8b1 Merge "Add inheritShowWhenLocked System API to activity." 2019-01-14 14:34:45 +00:00
Julia Reynolds
413ba846b3 Don't allow importance updates for oem locked channels
Test: atest, make sure missed call notifications are no
longer demoted by aosp notification assistant
Change-Id: I80728bae67501d64359e0dac02dca928c34a7e95
Fixes: 122657004
2019-01-14 14:03:55 +00:00
Issei Suzuki
74e1eb2220 Add inheritShowWhenLocked System API to activity.
Let an activity show on top of the lock screen if the activity behind
this can be shown on top of the screen. This is pre-requisite for
showing permission dialog on top of the lock screen only when it makes
sence.

Bug: 109754623
Test: atest server.am.KeyguardTests
Change-Id: Ideaa2b77519649a70c682bc95277e451e149adad
2019-01-14 13:42:24 +01:00
TreeHugger Robot
2baff48b21 Merge "API review correction: rename NAS.onActionClicked -> onActionInvoked." 2019-01-14 12:05:20 +00:00
Mihai Popa
0374b62bbe Fix TextView#setTextCursorDrawable for resid=0
The CL fixes TextView#setTextCursorDrawable, for the case when a zero
drawable resource id is passed. We want to set a null Drawable, but the
Context#getDrawable(0) call was throwing rather than returning null.

Bug: 122742983
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I45bf57002043d7dbe541d76e61fce3f729959fc8
2019-01-14 11:45:36 +00:00
TreeHugger Robot
cf136dd1ff Merge "Add experiment flag for smart suggestions in heads-up notifications." 2019-01-14 11:42:49 +00:00
Eyal Posener
a9cf9c723f Add blocking helper logging
The added logging events are: blocking helper view displayed or
dismissed, any button click within the view, undo clicks and
system suggests of blocking helper.

* Move some of the getLogMaker logic of server's NotificationRecord
  class to the common StatusBarNotification class.
* Use the StatusBarNotification.getLogMaker to produce blocking helper
  logging.
* Add logging in the NotificationInfo for interaction and display of
  the blocking helper view.
* Add logging in the NotificationBlockingHelperManager for system
  suggests of blocking helper.

Bug: 112482290
Test: unittests and manual - viewed produced logs.
Change-Id: I3a5267d55faba21f6668d35ff8aa12deb0dc5921
2019-01-14 10:58:29 +02:00
Gilbert Lee
0b2f7babbb Merge "Adjust maximum accessibility magnification scale from 5x to 8x" 2019-01-14 02:34:29 +00:00
Philip P. Moltmann
5e5c41e549 Have app global connection as to other managers
Regular ...Manager-s connect to the system server hence there is no
problem establishing a permanent connection via
ServiceManager.getServiceOrThrow.

(1)
PermissionControllerManager connects to an app, hence the binding has to
be dynamic. This is done my using the local RemoteService class.

(2)
...Manager-s are per context. Hence when the context goes away all
service connection started for this service are supposed to also be
cleaned up. There is no callback when the context goes away.

(1) and (2) lead to RemoteService connection to still be bound while the
context goes away which causes a service connection leak.

This change emulates the behavior of regular managers by creating a
permanent RemoteService tied to the application context. Of course
interanlly RemoteService itself binds and unbinds dynamically. Still,
now the RemoteService is not bound to a context that goes away and no
connection is leaked.

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
      (this test failed before as settings was crashing due to leaked
      remote service connections)
Change-Id: I5b8a4c62070fcce6e390897d046c4b28998e3952
2019-01-13 11:07:26 -08:00
qinyige
e8754b4652 Merge "Avoid adding node itself as child node." am: e0a34bf17f am: 234076ca37
am: fb9e440baf

Change-Id: Ic682f24666614f9d683fab5c0206540c224888db
2019-01-12 08:24:39 -08:00
qinyige
fb9e440baf Merge "Avoid adding node itself as child node." am: e0a34bf17f
am: 234076ca37

Change-Id: I6f395d4c831a0a7ef60c7704461a071a9ce404f6
2019-01-12 08:14:37 -08:00
qinyige
234076ca37 Merge "Avoid adding node itself as child node."
am: e0a34bf17f

Change-Id: I5b86189d3ad1e3ead4b24f0c15c44d6beb2a0a4b
2019-01-12 07:50:12 -08:00
Treehugger Robot
e0a34bf17f Merge "Avoid adding node itself as child node." 2019-01-12 15:37:43 +00:00
Michal Karpinski
ceeadaed26 Merge "Temporarily whitelist processes to open activities from background when service-based PendingIntent was whitelisted" 2019-01-12 14:20:38 +00:00
Shubang Lu
9af8f281d0 Merge changes I7bfdcbaf,I260b354b,I42ca55eb,If38d5443,I3fbc3368, ...
* changes:
  Atom: initPortInfo when receive hotplug from tx for audiosystem device[1/3]
  handle manual port switching
  Claim Active Source during System Audio Mode init by AVR when the device also has playback type and can't get Active Source.
  Switch away from ARC input when ARC is terminated.
  Request Active Source when ARC is enabled in ArcInitiationActionFromAvr.
  Refactor the Active Source updating logic in CEC devices.
  Fix tests failure on com.android.server.hdmi
  Making functions visible for testing com.android.server.hdmi
  Back out unneeded ag/4808863. Standby has been handled in ag/4881453.
2019-01-12 07:55:38 +00:00
TreeHugger Robot
11d70db8d5 Merge "Update Active Group before creating AuthClient" 2019-01-12 05:13:44 +00:00
TreeHugger Robot
fd1e036205 Merge "Add EXTRA_PERMISSION_GROUP_NAME" 2019-01-12 04:29:33 +00:00
TreeHugger Robot
7fe83b90f7 Merge "Add home and emergency role names." 2019-01-12 04:28:40 +00:00
TreeHugger Robot
dd82865e45 Merge "Prepare to unhide SurfaceControl" 2019-01-12 02:07:01 +00:00
Kevin Chyn
747e29ba94 Update Active Group before creating AuthClient
Change-Id: Ic41c97ca2735eb03629610ef725e0dd5691cfd4e
Fixes: 122582871
Test: follow comment #11 in bug linked above
2019-01-11 17:26:23 -08:00
Hai Zhang
85b762c9c8 Add home and emergency role names.
This change adds the names of the home and emergency roles, which will
be used by Settings.

Bug: 110557011
Test: build
Change-Id: I40bb0e021232acff62a32e0bdc24a04ff9ec6ba8
2019-01-11 14:35:10 -08:00
Robert Carr
a7827f7b5e Prepare to unhide SurfaceControl
Bug: 111297488
Test: Builds
Change-Id: Ieb38ee12153241e94fcebf6b818be5e12cdd8228
2019-01-11 13:38:56 -08:00
Eugene Susla
40335c1be9 Merge "Mirgate default SMS app handling to RoleManager" 2019-01-11 21:23:34 +00:00
Christine Franks
cf42497af1 Merge "Move global grayscale to ColorDisplayService" 2019-01-11 20:35:09 +00:00
Winson Chung
fb922e9bac Merge changes from topic "prediction_suggestion_services"
* changes:
  Initial commit of Content Suggestions (overview long press) Manager.
  Adding initial implementation of Prediction client/service API
2019-01-11 20:21:19 +00:00
TreeHugger Robot
e433ab6ee8 Merge "Add ApplicationInfo.isEncrpytionAware() as a system API." 2019-01-11 19:57:48 +00:00
Kweku Adams
21909c112b Merge "Moving BatterySaverPolicy into batterysaver directory." 2019-01-11 19:41:14 +00:00
Svetoslav Ganov
9a788837ef Merge "Historical app ops." 2019-01-11 18:48:55 +00:00
Amy
85bff85f2c Back out unneeded ag/4808863.
Standby has been handled in ag/4881453.

ag/5112445

Bug: 113288856

Test: local test.
Change-Id: I2dd4a8fe8478cc35f21de8a1890d6d92b8010455
2019-01-11 10:27:03 -08:00
Gustav Sennton
ced1d00d82 API review correction: rename NAS.onActionClicked -> onActionInvoked.
Bug: 120842160
Test: build Android
Change-Id: I0d673871a6d673eaca60aedf452fa68fd9855954
2019-01-11 17:57:50 +00:00
Christine Franks
09c229e6bb Move global grayscale to ColorDisplayService
Bug: 111215474
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: I9b72d53b2614f225422f15f3b4018383d75071cd
2019-01-11 09:36:48 -08:00
Jorim Jaggi
98c756513d Expand docs for animation listener
Test: builds
Bug: 118118435
Change-Id: I88f7f7e5943e1165868052db03423121fa548152
2019-01-11 18:19:16 +01:00
Jorim Jaggi
02a741f7a9 A brave new world for window insets (11/n)
Implement animation listeners

Test: CTS will be added in the future
Bug: 118118435
Change-Id: If6c1153da007b80859485ecbcdc1610d1d82373e
2019-01-11 18:18:50 +01:00
Dianne Hackborn
5d55a4c907 Merge "Fix issue #122615120: Add bind flag to require associations" 2019-01-11 17:09:10 +00:00
Garfield Tan
0c81667a08 Merge "Drop stale activity configuration updates." 2019-01-11 17:06:39 +00:00
Zhi An Ng
a8f68e24b1 Merge "Do not load xml metadata for unchanged packages in RegisteredServicesCache" 2019-01-11 17:05:47 +00:00
Nandana Dutt
5adab037d7 Merge "Add a privileged API for capturing and consuming bugreports" am: c2b8bc0a7d
am: 98eef9a909

Change-Id: Ic2cc853f1566bdb5796c233538792cb0618ef1bc
2019-01-11 07:46:45 -08:00
Nandana Dutt
98eef9a909 Merge "Add a privileged API for capturing and consuming bugreports"
am: c2b8bc0a7d

Change-Id: Ic7fa25d628b95b9cce862bb2728441623de6c70b
2019-01-11 07:33:11 -08:00
TreeHugger Robot
2a68b63aa6 Merge "Add secure setting for custom clock face selection." 2019-01-11 14:54:26 +00:00
Alexey Kuzmin
b0e7c48c8b Merge "Split ring and notification vibration settings" 2019-01-11 13:51:16 +00:00
Nandana Dutt
3386fb7172 Add a privileged API for capturing and consuming bugreports
The API is mostly implemented; except for hooking up the listener
and handling an already running bugreport.

BugreportManager is the handle to the new API exposed to apps.

Generating bugreports requires root privileges. To limit the footprint
of the root access, the actual bugreport generation in Dumpstate binary,
is accessed as a oneshot service and dies after it finishes
running.

System server accesses Dumpstate via a binder interface since it does
not have root privileges.

Starting a oneshot service is done via setting a system property, which
needs to be done from system server. BugreportManagerService is the
new system server service that does this. BugreportManager calls into
BugreportManagerService via a binder interface, since the former is in
the app's process.

Both app to system server as well as system server to native service
calls are via implementations of IDumpstate binder interface.

Bug: 111441001
Test: builds. Flashed & verified it boots.
Test: wrote a test client (not included) and verified invoking
startBugreport works.

Change-Id: I4abeb753388c055c36ae0dd916af1ec8d40b7bf0
Merged-In: I4abeb753388c055c36ae0dd916af1ec8d40b7bf0
2019-01-11 13:29:09 +00:00
TreeHugger Robot
cbdbc4d9c6 Merge "Add a privileged API for capturing and consuming bugreports" 2019-01-11 12:37:33 +00:00
Gustav Sennton
3f3eaff7c0 Add experiment flag for smart suggestions in heads-up notifications.
With this CL we add a new key-value pair to
smart_replies_in_notifications_flags to control whether smart
suggestions should be turned on for heads-up notifications. By default
the suggestions are turned ON.

Bug: 122351821
Test: atest SmartReplyConstantsTest
Test: Run "adb shell settings put global
smart_replies_in_notifications_flags show_in_heads_up=false" and ensure
heads-up notifications do not contain smart suggestions.
Change-Id: I84292c10a4545112b0e993af33bb01a8cc18ce23
2019-01-11 12:20:41 +00:00
Chalard Jean
fc758be231 Merge changes from topic "IPMS1" am: 3627deac88 am: 54d91e605c
am: 2304c7c508

Change-Id: I6908f68b1b9e7079384c4cc9f11c4e46cce694ce
2019-01-11 04:13:38 -08:00
Chalard Jean
2304c7c508 Merge changes from topic "IPMS1" am: 3627deac88
am: 54d91e605c

Change-Id: I2541996b9bfe338acabac858fdea0ad89d55df5b
2019-01-11 03:53:57 -08:00
Jorim Jaggi
d345052a8f Merge "Fix return value for comment consistency in getDetachWallpaper" 2019-01-11 11:50:21 +00:00