Commit Graph

309172 Commits

Author SHA1 Message Date
Todd Kennedy
1a30d0cb4d Remove call to propagate permissions
There's a bug and will be fixed in the near future

Test: Manual
Change-Id: I9ef8c4a278acf1131f133431e571d438776ab1e1
2017-01-20 13:50:08 -08:00
Matthew Ng
b7035f3a47 Added open, dismiss and split screen as custom accessibility actions
In overview with talkback, swiping would select the individual apps
instead of the open and dismiss views. The open and dismiss actions
are changed to accessibility custom actions with the additional action
to split the current app into multi-window mode.

Test: manual - used talkback with running all three actions in
landscape and portrait
Fixes: 29360763
Change-Id: Ie0bec99b849c5754d45577c66b17fa6b0c7e985c
2017-01-20 13:47:55 -08:00
Nancy Zheng
e256a18dcd Query for the settings package in KeyguardManager instead of
hardcoding it.

Bug: 33047002
Change-Id: I57bfab4750540789937d50c72ec05bb7a4535ae1
2017-01-20 13:46:31 -08:00
TreeHugger Robot
09df4a6172 Merge "Expose WifiConfiguration#ephemeral is a SystemApi" 2017-01-20 21:45:00 +00:00
Ying Wai (Daniel) Fan
9238b6124c Correct the formula of battery capacity estimation.
Instead of
  (current charge) * (current battery level percentage)
the formula should be
  (current charge) / (current battery level percentage)
to estimate the charge at 100% battery level.

Bug: 34255953
Fixes: 34255953
Test: formula change CL. No existing unit tests found.
Change-Id: I56ef7af3fb097a3082e0ef24329f522d2a0229cc
2017-01-20 13:29:01 -08:00
Adam Lesinski
83b4f7daba AAPT: Add support for 'font' resource type
Change-Id: I5bc459e34715779ab3b1c415f40f592a4ccbb96e
Test: manual
2017-01-20 13:19:27 -08:00
TreeHugger Robot
22e1cbad24 Merge "Make TelephonyManager#get/setAllowedCarriers system api" 2017-01-20 21:18:31 +00:00
TreeHugger Robot
fa2000a487 Merge "Change KernelUidCpuTimeReader Slog.wtf to Slog.e" 2017-01-20 20:33:25 +00:00
Abodunrinwa Toki
c565e1d3ce Implement TextClassification system service.
- This service provides the TextClassificationManager access to the
  classification model file.
  See: Icb82b707c9c1b4dcb739f44d888bbc43bc3b03bb
- This service is started at boot time.
  See: Ie4a597bc5c6c4140afbcf7feaa9dd237a3fd5fef

Test: Manually tested. Also see: Ic2a5eceeaec4cd2943c6c753084df46d30511fee
Bug: 32503402
Change-Id: Ic428d00f291e268211866b3fc6b7acbc3eb04e1e
2017-01-20 20:22:16 +00:00
Bill Yi
4f5f32aeaa Import translations. DO NOT MERGE
Change-Id: I735fae714687dd3170f3d33d07fb38e967155338
Auto-generated-cl: translation import
2017-01-20 11:54:40 -08:00
TreeHugger Robot
52461d46a4 Merge "Destroy DisplayLists on time" 2017-01-20 19:45:35 +00:00
Sundeep Ghuman
d9ade64f8c Merge "Allow REQUEST_NETWORK_SCORES to be used by SetupWizard." 2017-01-20 19:42:04 +00:00
Amin Shaikh
9f65210780 Expose WifiConfiguration#ephemeral is a SystemApi
Bug: 34503179
Test: make
Change-Id: I3a89b89da67152bb522ae4dbfd1cfe1b4830d8ae
2017-01-20 11:26:19 -08:00
Philipp Weiß
81fda7a431 Merge "DO NOT MERGE Finalize device-monitoring dialog strings" into nyc-mr2-dev am: c281fd12af
am: fc6771a9a6  -s ours

Change-Id: I69d09880b997dd615faaf18089cfcc8268d68b2a
2017-01-20 19:25:06 +00:00
phweiss
192ef285ea DO NOT MERGE Finalize device-monitoring dialog strings am: 232b0d4088
am: 61d7be70e7  -s ours

Change-Id: I28d6bbda7a09cfca1c82cc94eae1f4b496ca8aa5
2017-01-20 19:23:58 +00:00
Philipp Weiß
fc6771a9a6 Merge "DO NOT MERGE Finalize device-monitoring dialog strings" into nyc-mr2-dev
am: c281fd12af

Change-Id: Idb993945120ca591dfa9471bfc4a36706fe70e5f
2017-01-20 19:18:38 +00:00
phweiss
61d7be70e7 DO NOT MERGE Finalize device-monitoring dialog strings
am: 232b0d4088

Change-Id: I37008b2f10b746ed7aa0c455d832efd7b2966c77
2017-01-20 19:18:29 +00:00
Philipp Weiß
c281fd12af Merge "DO NOT MERGE Finalize device-monitoring dialog strings" into nyc-mr2-dev 2017-01-20 19:12:48 +00:00
Chad Brubaker
97bccee6d6 Add ephemeral whitelist for SettingsProvider
Currently the list is small, only whats required to launch a basic
ephemeral app. It will expand in followup CLs.

Note that the goal of this is not to completely shut down all ways that
an ephemeral app could learn the value (or part of) of a setting not in
the set. The goal is to limit the raw access to settings to a small set that
includes settings that ephemeral apps should have access to directly
System APIs that are exposed to ephemeral apps may allow for
ephemeral apps to learn the value of settings not in the directly
exposed set and that is OK and _not_ a security issue.

This contains a hack to support code in system system server that in
the process of a binder transaction reads a setting using a
ContentReceiver with a system package name. This was previously not an
issue but causes an exception to be thrown from getCallingPackage which
reading a setting now calls.

Bug: 33349998
Test: Boots, functions as normal for regular apps.
Test: cts-tradefed run cts -m CtsProviderTestCases -t
android.provider.cts.SettingsTest

Change-Id: Icc839b0d98c725d23cdd395e8cb76a7b293f8767
2017-01-20 11:03:53 -08:00
Ta-wei Yen
8652d71982 Merge "Add voicemail backup/restore columns" into nyc-mr2-dev am: c1a1348b99
am: f1a0d799c4

Change-Id: I0219d934fbae05e06d9187ad9e93529885019fe2
2017-01-20 18:45:28 +00:00
Ta-wei Yen
2d7a496e0a Add voicemail backup/restore columns am: f48d5ce630
am: 1f296f7793

Change-Id: I38e6e33438500a0815bb1b87dc21617213f42637
2017-01-20 18:44:39 +00:00
Makoto Onuki
aecbd03751 Do not allow work profile apps to access main profile app.
Bug: 34340531

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testManagedUser'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'

Change-Id: I34e9f351d2a8addf65a5a928c3dd4363f08611dc
2017-01-20 18:41:44 +00:00
Ta-wei Yen
f1a0d799c4 Merge "Add voicemail backup/restore columns" into nyc-mr2-dev
am: c1a1348b99

Change-Id: Ifd5116c2d8e44d6f16d6abd76d41fe5aebb28a24
2017-01-20 18:38:31 +00:00
Ta-wei Yen
1f296f7793 Add voicemail backup/restore columns
am: f48d5ce630

Change-Id: I2dd76b4107b9e7c75595fa3c49dcda74cebd2a09
2017-01-20 18:38:23 +00:00
Sundeep Ghuman
3d12a05f52 Allow REQUEST_NETWORK_SCORES to be used by SetupWizard.
Bug:34479801
Test: Built system and setup wizard and tested.
Change-Id: I4fcc3d1f56f78cfb0deaf13d0eccae97dac4ffa2
2017-01-20 10:32:18 -08:00
phweiss
232b0d4088 DO NOT MERGE Finalize device-monitoring dialog strings
Add Char-limits, do minor style changes and remove STOPSHIP comment.

Related change on master:
ag/1800040
0d08ca7d7f

BUG:33655277
BUG:31207965
BUG:29748723
Test: only string changes
Change-Id: I37d1b509c6344d7f7d144fc0d8950f45faeaaef4
2017-01-20 18:31:52 +00:00
Ta-wei Yen
c1a1348b99 Merge "Add voicemail backup/restore columns" into nyc-mr2-dev 2017-01-20 18:31:45 +00:00
Fyodor Kupolov
ecbc96bb34 Merge "[DO NOT MERGE] Do not report boot timings on first boot or runtime restart" into nyc-mr2-dev am: 1dcfc423cd
am: 750d641ac1  -s ours

Change-Id: I4264b0c19ad42204e81342eb12aed5dbd03fdefc
2017-01-20 18:28:15 +00:00
Fyodor Kupolov
af2bd1c933 [DO NOT MERGE] Do not report boot timings on first boot or runtime restart am: 83a218c416
am: 155e452f25  -s ours

Change-Id: Ibc7e072662aca3a346326ee232305f2231785ce4
2017-01-20 18:27:15 +00:00
Fyodor Kupolov
750d641ac1 Merge "[DO NOT MERGE] Do not report boot timings on first boot or runtime restart" into nyc-mr2-dev
am: 1dcfc423cd

Change-Id: I00117f3c0ac6d9bae5650dceea182790ed43bb1c
2017-01-20 18:23:20 +00:00
Fyodor Kupolov
155e452f25 [DO NOT MERGE] Do not report boot timings on first boot or runtime restart
am: 83a218c416

Change-Id: Ib503ffb8d0d718aa6af4b420cc71e32a033e658b
2017-01-20 18:23:16 +00:00
Fyodor Kupolov
1dcfc423cd Merge "[DO NOT MERGE] Do not report boot timings on first boot or runtime restart" into nyc-mr2-dev 2017-01-20 18:18:01 +00:00
Bartosz Fabianowski
aaad776c2c Merge "Allow system to retrieve persistent preferred activities" 2017-01-20 18:16:00 +00:00
Crystal Qin
586c400bfc Merge "Add new key purpose Wrap Key to KeyProperties.java and KeymasterDefs.java." 2017-01-20 18:13:47 +00:00
TreeHugger Robot
9553a1ecc2 Merge "Visual refresh for QS" 2017-01-20 18:08:53 +00:00
TreeHugger Robot
f140121f76 Merge "Don't set a task description for work lock overlay" 2017-01-20 18:06:01 +00:00
John Reck
2874daa4d3 Destroy DisplayLists on time
Change-Id: I32a97d1234545075e9423c352c772e09ca954741
Fixes: 34072929
Test: Manual, see b/34072929#comment36
2017-01-20 09:56:38 -08:00
Amin Shaikh
b50ade8bb0 Add additional fields to RecommendationRequest.
- Add networkId and timestamp for the last user selected network

Bug: 34467596
Test: runtest --path core/tests/coretests/src/android/net/RecommendationRequestTest.java
Change-Id: Ic81c1beede1a643cd428b6e5c57ed430a6b1ccc0
Merged-In: Ic81c1beede1a643cd428b6e5c57ed430a6b1ccc0
2017-01-20 09:37:59 -08:00
Fyodor Kupolov
83a218c416 [DO NOT MERGE] Do not report boot timings on first boot or runtime restart
During first boot after OTA, additional dexopting has to be done
during PM initialization. Timings for OTA are reported separately,
so we should ignore first boot to avoid skewing the metrics.

The following metrics were updated:
 - framework_locked_boot_completed
 - framework_boot_completed
 
Cherry-picked from commit 1d87e40d42

Test: manual
Bug: 32807863
Change-Id: I9d545cf38118f45f3f13597df2949d0ae4abd26a
2017-01-20 17:32:50 +00:00
Jeff Sharkey
8e8269fc11 Merge "StrictMode to detect untagged network traffic." 2017-01-20 17:31:59 +00:00
TreeHugger Robot
459692adad Merge "Add additional fields to RecommendationRequest." 2017-01-20 17:30:02 +00:00
Philipp Weiß
15cd916e74 Merge "Adjust device-monitoring dialog strings" 2017-01-20 17:29:53 +00:00
TreeHugger Robot
966e35a656 Merge "Change default settings theme to light color." 2017-01-20 17:20:07 +00:00
Michal Karpinski
61238c2d13 Merge "Unhide enabling backup service in DO APIs" 2017-01-20 17:12:21 +00:00
Makoto Onuki
444d64749d Merge "requestPinShortcut for pinned shortcut still notifies launcher" 2017-01-20 16:49:16 +00:00
Jason Monk
3250885c9f Visual refresh for QS
Adds circles and things

Test: visual
Change-Id: I7d974fcfe6257357abfd1a7d0ee521f0e6cee588
2017-01-20 11:29:25 -05:00
Vladislav Kaznacheev
f087a17534 Add @TestApi PopupMenu.getMenuListView
This method returns the ListView representing the menu.
It is required to test the actual contents of a PopupMenu.

Bug: 34076597
Test: android.widget.cts.ToolbarTest#testItemViewAttributes,
          android.widget.cts.PopupMenuTest#testItemViewAttributes

Change-Id: Id72a8f482048d724d4fde15b126e0d08e1d18390
2017-01-20 08:29:17 -08:00
phweiss
0d08ca7d7f Adjust device-monitoring dialog strings
Add Char-limits and do minor style changes.

BUG:33655277
BUG:31207965
BUG:29748723
Test: only string changes
Change-Id: I2b3187ad4a466b7c08f6ee865cb20e0cca492ff6
2017-01-20 16:37:45 +01:00
Andrei Stingaceanu
5d04239b3b AutoSize TextView (part 7) - APIs for configuring auto-size
Contains:
* getters/setters for all auto-size config attributes
* verbose JavaDocs
* isolated and reused the setup part of auto-size
* some variables had to become instance fields
* clarified some variable names

In a few words, whenever a configuration setter is
called, the value is assigned and setupAutoSizeTextXY()
gets called. The latter tries to build all the
intermediary values that it needs, attaches default
values, etc. If it is successful then it makes a call
to autoSizeText(), else it throws a runtime exception
with an appropriate message.

Bug: 32221168
Test: attached in the same topic
Change-Id: I448454ef4490102c8cc2b19e0e16e998aeb45cd0
2017-01-20 14:35:26 +00:00
TreeHugger Robot
27be018934 Merge "Refactor GLFunctorDrawable to use new SkCanvas API for clip region" 2017-01-20 14:31:41 +00:00