Commit Graph

309172 Commits

Author SHA1 Message Date
Josh Gao
ade5ac01f1 Merge "Open /data/anr/traces.txt with O_APPEND." am: 5bf8540194
am: 0b9df3a012

Change-Id: I2cc15a9391c8b7a1e8bd1af7d20db684ff95a6f4
2017-02-24 20:33:00 +00:00
Soonil Nagarkar
681d711200 Throttle GNSS measurements and GNSS navigation
messages in background (completely).

Test: manual
Change-Id: I32e3572c5ce32cd39b22e62f6b3499d292e1badc
2017-02-24 12:28:32 -08:00
Josh Gao
0b9df3a012 Merge "Open /data/anr/traces.txt with O_APPEND."
am: 5bf8540194

Change-Id: Ie73b2930348d946a6f4504df190bd3e819043487
2017-02-24 20:28:00 +00:00
TreeHugger Robot
e44f60ec35 Merge "Require valid authorities for Uri notifications." 2017-02-24 20:26:33 +00:00
Jeff Sharkey
aaee062899 Catch all exceptions thrown by the interfaces.
Test: builds, boots
Bug: 35749102
Change-Id: Ib5db19dd8f3ae591ed84972c1b234f27932fc66c
2017-02-24 13:20:29 -07:00
Jack Yu
3902857290 Added a settings for CMAS message broadcast
This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
2017-02-24 12:18:46 -08:00
Josh Gao
5bf8540194 Merge "Open /data/anr/traces.txt with O_APPEND." 2017-02-24 20:17:23 +00:00
Josh Gao
6443a858a6 Open /data/anr/traces.txt with O_APPEND.
Should fix selinux denial:
    audit(0.0:7893): avc: denied { write } for path="/data/anr/traces.txt" dev="sda35" ino=679938 scontext=u:r:crash_dump:s0 tcontext=u:object_r:anr_data_file:s0 tclass=file permissive=0

Bug: 35727090
Test: none
Change-Id: I5c131ca1ee48ed00934a9aa7c611ee35fc4f9f2a
2017-02-24 12:15:15 -08:00
Felipe Leme
f69761ffbe Refactored savableIds() into a SaveInfo class.
For now it's a "1-to-1" refactoring that keeps the same
functionalities, but soon SaveInfo will be expanded to
allow the AutoFillService to customize it.

Bug: 35727295
Test: CtsAutoFillServiceTestCases pass
Test: m update-api

Change-Id: I5aaa705be2b32590048f70ed0142437e05df94b7
2017-02-24 12:03:06 -08:00
TreeHugger Robot
80999f790b Merge "New system for plugin + tuner integrations called extensions" 2017-02-24 20:02:03 +00:00
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Eric Laurent
4f7bc8c335 Merge "Load hyphenation patterns for Bulgarian and Church Slavonic" am: 70bc4a8036 am: 330ac1223a
am: 38a7f7f1ef

Change-Id: I09c0a3465d73923ec8f83bedaf46cfa3341bd721
2017-02-24 19:55:03 +00:00
Julia Reynolds
a5d2f235ad Send ranking update on channel update.
Change-Id: I26aca0f27df0fca549d863ed6a5fac2c5b025907
Fixes: 35623384
Test: manual, runtest systemui-notification
2017-02-24 14:54:41 -05:00
Eric Laurent
38a7f7f1ef Merge "Load hyphenation patterns for Bulgarian and Church Slavonic" am: 70bc4a8036
am: 330ac1223a

Change-Id: I23f1e0cf7938afbf18611191f12f68779b7c017e
2017-02-24 19:49:55 +00:00
TreeHugger Robot
1a082becfd Merge "Better error message when no UID allocated." 2017-02-24 19:47:57 +00:00
Eric Laurent
330ac1223a Merge "Load hyphenation patterns for Bulgarian and Church Slavonic"
am: 70bc4a8036

Change-Id: Iac325d28a09f4ddceb93ec85beba0eabfd393992
2017-02-24 19:45:28 +00:00
Mukesh Agrawal
4dcf740197 Merge "StateMachine: add getLogRecMaxSize()" am: 22e43471ed am: 0a2d5cf7db
am: 313604b48f

Change-Id: Ib8670d744b179a48dd3f9052baefc9ddbf260274
2017-02-24 19:41:04 +00:00
Abodunrinwa Toki
89ba5fbde0 Implement reset to original selection.
The UX for smart selection specifies that the user is able to reset
the original selection by tapping once on the word after smart
selection. Tap once, and the selection resets to the word that was
initially selected (before smart selection happened), tap one more
time and the insertion cursor appears as usual. If the user taps
a different word other than the original selection, the insertion
cursor appears as before.

Test: I7456eb4773d40366a3f4aa7bf051a1c7ddda6e9d
Bug: 34777048
Change-Id: If73259ddb67379d5a5deaa01b840b5185cedf4c8
2017-02-24 19:36:30 +00:00
Eric Laurent
70bc4a8036 Merge "Load hyphenation patterns for Bulgarian and Church Slavonic" 2017-02-24 19:36:29 +00:00
Mukesh Agrawal
313604b48f Merge "StateMachine: add getLogRecMaxSize()" am: 22e43471ed
am: 0a2d5cf7db

Change-Id: Id8a21420d17074e7331f8f67453fe09c338991ec
2017-02-24 19:36:23 +00:00
Jeff Sharkey
2140cd6431 Merge "Block new installs into ASEC containers." 2017-02-24 19:32:09 +00:00
Mukesh Agrawal
0a2d5cf7db Merge "StateMachine: add getLogRecMaxSize()"
am: 22e43471ed

Change-Id: Iaab7955c0721e240487e8c842e994c90141d6013
2017-02-24 19:32:03 +00:00
TreeHugger Robot
ab6798951a Merge "Fix broken RestrictedLockUtils KeyGuard APIs" 2017-02-24 19:29:48 +00:00
Mukesh Agrawal
22e43471ed Merge "StateMachine: add getLogRecMaxSize()" 2017-02-24 19:26:48 +00:00
Roozbeh Pournader
e626fb53e2 Load hyphenation patterns for Bulgarian and Church Slavonic
Patterns for Bulgarian (bg) and Church Slavonic (cu) are now loaded
too.

Also make changes to fontchain_lint.py, so it knows the script for Bulgarian
and Church Slavonic is Cyrillic.

Test: make -j works and creates .hyb files for bg and cu
Change-Id: I0586f6c49380279ef88fe952b5cfd2d3594c5524
2017-02-24 11:23:48 -08:00
TreeHugger Robot
071aa3b125 Merge "AppWidgetManager shouldn't use StorageManager." 2017-02-24 19:20:01 +00:00
Hakan Seyalioglu
21cb4cd496 Merge "Use the measured height in the ResolverDrawer" 2017-02-24 19:18:40 +00:00
Evan Rosky
cbf78f80cf Merge "Fixed poor behavior of position-based focus order" 2017-02-24 18:51:44 +00:00
Evan Rosky
b2048d4247 Merge "Add focusdirection annotations to cluster methods" 2017-02-24 18:50:34 +00:00
Android Build Merger (Role)
da047073fd Merge "Merge "Update api for InMemoryDexClassLoader" am: 2f40b2b302 am: c878255b5f am: 96b1fb4faa" 2017-02-24 18:50:23 +00:00
Jeremy Joslin
ee3fb5cac9 Bind to the recommendation service specified in the Setting.
High level changes to NetworkScorerAppManager:
  * Implemented getAllValidScorers() and removed the old
    config-based discovery code.
  * Implemented setActiveScorer() to persist its given package
    name to Settings if it represents a valid network
    recommendation app.
  * Added a new method that reverts the setting back to the
    configured default if the current setting represents an
    invalid app.

High level changes to NetworkScoreService:
  * Updated the PackageMonitor to only watch a single package.
  * Moved most of the startup logic to onUserUnlocked() so we
    don't have to worry about whether or not the device is encrypted
    when querying the PackageManager.
  * The PackageMonitor is only registered/unregistered when the
    package it's watching changes.

Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 35095406
Change-Id: Ib32aca72dac4b831a64ceb3cd5c31e8fa2f61396
2017-02-24 10:50:12 -08:00
Jeremy Joslin
f621bc9733 Move NetworkScorerAppManager into com.android.server.
NetworkScorerAppManager is only used internally by the
NetworkScoreService and no longer needs to be part of core.
Extracted its inner class, NetworkScorerAppData, into a top-level
class and left it in android.net as it's used as part of the
NetworkScoreManager API.

Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 35095406
Change-Id: I201f081e05d0a909b4ae3142b63afc3e21548f77
2017-02-24 10:50:12 -08:00
Alex Light
af9929efce Merge "Update api for InMemoryDexClassLoader" am: 2f40b2b302 am: c878255b5f
am: 96b1fb4faa

Change-Id: Ie54827e27768ce593b0b1402c8bc8eeb9b744f5f
2017-02-24 18:49:29 +00:00
TreeHugger Robot
4b2f751ebf Merge "Check EXTRA_INTENT as part of leaving process." 2017-02-24 18:49:24 +00:00
Daniel Nishi
2e5a68c319 Add the new package stats query to wrapper.
Bug: 35754646
Test: Settings unit test
Change-Id: I4b3cb93817ab998e9508c49c1aced66f6378806c
2017-02-24 10:46:51 -08:00
Alex Light
96b1fb4faa Merge "Update api for InMemoryDexClassLoader" am: 2f40b2b302
am: c878255b5f

Change-Id: Ifaf686ab006aee45447b3fb7c7da97f1a079dffd
2017-02-24 18:43:56 +00:00
TreeHugger Robot
a6be43461e Merge "Enforce the calling permissions within NetworkRecommendationProvider." 2017-02-24 18:43:01 +00:00
Jorim Jaggi
3d73260a8d Disable task snapshots on svelte
Test: Boot low ram device, make sure cache stays empty
Bug: 31339431
Change-Id: I0fac1071f17fcd13872ef68f68eee2c793c6753c
2017-02-24 19:41:45 +01:00
Alex Light
c878255b5f Merge "Update api for InMemoryDexClassLoader"
am: 2f40b2b302

Change-Id: I4c28a97869d17862076521c7fc22a96f9946d6b0
2017-02-24 18:39:00 +00:00
fionaxu
6a5ac3b922 move ACTION_CARRIER_SETUP intent to public api
As per CDD: The "android.*" namespace for intent constants is reserved for public
Android API in AOSP. (Whether public to the full SDK, @SystemApi or
defined in AOSP support libraries.)
ACTION_CARRIER_SETUP intent is generally useful for carrier privileged
apps which is unbundled carrier apps, thus move to public APIs

Bug: 33679956
Test: Manual
Change-Id: I202398f868d35e7e9046e7cc41330a3c26dca0b0
Merged-in: Ie2b5d072406513f04676210d08c43d91623c3cd2
2017-02-24 10:34:07 -08:00
Treehugger Robot
2f40b2b302 Merge "Update api for InMemoryDexClassLoader" 2017-02-24 18:32:22 +00:00
Chen Xu
f73da9c7ed Merge "move ACTION_CARRIER_SETUP intent to public api" 2017-02-24 18:15:46 +00:00
Jeff Sharkey
f60d8ab3d8 Better error message when no UID allocated.
Test: builds, boots
Bug: 34355942
Change-Id: I6062dc542d9088f34b5cb8ddac197cc34a970278
2017-02-24 11:06:51 -07:00
Jeff Sharkey
912e80d345 Require valid authorities for Uri notifications.
Content changed notifications are really only valid for content://
Uris, which are really only valid when we have a valid ContentProvider
backing them.  This has been implicit for a long time, but we actually
need to start enforcing it based on target API.

We also now tell developers about why their notification requests
are being denied, instead of silently logging.

Test: builds, boots, common operations work
Bug: 34049049
Change-Id: Ie8ab8d8674cff13e3e9269ffddc4ad998cb848c4
2017-02-24 11:00:59 -07:00
Jason Monk
1d9632df97 New system for plugin + tuner integrations called extensions
An ExtensionController provides an easy way to say I need an
object of interface X. Then a plugin or a tuner factory can
actually provide X when needed or fallback to a default implementation.

Test: runtest systemui
Change-Id: I5e1b76def3c790d7f673867648ffeb13c4d0a829
2017-02-24 12:51:51 -05:00
Phil Weaver
426361c371 Document null labels for standard a11y actions
Bug: 27274855
Test: Comment change only, so just verifying the build.
Change-Id: I8c03e895cd3c77c623ca912decc32b8d531bf1f6
2017-02-24 09:44:32 -08:00
Jorim Jaggi
f631ef769a Fix sharing bugreports from lockscreen
When launching ChooserActivity from lockscreen, we will start it
in stopped state because lockscreen is still showing, meaning that
the activity goes through start -> resume -> pause -> stop
immediately after it was launched, and will be later resumed once
Keyguard actually goes away.

However, ResolverActivity finished itself in onStop. We add a
private extra to change this behavior for sharing bugreports.

Test: Take bugreport, double tap on it on lockscreen
Test: com.android.shell.BugreportReceiverTest$1
Bug: 33009364
Change-Id: I973b2c71587950499b7c88b16af9cf1387795e17
2017-02-24 17:37:08 +00:00
Jeff Sharkey
22e32236ec AppWidgetManager shouldn't use StorageManager.
It's probably looking to detect both STATE_RUNNING_UNLOCKING and
STATE_RUNNING_UNLOCKED, so it should use isUserUnlockingOrUnlocked()
instead of trying to peek at the low-level CE key status.

Test: builds, boots
Bug: 29534661
Change-Id: I6aca1721f88ced65abf3bb7cbab550c4dbe27fb7
2017-02-24 10:21:58 -07:00
Vladislav Kaznacheev
2a00f9807c Do not set tooltips on items in list-based menus.
The presence of a tooltip (specifically, long click detection
logic required by it) interferes with touch processing in
AbsListView.

Bug: 35726766
Test: android.cts.widget.PopupTest#testItemViewAttributes
Change-Id: Ida49c07e5f2e3e06f5994f2cc4aa10ef112376d0
2017-02-24 09:17:01 -08:00
TreeHugger Robot
38a65f6c56 Merge "Fix roaming getting stuck after changing sims" 2017-02-24 16:51:41 +00:00