Commit Graph

11085 Commits

Author SHA1 Message Date
Neil Fuller
009e77a7bb Fix checkstyle import ordering issues
Fix checkstyle import ordering issues. These have been introduced
by various commits, all in goog/master.

This fixes the ordering before I land unrelated changes.

Commits:
640f30a776
782043caf8
35cda39422
a38fbf63fd

Bug: 37984816
Test: make -j30 droid
Change-Id: I158dcf38c024a294d38cdb40f8909d5d5113b199
2017-05-04 17:46:01 +01:00
Neil Fuller
69320958b2 Merge "Time zone update API classes" 2017-05-04 13:02:44 +00:00
Karthik Ravi Shankar
60df13e750 Merge "Rename CompatibilityDisplay to Vr2dDisplay" into oc-dev am: 1d01f9cf67
am: c4d7248cdd

Change-Id: I8714be5933827c015f1446d5231f5c1f704b53c3
2017-05-04 05:29:12 +00:00
Karthik Ravi Shankar
1d01f9cf67 Merge "Rename CompatibilityDisplay to Vr2dDisplay" into oc-dev 2017-05-04 05:17:17 +00:00
Karthik Ravi Shankar
2b9aaedf63 Rename CompatibilityDisplay to Vr2dDisplay
CompatibilityDisplay used for displaying 2D activities in Vr world. This
is confusing in more than one way. To clarify what it really means,
rename it to Vr2dDisplay.

Changes in this CL -

- /s/CompatibilityDisplay/Vr2dDisplay
- /s/Compatibility/Vr2d - in CompatibilityDisplay context.

Bug: 37851944
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
passes on Marlin.

Change-Id: I0a442302fa9d0f48bbd0c01a7766b94369e04386
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
2017-05-03 22:16:02 -07:00
Siyamed Sinir
914d42dbcd Merge "Don't copy NoCopySpans for assist and autofill" into oc-dev am: 5073b91236
am: fb37bba30d

Change-Id: I4dc4116e456af56969a4c7559e19fa6369f0df12
2017-05-04 00:48:08 +00:00
Siyamed Sinir
5073b91236 Merge "Don't copy NoCopySpans for assist and autofill" into oc-dev 2017-05-04 00:27:31 +00:00
Felipe Leme
58c32e88fa Merge "Removed deprecated ViewStructure.setUrl() method." into oc-dev am: 246cc5bf51
am: 5152055973

Change-Id: Ie3ea24baf32960eeaa8c85b71e25b8ec017212a1
2017-05-03 23:42:27 +00:00
TreeHugger Robot
246cc5bf51 Merge "Removed deprecated ViewStructure.setUrl() method." into oc-dev 2017-05-03 23:16:15 +00:00
Adrian Roos
5f393e1c01 Merge "Notification: Remove actions from public view" into oc-dev am: 37963d61b2
am: b26c94ce4b

Change-Id: I1801ecae3fb327c8767f71d5e7f91c5cd581c448
2017-05-03 21:36:22 +00:00
Adrian Roos
37963d61b2 Merge "Notification: Remove actions from public view" into oc-dev 2017-05-03 21:11:41 +00:00
Neil Fuller
fe6ec56cce Time zone update API classes
Time zone update API classes. Currently hidden but they
will go on to be unhidden in future.

This forms the basis of client and system server code to
support time zone updates.

Tests can be run with:

make -j30 FrameworksCoreTests
adb install out/target/product/angler/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -e package android.app.timezone \
    -w com.android.frameworks.coretests \
    "com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner"

Bug: 31008728
Test: See above.
Change-Id: I668bc8ac0cb78f3d4d9a4b7ad6ac1534b88af833
2017-05-03 17:41:12 +01:00
Ben Lin
2db7e4d384 Merge "Remove snippet regarding ContentProvider#notifyChange in documentation." into oc-dev am: d6bfaba59c
am: bb87997182

Change-Id: I82a9b7c4542e4a2f157a608be3a991c158707f12
2017-05-03 02:37:27 +00:00
Ben Lin
d6bfaba59c Merge "Remove snippet regarding ContentProvider#notifyChange in documentation." into oc-dev 2017-05-03 02:25:08 +00:00
Adrian Roos
b19b06b64c Notification: Remove actions from public view
Change-Id: I9d95e2ea3ff89110f58f6d5585771ad301494e41
Test: Turn on "hide sensitive notifications on lockscreen", receive notification, make sure it has no actions
Fixes: 37907366
2017-05-02 19:17:30 -07:00
Makoto Onuki
d10ca46df3 Merge "Add more information to WTF to investigate bug 37809561" into oc-dev am: e497b698d2
am: bab47edecb

Change-Id: Ie781c121fbf3b71e3189cf1a84257116afd963a8
2017-05-03 00:06:30 +00:00
TreeHugger Robot
e497b698d2 Merge "Add more information to WTF to investigate bug 37809561" into oc-dev 2017-05-02 23:51:37 +00:00
Winson Chung
4678eca685 Merge "Restoring old methods for compatibility." into oc-dev am: d6c190c8d2
am: 3d66fb6519

Change-Id: I1066d1efed081776286ef8ded7933998a89e1dd8
2017-05-02 23:34:46 +00:00
Winson Chung
ca754789c1 Restoring old methods for compatibility.
Bug: 37637423
Test: Build and test PIP apps
Change-Id: I9ccb49a3e42de55a249ab54bde2f3c5a1c179c1c
2017-05-02 15:18:23 -07:00
Ben Lin
dac516ef32 Remove snippet regarding ContentProvider#notifyChange in documentation.
For ContentProvider and DocumentsProvider, throwing an exception in
their query methods will result in no Cursor returned to the remote
side. Without a cursor, there is no way to listen in on changes.
Removing the part regarding notifyChange since there's no established
paradigm on which URI to listen/notify changes on.

Test: Documentation change only.
Bug: 37876119
Change-Id: I0739794a1e8182918758ba953251ed9a3268f227
2017-05-02 13:35:13 -07:00
Felipe Leme
a8fce3b29e Don't copy NoCopySpans for assist and autofill
For AssistStructure, and AutofillValue, create a copy of the text in 
setText and forText methods if it is a Spanned.

Fixes: 36838999
Test: cts-tradefed run cts -m CtsAutoFillServiceTestCases
Test: cts-tradefed run cts -m CtsAssistTestCases
Test: cts-tradefed run cts --test android.widget.cts.TextViewTest -m \
      CtsWidgetTestCases

Change-Id: I52e780fa9baa17c375d3945dc714171f41fd7db5
2017-05-02 13:33:07 -07:00
Makoto Onuki
f3bb6f31f4 Add more information to WTF to investigate bug 37809561
Bug 37809561
Test: Build & boot -- didn't actually exercise the WTF case but it should work
since getStackTraceString accepts null too.

Change-Id: Iabfbe1fcde293fec919c65df7ea9650e1b247b9a
2017-05-02 12:02:23 -07:00
Felipe Leme
61b7f12172 Removed deprecated ViewStructure.setUrl() method.
Fixes: 37623568
Test: CtsAutoFillServiceTestCases pass
Test: CtsAssistTestCases pass

Change-Id: I13cdf08f40ba3db31ddb3f104f99b7ab8839bd01
2017-05-02 10:58:42 -07:00
Tony Mak
60d88ea3dd Merge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev am: 91c6e44e9e
am: 1fe0c5cae8

Change-Id: I2fb7103267fbcf76ede3f168b4d7b4892c501943
2017-05-02 15:55:21 +00:00
Tony Mak
62cf586159 Add back the throwIfParentInstance checking in getAffiliationIds
Fix: 37887947

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ParentProfileTest#testParentProfileApiDisabled

Change-Id: I05944c7a2447998d3ea948195fb25b09ab9735fc
2017-05-02 13:42:30 +00:00
Adam Powell
072661f580 Merge "Hide FragmentContainer#instantiate for API 26" into oc-dev am: ba9b2ce254
am: d1832d7bf8

Change-Id: Ic5186638644ef7b1654d473c15866476788ccfaa
2017-05-01 23:48:57 +00:00
TreeHugger Robot
ba9b2ce254 Merge "Hide FragmentContainer#instantiate for API 26" into oc-dev 2017-05-01 23:30:12 +00:00
Calin Juravle
6958495360 Merge "SystemApi for dex module registration" 2017-05-01 22:56:31 +00:00
Adam Powell
f05458cf7e Hide FragmentContainer#instantiate for API 26
Bug 37638617

Change-Id: I065cd31d6ce987155669f72eff0e0d6d8a9430ab

Test: none; hiding API only
2017-05-01 14:26:54 -07:00
Jeff Sharkey
a03c9d1640 Merge "Updates based on API council guidance." into oc-dev am: 3ba7117164
am: e13d60764c

Change-Id: Ib0a727b11cc24c20d10adf9df85df100f603a87f
2017-05-01 18:52:23 +00:00
Jeff Sharkey
3ba7117164 Merge "Updates based on API council guidance." into oc-dev 2017-05-01 18:36:25 +00:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Adam Lesinski
42dd85aee7 Merge changes I446fb6ab,Ife3bbd29 into oc-dev am: 53c9898e79
am: 66534ef01c

Change-Id: I62d31b0d933a2f06b5a97f16447d7500b7fe71d1
2017-04-29 20:50:20 +00:00
TreeHugger Robot
53c9898e79 Merge changes I446fb6ab,Ife3bbd29 into oc-dev
* changes:
  Valid resource IDs may be negative
  AAPT2: Workaround for findViewById with package ID > 0x7f
2017-04-29 20:38:20 +00:00
TreeHugger Robot
5bb8294f92 Merge "Add managed profile whitelist to control NotificationListenerServices" into oc-dev 2017-04-29 19:49:35 +00:00
Jeff Sharkey
000ce80505 Updates based on API council guidance.
Test: builds, boots
Change-Id: I223faf55c1e1b4d81d11b4c8b2d93ccd131c969b
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423
2017-04-29 13:14:17 -06:00
Christopher Tate
bc222b842d Merge "API: make "what's the quota?" an operation on the backup data sinks" into oc-dev am: 78a00503db
am: 3f9418bf0d

Change-Id: Ice11345dc40639e11f75248fd054fc14ef6c247b
2017-04-29 03:17:07 +00:00
TreeHugger Robot
78a00503db Merge "API: make "what's the quota?" an operation on the backup data sinks" into oc-dev 2017-04-29 03:05:29 +00:00
Pavel Grafov
083ee917c0 Merge "Use List instead of array in network logging API." into oc-dev am: 83d139bd1b
am: 49e5ce52bb

Change-Id: If86cf7e255281caf7f0c4ffcded56c025a7d6409
2017-04-28 23:21:48 +00:00
TreeHugger Robot
83d139bd1b Merge "Use List instead of array in network logging API." into oc-dev 2017-04-28 23:00:02 +00:00
Adam Lesinski
360182156a Valid resource IDs may be negative
Package IDs greater than 0x7f are interpreted as negative
numbers in Java's signed integer. The proper check for existence of
a resource ID is that it is not 0.

Bug: 37498913
Test: none
Change-Id: I446fb6abb514bf7cf2d0dcbfbd81dd5718cd2cb4
2017-04-28 12:48:36 -07:00
Pavel Grafov
f09a16628d Use List instead of array in network logging API.
Bug: 37625453
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/NetworkEventTest.java
Test: ts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Change-Id: Icba7e3178202e0e650689d98c4010a9b40c6a53c
2017-04-28 19:31:00 +01:00
Andrew Scull
5cf5494744 Merge "Expand abbreviation in constant identifier." into oc-dev am: 2c20a0f885
am: 7d32c0bd04

Change-Id: I435db9c38e42cb0d2dbf82441470e45dc37728cc
2017-04-28 18:25:23 +00:00
Shane Brennan
8bfbb0af21 Merge "Updating docs for RemoteInput non-textual inputs per API review request." into oc-dev 2017-04-28 18:02:46 +00:00
Shane Brennan
7eec245c62 Merge "Update comment to getDataOnlyRemoteInputs per API review." into oc-dev 2017-04-28 17:56:56 +00:00
Jeff Sharkey
dd6a433163 Merge "Respond to API council feedback." into oc-dev am: 77cc43e0d2
am: 86e27f65f8

Change-Id: I7933a8ba6858d38423b29a52dfc5f9f65c641faf
2017-04-28 17:48:26 +00:00
Andrew Scull
2c20a0f885 Merge "Expand abbreviation in constant identifier." into oc-dev 2017-04-28 17:42:00 +00:00
Jeff Hao
d4f657a1b1 Merge "Prepend shared libraries in their original order." 2017-04-28 17:27:06 +00:00
TreeHugger Robot
77cc43e0d2 Merge "Respond to API council feedback." into oc-dev 2017-04-28 17:10:16 +00:00