Commit Graph

96837 Commits

Author SHA1 Message Date
Yuichiro Hanada
c53b41f2ee Support Shift-Delete, Ctrl-Insert and Shift-Insert in TextView.
They triger cut, copy and paste actions respectively.

Bug: 112448847
Test: manual - try shortcuts on TextView
Change-Id: I33c3510ffcb8b172564e3bdc83e929646479f204
2018-12-17 10:14:37 +09:00
Jeff Sharkey
90dcdb2177 Merge "Local and remote isolated storage feature flags." 2018-12-16 16:50:08 +00:00
Tiger Huang
860ed7c688 Merge "Make per-display focus optional (1/2)" 2018-12-16 07:15:30 +00:00
Jeff Sharkey
b0c363b21e Local and remote isolated storage feature flags.
Moving forward as we start enabling isolated storage in various
dogfood groups, we'll need to maintain separate values for the
feature flag for both "local" and "remote" opinions.  Any strongly
expressed local opinion will always take precidence over any remote
opinion.

Any changes to these feature flags means that we need to invalidate
any PackageManager parsed APKs, since PackageParser changes it's
output depending on the flag state.  Since other feature flags are
likely to need this type of invalidation in the future, define the
PackageManager cache using a SHA-1 hash of a collection of values
that should invalidate the cache.

Bug: 112545973
Test: atest android.os.SystemPropertiesTest
Change-Id: Ifafcdf15e40e694eb4126e06981aeb82df51da33
2018-12-15 18:07:01 -07:00
TreeHugger Robot
44cf3f75ed Merge "Deprecate android.inputmethodservice.{Keyboard,KeyboardView}" 2018-12-15 21:06:14 +00:00
Michael Groover
f1a5b6e0bf Merge changes from topic "SensorPrivacyMode"
* changes:
  Add SensorPrivacy constants to SettingsBackupTest
  Prototype Spaceship mode qstile
2018-12-15 18:07:26 +00:00
Tiger Huang
51c5a1d042 Make per-display focus optional (1/2)
In general cases, we don't have multiple input methods simultaneously.
So that it may not make sense to have multiple focused window in the
system. Especially when there are multiple blinking cursors of input
boxes on different displays, the user may not be able to know which
input box can receive key events. In these cases, we let the system
has only one focused window.

In some cases, there can be multiple input methods simultaneously (one
for each display). To enable multiple users to interact with the
corresponding displays at the same time, we should let the system have
per-display focused window in these cases.

This CL makes per-display focus optional, and also reverts ag/5312657

Fix: 120241480
Fix: 120790099
Test: atest ActivityManagerMultiDisplayTests \
            CtsWindowManagerDeviceTestCases \
            WmTests

Change-Id: Ie030eed523599b217060887171710692d050e5d8
2018-12-15 16:30:14 +08:00
TreeHugger Robot
e48e378bee Merge "Add APIs to set Location History package name." 2018-12-15 05:10:30 +00:00
TreeHugger Robot
72ea8b20a4 Merge "Allowing Jobs with no constraints." 2018-12-15 01:43:25 +00:00
Jorim Jaggi
e71551c45d Merge "Trace dispatchApplyInsets" 2018-12-15 01:21:01 +00:00
Haoyu Zhang
81b0715041 Merge "Add public API TextView.isHorizontallyScrolling" 2018-12-14 23:07:45 +00:00
TreeHugger Robot
b4ee870eca Merge "Hides audibly alerted icon after 30 seconds." 2018-12-14 21:58:34 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Olivier Gaillard
5f861a8185 Merge "Use elapsedTime for binder/looper debug entries" 2018-12-14 20:28:19 +00:00
Haoyu Zhang
882d8fe7b9 Merge "Fix: LineBackgroundSpan calls Canvas.drawRect with wrong parameter" 2018-12-14 20:02:44 +00:00
Adrian Roos
cf25be425e Merge "Add minAspectRatio" 2018-12-14 18:44:27 +00:00
Adrian Roos
19cc34233c Merge "KeyguardDisableHandler: make properly user aware" 2018-12-14 18:42:56 +00:00
TreeHugger Robot
a02d2ad739 Merge "Updated SmartSuggestions coordinates when focused field changed." 2018-12-14 18:18:19 +00:00
Tyler Gunn
d1d6911207 Merge "Add CallerIdentification to CallScreeningService API." 2018-12-14 17:44:09 +00:00
Olivier Gaillard
28109b5714 Use elapsedTime for binder/looper debug entries
Test: atest BinderCallsStatsTest LooperStatsTest
Change-Id: I631b82a2c9dd490cff3d1d2db9c717e069378bc0
2018-12-14 16:28:28 +00:00
Adrian Roos
917791e1d0 Add minAspectRatio
Adds logic to enforce a minimum aspect ratio and a new manifest
attribute for requesting a minimum aspect ratio.

Bug: 120129697
Test: atest AspectRatioTests
Change-Id: Ie714541241dcdfae2bdf3bfd969a4e26829fbb4b
2018-12-14 16:13:27 +01:00
Gus Prevas
7306b90554 Hides audibly alerted icon after 30 seconds.
Bug: 116622974
Test: atest SystemUITests FrameworksUiServicesTests
Change-Id: I9074e46b5e557c7c65f601ee118dfa7e3751652a
2018-12-14 10:07:48 -05:00
Todd Kennedy
bb28a036c3 Merge "Continue process boot even if 'idmap2 --scan' fails" 2018-12-14 14:41:57 +00:00
Abodunrinwa Toki
bebe372372 Merge changes from topics "tcevent", "tc-ca-id"
* changes:
  Introduce TextClassifierEvent
  Add id to ConversationActions and conversationId to its Request
2018-12-14 12:41:40 +00:00
TreeHugger Robot
c14e1f95df Merge changes from topic "stream_combinations"
* changes:
  Camera: Implement legacy device stream combination query
  Camera: Add reprocessable mandatory stream combinations
  Camera: Add support for mandatory stream combinations
2018-12-14 10:03:07 +00:00
Abodunrinwa Toki
37ccedcc12 Introduce TextClassifierEvent
This serves as a general TextClassifier event object for reporting
any textclassifier event and will replace the SelectionEvent class.

Example:

// Smart link clicked.
new TextClassifierEvent.Builder(CATEGORY_LINKIFY, TYPE_LINK_CLICKED)
  .setEventContext(new TextClassificationContext.Builder(
      pkgname, WIDGET_TYPE_TEXTVIEW)
      .build())
  .setEntityType(TextClassifier.EMAIL)
  .setResultId(textclassification.getId())
  .setEventIndex(0)
  .setEventTime(now)
  .setStart(0)
  .setEnd(3)
  .build();

Bug: 120837847
Test: See related cts CL
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts \
      frameworks/base/core/tests/coretests/src/android/view/textclassifier
Change-Id: Ifd84a45fc5c46ffdb200dcb9600f6a470ce792bb
2018-12-14 15:49:01 +08:00
Tony Mak
c4359bf17f Add id to ConversationActions and conversationId to its Request
ID is used as session id when logging.
Conversation id is used for TextClassifier to keep track of ongoing
conversation.

BUG: 120803809
Test: atest TextClassifierTest.java
Test: atest ConversationActionsTest.java

Change-Id: Ifa2e25005efa9b16e480d9a06b376d726ea6d6d3
2018-12-14 15:49:01 +08:00
Vishwath Mohan
e533100d2e Merge "Extended Access mode for Trust Agents" 2018-12-14 03:38:20 +00:00
Vishnu Nair
f85dddfd0c Merge "Pip: Use raw input coordiates when calculating pip movement offsets" 2018-12-14 01:04:53 +00:00
Jeff Sharkey
1a842c20d8 Merge "Validate incoming authority values." 2018-12-14 01:00:10 +00:00
TreeHugger Robot
21a878c08c Merge "BatteryStats: NETWORK_TYPE_NR support" 2018-12-14 00:10:49 +00:00
Haoyu Zhang
ba75b55566 Add public API TextView.isHorizontallyScrolling
The original purpose is to remove @hide annotation on
TextView.getHorizontallyScrolling, but the function name conflicts
with our API naming convention. So, I created public API
isHorizontallyScrolling instead.

Bug: 117520716
Test: atest TextViewTest
Test: make offline-sdk-docs
Change-Id: I79666c8920cdfcb9dc68ae3701c6599f063df5fd
2018-12-13 15:58:49 -08:00
Yohei Yukawa
b7a284e37a Deprecate android.inputmethodservice.{Keyboard,KeyboardView}
This CL deprecates the following two classes.

 * android.inputmethodservice.Keyboard
 * android.inputmethodservice.KeyboardView

Most likely having these classes in the Android Framework does not
make much sense anymore, because basically it is just one
implementation of how keyboard-like UI can be implemented on top of
public Android APIs.  Source code of these classes have been available
as part os AOSP.  Thus it should not be that difficult for app
developers to have their own copy of these classes in their project or
re-implement a similar widget by themselves.

Fix: 116815596
Test: make -j checkbuild
Change-Id: Ie0cb0456c2cc4eacd4b188514508021774f60591
2018-12-13 15:53:16 -08:00
TreeHugger Robot
26b28799ab Merge "AM: Report launch state with activity launch info" 2018-12-13 23:27:39 +00:00
Adrian Roos
fc52100419 Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)" am: a48e431113 am: a11f1d2d50
am: 84f03da369

Change-Id: I4c746b570470301f076efca9d4897cb2032a3732
2018-12-13 15:25:59 -08:00
Zach Johnson
a0909a416f Merge "Pass package name as part of startDiscovery" am: bee9a87193 am: 683e379471
am: ff44d968eb

Change-Id: I6bfc7638d6f4e3487ece2452743c68150aaaf754
2018-12-13 15:05:09 -08:00
Mårten Kongstad
f361123c87 Continue process boot even if 'idmap2 --scan' fails
Relax the requirement on 'idmap2 --scan' to exit normally (as defined by
WIFEXITED) when starting a process. This allows the process to continue
booting, but with the caveat that no static="true" overlays targeting
"android" will be loaded.

The booting process is usually Zygote but can be an app that uses a
wrap.sh script (see https://d.android.com/ndk/guides/wrap-script).
Because SELinux rules prevent most processes from executing
/system/bin/idmap2, 'idmap2 --scan' will fail for "wrapped" apps.

Bug: 120854885
Test: atest CtsWrapWrapDebugTestCases CtsWrapWrapDebugMallocDebugTestCases
Change-Id: I85225cbcdd945f0026879e89f481d733217825d5
2018-12-13 14:54:39 -08:00
Adrian Roos
84f03da369 Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)" am: a48e431113
am: a11f1d2d50

Change-Id: I726f41142ead73b0a579b01ea477df63e74673e5
2018-12-13 14:33:46 -08:00
Zach Johnson
ff44d968eb Merge "Pass package name as part of startDiscovery" am: bee9a87193
am: 683e379471

Change-Id: I8dee413204c52bd715403d13696939930220cb10
2018-12-13 14:07:36 -08:00
Jeff Sharkey
2de00bf3d8 Validate incoming authority values.
A single provider may offer multiple authorities, so we now pass along
the authority being requested.  However, we need to validate that the
authority is actually serviced by the provider, similar to what we do
in validateIncomingUri().

Bug: 120673301
Test: atest android.content.cts
Test: atest android.provider.cts
Change-Id: Ia9734a42558ee9d46dc54f7e12b596cf03a520f5
2018-12-13 15:06:15 -07:00
Adrian Roos
a11f1d2d50 Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)"
am: a48e431113

Change-Id: I4f5284ab3445e89a2394386ca0da6ae8cf613906
2018-12-13 14:01:45 -08:00
Zach Johnson
683e379471 Merge "Pass package name as part of startDiscovery"
am: bee9a87193

Change-Id: I30eb9a65e4854eff1539d6d86d3f932675eb2dc2
2018-12-13 13:49:20 -08:00
TreeHugger Robot
04ac23c715 Merge "cherry-pick from pi-dev docs: Fixing malformed javadoc" 2018-12-13 21:45:33 +00:00
Jeff Sharkey
d2cc3434ae Merge "Legacy storage behavior for pre-isolated apps." 2018-12-13 21:11:42 +00:00
Jeff Sharkey
0132344dc4 Merge "This is a giant mess." 2018-12-13 21:04:14 +00:00
Dianne Hackborn
eb922e64f1 Merge "Add facility to limit associations that are allowed between apps." 2018-12-13 20:27:33 +00:00
Andrew Solovay
27e4346490 cherry-pick from pi-dev docs: Fixing malformed javadoc
Several @link & @see javadoc directives were malformed, resulting in the
Javadoc code being output to the HTML.

Staged to:

http://go/dac-stage/reference/android/app/slice/Slice.Builder
http://go/dac-stage/reference/android/app/slice/SliceProvider
http://go/dac-stage/reference/android/text/style/ImageSpan
http://go/dac-stage/reference/android/content/ContentProvider

Bug: 120743732
Test: make ds-docs
Change-Id: I589644f8d266a116441409fbdaf7a0c533e0e356
Exempt-From-Owner-Approval: Doc-only change
2018-12-13 11:45:21 -08:00
TreeHugger Robot
e6fd92b9f8 Merge "Improved ContentCapture capture by flushing its buffer after some time idle." 2018-12-13 19:40:35 +00:00
Andrew Solovay
d788835735 Merge "docs: Fixing malformed @links" into pi-dev am: 39f74d5732
am: b2ad787a44

Change-Id: I6064f1fdeb3e55ccca760de6c3bb42c1a4621298
2018-12-13 11:34:21 -08:00
Vishnu Nair
bb9ab4b914 AM: Report launch state with activity launch info
Bug: 119988524
Test: atest ActivityMetricsLoggerTests
Test: adb shell am start -W ...

Change-Id: I1d323e84d725722a198a60c51884dba897ec253f
2018-12-13 10:29:46 -08:00