Commit Graph

309172 Commits

Author SHA1 Message Date
TreeHugger Robot
a2b1774d75 Merge "Grant access to ephemeral metadata" 2017-01-20 01:23:36 +00:00
Siyamed Sinir
a3b9f2e3c6 Revert "Introduce set/getFontVariationSettings."
This reverts commit ba3028c1fc.

Bug: 34378805
Change-Id: I8250c87af5d65fb45789632580be4ae1b8711372
2017-01-20 01:13:23 +00:00
TreeHugger Robot
d48fed9b55 Merge "Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText" 2017-01-20 01:07:20 +00:00
Vadim Tryshev
b5ced22007 Eliminating sections.
Per new UX spec, sections are eliminated, and clusters change
their behavior. Full list of their properties:
* They serve as stops in cluster-navigation loop
* There exists a default cluster (which is the unmarked space)
* Default/stored focus is local to a cluster
* Initial focus search can enter a cluster
* Tab/arrow navigation is not affected by clusters

Bug: 32151632
Test: Manual and CTS tests.
Change-Id: Iacc4f37aec3dc61a6f6ce35681fa6b8fa974f0ed
2017-01-19 17:05:46 -08:00
Craig Donner
0cff9d955e AHardwareBuffer implementation.
Bug: 34050596
Test: Added gunit tests in CTS (CtsNativeHardwareTestCases)
Change-Id: I41f914a6d346fbb5f818a6591c86e7bf12f0576c
2017-01-19 17:01:19 -08:00
Shahriyar Amini
8ac2d9f227 Merge "Support setting icons from Settings or target app." 2017-01-20 01:01:18 +00:00
TreeHugger Robot
54df14956e Merge "Disable moving 3rd party apps to internal if not allowed." 2017-01-20 00:57:36 +00:00
Jeremy Joslin
f8f27c68fd Merge "Have requestRecommendation return a CompletableFuture." am: f48d0bb2dc am: 887ee2c32a am: 40f432a56b
am: 43be63722b  -s ours

Change-Id: I8c33b78a4cadea2cac9bc67627b272979a0f333d
2017-01-20 00:55:33 +00:00
Jiaquan He
76b2e0a21a 2D Recents: round task thumbnails properly.
Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
2017-01-19 16:39:11 -08:00
Sundeep Ghuman
f84e0573fc Insert badged icons into the WifiSettings picker.
This initial pass inserts badged wifi icons when available. A later CL
will move this logic to a new AccessPointPreference subclass to further
isolate the new picker UI changes.

Bug: 33457699
Test: Manual inspection
Change-Id: I849efe3f135bb24efeb60d2484dfb56673168430
2017-01-19 16:28:24 -08:00
Christopher Tate
42a386b771 Enable background restrictions
Apps that target O+ are always subject to background restrictions.
Legacy apps' background restriction is subject to the OP_RUN_IN_BACKGROUND
app op.

Apps with these properties are exempted from background restrictions:
  - persistent process
  - currently on the idle battery whitelist
  - global whitelist for things like bluetooth services

Bug 30953212

Change-Id: Icc19b2fbc05f40dcf8c3fc4abf718c373dc8d4f6
2017-01-19 16:23:02 -08:00
Santos Cordon
8c7ecc8b67 Merge "Add a Virtual 2D Display creator." 2017-01-20 00:21:38 +00:00
Jeremy Joslin
c4982553b9 Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED.
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG: 33752149
Change-Id: I559e8f47c5edb491ea7cd0d03010736c81fcee9b
Merged-In: If261cf25c227eeeb4155e43afd9354e6ff8df3b4
2017-01-19 16:21:25 -08:00
Santos Cordon
c14513d81e Add a Virtual 2D Display creator.
Listens for changes to VrMode to create/destroy a Virtual Display for 2D
apps.

Test: Logs creation/destruction of vr display while toggling vr mode.
Bug: 34280358
Change-Id: Idb52c4caa9aa0b6863cc6d2eaa55922ab81bf04a
2017-01-19 16:19:33 -08:00
Adam Lesinski
d33ef56651 ActivityThread: Only update code paths that have been added
When an ApplicationInfo object is updated and we want to update
code paths without restarting the app's process, we need to make
sure that we only update the paths that have changed. This means
diffing between the old paths and the new paths.

Test: watch /proc/<pid>/maps for dex entries before and after
      running adb exec-out am update-appinfos all <package>
Change-Id: I6855d860478ade3184bbb578a5483d8548396daa
2017-01-19 16:17:46 -08:00
Sudheer Shanka
513dc5417f Merge "Add new api Instrumentation.ActivityMonitor.onMatchIntent." 2017-01-20 00:15:14 +00:00
Jeremy Joslin
122957b0b0 Pass more data through the recommendation request.
Expanding the API so it can accept the WiFi config of the currently
connected network (if any) and the set of connectable WiFi
configurations. Also renamed currentRecommendedWifiConfig to
defaultWifiConfig so the name was more representative of the
parameter's purpose and added more documentation throughout.

Test: adb shell am instrument -e class android.net.RecommendationRequestTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w com.android.networkrecommendation.tests/android.support.test.runner.AndroidJUnitRunner
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34387385
Change-Id: Ib8c3cab8f92b5c9da806070d32412f688690f82f
Merged-In: I1089b70303b0396def7e6bf3737fdc67e40c9dcd
2017-01-19 16:14:21 -08:00
Makoto Onuki
0c28071032 requestPinShortcut for pinned shortcut still notifies launcher
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

Bug: 34391829
Change-Id: Iac652790f2aa02dab6afbe52f2e40be99543f325
2017-01-20 00:12:25 +00:00
Jeff Sharkey
032c08ad6b Simplify FileUtils.stringToFile().
Convert to byte[] directly instead of using heavier FileWriter.

Test: builds, boots
Bug: 34364961
Change-Id: If0c09a924cd73f2c4965ac9d206f9c060788d27c
2017-01-19 17:11:55 -07:00
Jeremy Joslin
43be63722b Merge "Have requestRecommendation return a CompletableFuture." am: f48d0bb2dc am: 887ee2c32a
am: 40f432a56b

Change-Id: I6936bd7bd64ae5da665ece4d9f401849feceed3e
2017-01-20 00:02:14 +00:00
Jiaquan He
90f4f5290b 2D Recents: round task thumbnails properly.
Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
2017-01-19 16:01:26 -08:00
Jeremy Joslin
40f432a56b Merge "Have requestRecommendation return a CompletableFuture." am: f48d0bb2dc
am: 887ee2c32a

Change-Id: Ia9252f5375da2a4292293a7d895ec3cbd0c9203e
2017-01-19 23:46:45 +00:00
Shreyas Basarge
6fbd65aa1a Merge "Non incremental backup flag for requestBackup" 2017-01-19 23:44:18 +00:00
TreeHugger Robot
1f9f11007d Merge "Move StringPiece to libandroidfw" 2017-01-19 23:40:06 +00:00
Evan Rosky
4c8c963ece Add support for automatic focusability determination
New android:focusable attribute value "auto" and corresponding constant
FOCUSABLE_AUTO specifies that the framework can determine a view's
focusability. For now, the only "auto" logic is that focusable = clickable.

This has the effect of making clickable views focusable by default
unless the developer has explicitly set them focusable=false.

Bug: 31963283
Change-Id: Icce768fa701966970ea6b3469b33a4ef97ebc3ea
Test: Added CTS test, related CTS passes, made a test-app which
      enumerates all clickable/focusable combinations to verify
2017-01-19 15:39:05 -08:00
Jeremy Joslin
12375e9e0d Merge "Replace the RequestRecommendationCaller if the timeout changes." am: f604580a58 am: 600b816fe6 am: 5ee0e8aa05
am: 282cd7d371  -s ours

Change-Id: I8b94d15193a81df1ff7fd2db2132a6dc14487bec
2017-01-19 23:37:58 +00:00
Jeremy Joslin
887ee2c32a Merge "Have requestRecommendation return a CompletableFuture."
am: f48d0bb2dc

Change-Id: I409c6c46144cbbfc147df7c3d3e251bd6b5fbe62
2017-01-19 23:37:46 +00:00
Yao Chen
022b8eaa1d Disable moving 3rd party apps to internal if not allowed.
ag/1633903 added config_allow3rdPartyAppOnInternal flag to specify
whether 3rd party apps are allowed on internal storage. We need to
respect the flag when moving apps between storages.

Bug: 30980219

Test: Added ApplicationPackageManagertest

Change-Id: I0f8e76467b5071d70f40da28c2087e689c049c06
2017-01-19 15:32:41 -08:00
Jeremy Joslin
47ce931dbc Merge changes I6ff80178,I03875cf1,I8d210b68 am: 5d942c1352 am: f5e4912fa2 am: 9a6c1bb795
am: 89dca6e82c  -s ours

Change-Id: Ib803888ffca5c4682b5044d2b3f650bf8b60ab4d
2017-01-19 23:31:56 +00:00
Jeremy Joslin
e121bed90c New setting for recommendation request timeout. am: 44e2b84b27 am: 820ad03ba8 am: 00ccf31dbd
am: 9971919b64  -s ours

Change-Id: I867f3bfa748e109abb3dde1540944d71212a81f0
2017-01-19 23:30:53 +00:00
Shahriyar Amini
778cf1d8d6 Support setting icons from Settings or target app.
Bug: 31002801
Test: make RunSettingsLibRoboTests

Injected settings can have a dynamic icon that is based on drawable
resources in the target app or the Settings app.

Change-Id: I2d5df15b0e21d7fe02206ca8df3fbfc7af75c624
2017-01-19 15:30:22 -08:00
Jiaquan He
44db90262e 2D Recents: handle keyboard config changes.
While attaching or detaching a physical keyboard, we should handle the
configuration change in RecentsActivity, so that the activity isn't
relaunched and causes abnormal behaviors.

Test: Checked that while keyboard is attached or detached, Recents
behaves normally.
Bug: 32101881

Change-Id: Ibd185aeb48b31dbde032e235fdcaa17fbcdd9c8a
2017-01-19 15:29:54 -08:00
Jeremy Joslin
4ea26cb24f Implemented the async recommendation request call. am: bc1308a3be am: 08031e0d0e am: 61a4bd412d
am: 6a4faba753  -s ours

Change-Id: Ie99a1bd3361a88c6ad04734a2043805d99dacf43
2017-01-19 23:29:53 +00:00
Jeremy Joslin
282cd7d371 Merge "Replace the RequestRecommendationCaller if the timeout changes." am: f604580a58 am: 600b816fe6
am: 5ee0e8aa05

Change-Id: Icc0d7b46f0777fd998c5fae5b5796bd99cac5ace
2017-01-19 23:29:23 +00:00
Jeremy Joslin
8c60626913 Async network recommendation requests. am: cb925074d3 am: c9d378e212 am: 428e6cd1db
am: 53526459dd  -s ours

Change-Id: I6b5dcbbd4ea0546898de0d5821f97d9d385d891b
2017-01-19 23:28:43 +00:00
Todd Kennedy
0e989d00ed Grant access to ephemeral metadata
When an ephemeral application explicitly accesses an
installed application, it grants access to its package
metadata. The ephemeral application effectively stays
hidden if it doesn't explicitly connect to any activity,
service or provider [i.e. implicit connections using
an ACTION_VIEW/CATEGORY_BROWSABLE intent will not expose
its metadata].

Bug: 34123112
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I7e1680902599b3ada0d4fba5998af30566017051
2017-01-19 15:26:21 -08:00
Treehugger Robot
f48d0bb2dc Merge "Have requestRecommendation return a CompletableFuture." 2017-01-19 23:25:51 +00:00
Jeremy Joslin
89dca6e82c Merge changes I6ff80178,I03875cf1,I8d210b68 am: 5d942c1352 am: f5e4912fa2
am: 9a6c1bb795

Change-Id: Ic00047a933a33ca51fcb770694d1f41ba7a09484
2017-01-19 23:24:16 +00:00
Jeremy Joslin
9971919b64 New setting for recommendation request timeout. am: 44e2b84b27 am: 820ad03ba8
am: 00ccf31dbd

Change-Id: If14705a0e4c41dbd40ae90b46b37e5ad2b6e5c4b
2017-01-19 23:23:20 +00:00
Jeremy Joslin
6a4faba753 Implemented the async recommendation request call. am: bc1308a3be am: 08031e0d0e
am: 61a4bd412d

Change-Id: I53549134c264ff5d282d1e6d5138581c9f5bcb5b
2017-01-19 23:22:20 +00:00
Jeremy Joslin
5ee0e8aa05 Merge "Replace the RequestRecommendationCaller if the timeout changes." am: f604580a58
am: 600b816fe6

Change-Id: I0756a2f72df6a9a41bd0c405155318c693d34546
2017-01-19 23:21:35 +00:00
Jeremy Joslin
53526459dd Async network recommendation requests. am: cb925074d3 am: c9d378e212
am: 428e6cd1db

Change-Id: Ifb0d27a912c2ca82d6dc18b513e1bc12c0215df1
2017-01-19 23:21:09 +00:00
Jeremy Joslin
9a6c1bb795 Merge changes I6ff80178,I03875cf1,I8d210b68 am: 5d942c1352
am: f5e4912fa2

Change-Id: I97104593be351ea75fa5307b9bcc0904b406c27b
2017-01-19 23:14:33 +00:00
Jeremy Joslin
00ccf31dbd New setting for recommendation request timeout. am: 44e2b84b27
am: 820ad03ba8

Change-Id: Ib4999e09073c74bb4594ce2e744032d3349dce94
2017-01-19 23:13:19 +00:00
Sundeep Ghuman
5519b7b873 Add rankingScores and badges to WifiPicker.
Adds support to request scores in WifiTracker and then plumb
those scores via AccessPoint.java. AccessPoints will sort on
ranking scores. Show badging in WifiSettings picker.

Bug: 33457699, 33778046
Test: Unit tests
Change-Id: Icc3161cf147b3a9715d6e9f56af574e52ae6c832
2017-01-19 15:13:09 -08:00
Sunny Goyal
970d4b4626 Fixing dimensions for AppWidgetProviderInfo not getting updated properly
for PinItemRequest

Test: Manually tested on device
Change-Id: I7bbf7e93e052ef25c2a4a98ff0795ef500f68cc0
2017-01-19 15:12:47 -08:00
Jeremy Joslin
61a4bd412d Implemented the async recommendation request call. am: bc1308a3be
am: 08031e0d0e

Change-Id: Idc136d72820fbf7c1d747068d87c505ec7e3cc5c
2017-01-19 23:12:24 +00:00
Jeremy Joslin
600b816fe6 Merge "Replace the RequestRecommendationCaller if the timeout changes."
am: f604580a58

Change-Id: I07c14f02c9f20122a7154df31ee745b1a3b43e88
2017-01-19 23:11:28 +00:00
Jeremy Joslin
428e6cd1db Async network recommendation requests. am: cb925074d3
am: c9d378e212

Change-Id: I66ea5246f35e6665c1ffb01e6314293a59f6acca
2017-01-19 23:11:08 +00:00
Stan Iliev
98d251b10e Refactor GLFunctorDrawable to use new SkCanvas API for clip region
Refactor GLFunctorDrawable::onDraw to get SkCanvas clip region
with new Skia API (getClipStack is going to be deprecated).

Test: Built and ran angler-userdebug. Ran CTS WebView clip tests.
Change-Id: Ia11e3f3d64d5c33802b7a8f296f213ef39a69905
2017-01-19 18:08:38 -05:00