Commit Graph

87397 Commits

Author SHA1 Message Date
Olivier Gaillard
7c94c8417d Merge "Tests for binder work source propagation" 2018-11-28 08:59:12 +00:00
Martijn Coenen
ce871128cd Merge "Add useAppZygote attibute to <service>." 2018-11-28 08:25:20 +00:00
Chiachang Wang
d94e7d893b Merge "Data stall detection using DNS event" am: 33fe80f927 am: 69b60f5a31
am: f720f0dbf8

Change-Id: I5c443b959a45b3a70902d5c9738a1687e16cc766
2018-11-27 20:33:20 -08:00
Chiachang Wang
f720f0dbf8 Merge "Data stall detection using DNS event" am: 33fe80f927
am: 69b60f5a31

Change-Id: I35e7e81fa0d6db6527ea6dd606d00046df3b9818
2018-11-27 20:18:54 -08:00
Chiachang Wang
33fe80f927 Merge "Data stall detection using DNS event" 2018-11-28 03:53:30 +00:00
TreeHugger Robot
bf8d834647 Merge "Switch to idmap2" 2018-11-28 03:42:44 +00:00
TreeHugger Robot
36491d6cc1 Merge "Add StaticLayout constructor to dark-grey list" 2018-11-28 00:36:40 +00:00
Siyamed Sinir
00589be8f9 Add StaticLayout constructor to dark-grey list
Test: None
Bug: 117521430
Change-Id: I304214b7749e5dd87e77b8dfe405aae12e68cbb9
2018-11-27 22:43:09 +00:00
TreeHugger Robot
dbbcf07ec5 Merge "Removes ASEC-related logic from the framework" 2018-11-27 22:32:35 +00:00
TreeHugger Robot
d8a9db8486 Merge "Add interface for SMS message read for financial app mainline module." 2018-11-27 21:54:23 +00:00
TreeHugger Robot
e3a6d9450a Merge "Add "dictionary" entity type" 2018-11-27 21:51:45 +00:00
Mårten Kongstad
b87b507248 Switch to idmap2
Switch from idmap to idmap2.

This CL is the safety pin for idmap2. If idmap2 causes issues during
dogfooding it is easy go back to idmap by reverting this CL.

Once idmap2 has proven itself during a suitable period of time, the
FEATURE_FLAG_IDMAP2 flag and the obsolete idmap code will be removed.

Also add an .rc file to tell init to launch idmap2d.

Bug: 78815803
Test: atest OverlayDeviceTests OverlayHostTests
Change-Id: I5ca1388ac2f8a9379fed0c257247d351a5c7a3c4
2018-11-27 13:37:34 -08:00
Haoyu Zhang
19b3c371d3 Merge "Make LineHeightSpan.Standard a ParcelableSpan" 2018-11-27 21:02:25 +00:00
Patrick Baumann
fc2851e4d5 Removes ASEC-related logic from the framework
This change removes remaining ASEC-related logic from the framework in
preparation for install refactoring.

Bug: 109941548
Test: install still works
Change-Id: Ic7322038e45c026bcc59800a5a9fafdbb461021f
2018-11-27 12:56:14 -08:00
Abodunrinwa Toki
f14f2b63dc Merge "Do not linkify text with RLO/LRO characters." 2018-11-27 20:19:35 +00:00
TreeHugger Robot
20dbbf22b8 Merge "Add onSuggestedReplySent in NotificationAssistantService" 2018-11-27 19:51:55 +00:00
TreeHugger Robot
2bad68cd1a Merge "Fixed when IntelligenceManager.notifyAppeared()/disappeared() is called." 2018-11-27 19:30:48 +00:00
TreeHugger Robot
02fc5ccc54 Merge "Made ImageView.animateTransform(Matrix) public" 2018-11-27 19:09:24 +00:00
Tony Mak
e1f3ac064c Add "dictionary" entity type
We will classify the word as "dictionary" if we think user may want to look
it up. A "Dictionary" option will be shown in the floating toolbar
if users select words of this entity type.

A new Intent action is introduced to bring up the dictionary app.

The model that supports this entity type is not checked-in yet.
So no behavior change can be seen for now.

Test: Check-in the WIP model and try to select a "dictionary word".
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/IntentFactoryTest.java

BUG: 68238822

Change-Id: Ib318d5b2abf79d61e55b33e397065a0714573121
2018-11-27 18:20:10 +00:00
Tony Mak
2999670406 Add onSuggestedReplySent in NotificationAssistantService
This is added to report clicks on smart reply buttons to NAS.

Also refactored the code a bit by having SmartReplyView to use
SmartReplies and SmartActions object, rather than passing a long list
of arguments.

Test: atest SystemUITests
Test: Manual. Tapped on the reply and observed the log.
BUG: 111437455

Change-Id: I897fb46a304f4f7b80b2a6bc4db0ac39f6dc6e8f
2018-11-27 18:18:21 +00:00
Martijn Coenen
e066c5c1d4 Add useAppZygote attibute to <service>.
To allow isolated services to indicate that they want to spawn
from an application zygote instead of the regular zygote.

Bug: 111434506
Test: builds
Change-Id: I181cb1111169e195879a5f481b675956e383251e
2018-11-27 19:09:19 +01:00
TreeHugger Robot
0f94603082 Merge "Rename ANGLE package name" 2018-11-27 17:46:02 +00:00
TreeHugger Robot
6084ea4cfe Merge "Set WebView as important for Content Capture." 2018-11-27 17:28:17 +00:00
Anton Hansson
6e7ff180a5 Merge "Fix docs build" 2018-11-27 16:04:46 +00:00
TreeHugger Robot
9ba4a5ceea Merge "Remove unneeded API." 2018-11-27 15:55:11 +00:00
Andrey Kulikov
3ac312acf0 Made ImageView.animateTransform(Matrix) public
ImageView.animateTransform(Matrix) is now public so we can use it in AndroidX Transitions without a reflection.
Also I fixed a bug that we forgot to clear mDrawMatrix when we provide null matrix into a method. Before it doesn't work as expected if ImageView already calculated some draw matix and we wan't to override it.

Bug: 117521477
Test: Added new cts tests for both usages with null and not null matrix
Change-Id: I9e25e1f673fabdfeb227fabc0b3635056de0a6fd
2018-11-27 15:52:17 +00:00
Jeff Sharkey
a789183401 Merge "Iterate on storage permissions model." 2018-11-27 15:51:14 +00:00
Abodunrinwa Toki
adc194032b Do not linkify text with RLO/LRO characters.
Also don't show smart actions for selections in text with unsupported
characters.

Bug: 116321860
Test: atest android.view.textclassifier.TextClassifierTest \
            android.text.util.cts.LinkifyTest \
	    android.text.util.LinkifyTest \
	    android.widget.TextViewActivityTest

Change-Id: Id271cab8aef6b9b13ef17f1a8654c7616f75cf13
2018-11-27 15:11:41 +00:00
Olivier Gaillard
1d72458192 Tests for binder work source propagation
Test: atest binderLibTest BinderWorkSourceTest
Change-Id: I7265388c96076f8fcd44e02df493d3eec8e96b14
2018-11-27 14:36:46 +00:00
TreeHugger Robot
18ff896138 Merge "Introduce Message.USER_LOCAL and added logic to map person to user id" 2018-11-27 13:44:39 +00:00
Anton Hansson
e1d1a875a7 Fix docs build
The correct tag to use is @throws.

Test: make
Change-Id: I47260540c72bc69784e56c8768ec91fb6c53d12a
2018-11-27 13:27:31 +00:00
TreeHugger Robot
88dbb1b2d4 Merge "Make View#transformMatrixToLocal/Global public" 2018-11-27 12:53:16 +00:00
TreeHugger Robot
b5297b78ad Merge "Restrict access to ImageView#mMaxWidth/Height" 2018-11-27 12:52:15 +00:00
TreeHugger Robot
83026e5488 Merge "Introduce onNotificationExpansionChanged and onNotificationDirectReplied .. in NAS" 2018-11-27 12:21:43 +00:00
Abodunrinwa Toki
8df4152469 Merge "Introduce Translate intent." 2018-11-27 12:09:26 +00:00
Martijn Coenen
b27ce06077 Merge "Restrict dumping of binder proxy info in bugreports." 2018-11-27 12:00:22 +00:00
Clara Bayarri
9e6588db04 Restrict access to ImageView#mMaxWidth/Height
These two have getters (since api 16) and setters (since api 1),
so no reason to be reflecting anymore.

Bug: 117519954
Bug: 117519983
Test: make
Change-Id: Ib8f740071c7c05b1869117ab919297d26eae7650
2018-11-27 11:39:58 +00:00
Chiachang Wang
7a70a7e0ed Data stall detection using DNS event
If dns resolver on a network get consecutively timeout then it
is a strong signal that the network is no longer usable.
Reevaluate the network once it's data stall suspected

Test: 1. runtest frameworks-net
      2. SettingsBackupTest passes
      2. Run on wifi w/o internet capability
Bug: 112653893, 113916551

Change-Id: I74287b174d933f97a91fa1529b1809856ac3b38d
2018-11-27 18:00:05 +08:00
Clara Bayarri
c127cbe76c Make View#transformMatrixToLocal/Global public
These methods are being reflected into and seem generally useful
to developers.

Bug: 117521349
Bug: 117521191
Test: new CTS in topic
Change-Id: I86e8a379e458aefe7fb2fe936b57eeeffa5ad42d
2018-11-27 09:37:23 +00:00
Felipe Leme
fc8b2460c3 Merge "Initial implementation of Augmented Autofill." 2018-11-27 06:46:20 +00:00
Felipe Leme
284ad1c3e2 Initial implementation of Augmented Autofill.
Augmented Autofill is a mechanism that will let a system-provided service
provide autofill suggestions when the stardand autofill can't.

Because the Augmented Autofill service is a system app, it has less restrictions
than the standard service; in particular, this service will be responsible for
drawing the autofill UI, although the framework will provide a mechanism to host
the window. Right now, it's creating a TYPE_APPLICATION_OVERLAY window in the
service process roughly below the focused view, but in the long-term it will
use the IME suggestion window to display it.

This CL provides the initial APIs and end-to-end workflow for the simplest
scenario, but it's still full of TODO's.

Test: atest CtsAutoFillServiceTestCases # to make sure it doesn't break it
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: mmm -j150 packages/experimental/FillService &&\
  adb install -r ${OUT}/data/app/FillService/FillService.apk &&\
  adb shell settings put secure intel_service foo.bar.fill/.AiaiService &&\
  adb shell settings put global autofill_smart_suggestion_emulation_flags 2 &&\
  adb shell pm grant foo.bar.fill android.permission.SYSTEM_ALERT_WINDOW

Bug: 119638877

Change-Id: I8d59b4eab3e530cd89b81456681a72fdab532756
2018-11-27 05:09:06 +00:00
TreeHugger Robot
5023323520 Merge "Fixed ViewNode.setText(...)" 2018-11-27 05:00:05 +00:00
wilsonshih
968b30ee74 Support wallpaper on secondary displays.(4/N)
Provides a flag to let the system server and wallpaper picker know
if this wallpaper service supports multiple displays.

Bug: 115486823
Test: Manually test with modified wallpaper sample app.
Change-Id: I0c8b2c5d00bfd97d069511dda9965c557b5733c6
2018-11-27 04:47:46 +00:00
Wei Sheng Shih
da77cc6ea3 Merge "Support wallpaper on secondary displays.(3/N)" 2018-11-27 04:47:08 +00:00
Haoyu Zhang
63a5efb46b Make LineHeightSpan.Standard a ParcelableSpan
Implement ParcelableSpan interface for LineHeightSpan.

Bug: 112621694
Test: atest LineHeightSpan_StandardTest
Change-Id: I452a2b12310b525555e908e4d04dda7101693319
2018-11-26 16:54:46 -08:00
TreeHugger Robot
dca59bf420 Merge "Do not update AppStandbyController on foreground service events" 2018-11-27 00:45:35 +00:00
Felipe Leme
bf01eeafa0 Set WebView as important for Content Capture.
Test: echo 'In TreeHugger we trust!'
Bug: 111276913

Change-Id: I28c4691c9b4adb8163eaff15f7e498f637a162ad
2018-11-26 15:54:08 -08:00
Soonil Nagarkar
176d5a2244 Merge "Deprecate location provider status callbacks" 2018-11-26 23:48:12 +00:00
Neil Fuller
894b41c3f8 Merge "Track move of timezone classes to libcore.timezone" am: bfd3237eac
am: 0f2e3d68be

Change-Id: Ia88ee2fae4d3c21f2b7b96513bc4e276df13bc28
2018-11-26 15:46:42 -08:00
Jordan Liu
5333436303 Merge "Expose ApnService as a SystemApi and use subId arg" am: 0e706db965
am: 6a0161a184

Change-Id: Ia1abe2d229a034ba0a77ac3dd7034ff3c13dde55
2018-11-26 15:40:03 -08:00