Commit Graph

18326 Commits

Author SHA1 Message Date
Benjamin Franz
ff66fa9ef2 Create a new user restriction to disallow user switching
For multi-user session implementation, we want to block the user from
going back to user 0. Therefore, we block the user switcher in the
secondary user, as well as swtiching via user section in Settings app.

Bug: 64382189
Test: Manually verify user switcher is not displayed in QuickSettings
Test: Manulaly verify not able to remove or switcher user in user
      section in Setting app
Change-Id: I84bc9e67e3fe7fccb75edf0fc49b775b902f5290
2017-11-07 11:33:18 +08:00
Jeff Sharkey
e4595d58b6 Merge "Define NOT_ROAMING network capability." am: 8f380ab29c am: 3fe1ae29cd
am: 69b31d4eb0

Change-Id: I04220ff55fc87dbf8d417a30f15a06a877b412d4
2017-11-03 23:18:45 +00:00
Jeff Sharkey
69b31d4eb0 Merge "Define NOT_ROAMING network capability." am: 8f380ab29c
am: 3fe1ae29cd

Change-Id: Ib511f7af82c80fd4e95f4da9de1fdce200deb987
2017-11-03 23:07:03 +00:00
TreeHugger Robot
df66dd920f Merge "Structure StrictMode violations as Throwables" 2017-11-03 20:54:13 +00:00
TreeHugger Robot
f8a6f1da8f Merge "Add AudioRouting interface in MediaPlayer" 2017-11-03 19:54:39 +00:00
Kurt Nelson
1bb93bf77c Structure StrictMode violations as Throwables
All violations of StrictMode now inherit from one central Violation
class. This unlocks adding penaltyCallback(Violation).
Parsing strings is no longer required to infer what type of violation
something is.
Violation classes have no need to be loaded in Zygote as only developers
opt-in to this feature and will see violations.

Cross-binder thread violation perf test:
before
2872331
2574093
2481208
after
1938227
1742714
2654538

Bug: 64258734
Test: cts-tradefed run cts-dev --module CtsOsTestCases --test
android.os.cts.StrictModeTest
Change-Id: I1971feb03ff77cf297c940cacee62fadb5b8422c
2017-11-03 11:14:30 -07:00
Amith Yamasani
4470ab9c33 Make CHANGE_APP_IDLE_STATE a system API
Allows a privileged app to set standby bucket states for apps.

Bug: 63527785
Test: adb shell am set-standby-bucket com.example.foo 0
Change-Id: I613f8872ae816e39b167aad1c289187362aa6094
2017-11-02 21:12:18 -07:00
Andreas Gampe
9f4e7dbff8 Merge "Revert "Make CHANGE_APP_IDLE_STATE a system API"" 2017-11-02 22:45:16 +00:00
Andreas Gampe
8948c79fe0 Revert "Make CHANGE_APP_IDLE_STATE a system API"
This reverts commit c433ee5451.

Fails on walleye with:

java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.settings: android.permission.CHANGE_APP_IDLE_STATE, com.android.shell: android.permission.CHANGE_APP_IDLE_
STATE}

Bug: 63527785
Change-Id: I7a30615d20a6c22467a41d4b2d4f84f7702ce195
2017-11-02 21:58:15 +00:00
TreeHugger Robot
99ac4bdd16 Merge "Customizable corner radius for dialogs" 2017-11-02 20:31:09 +00:00
Jeff Davidson
5280b4205e Merge "Expose Intent#EXTRA_REASON as a SystemApi." 2017-11-02 20:10:18 +00:00
Amith Yamasani
68eec5cbee Merge "Make CHANGE_APP_IDLE_STATE a system API" 2017-11-02 19:49:06 +00:00
TreeHugger Robot
27d39bd77e Merge "Add support for minimized mode for right dock side for tablets (1/2)" 2017-11-02 18:43:18 +00:00
Yi Jin
0d16870b69 Merge "Remove the extra mapping of field types in ProtoOutputStream" 2017-11-02 17:55:40 +00:00
Lucas Dupin
735d85291e Customizable corner radius for dialogs
Moved default corner radius into an xml config to make it
overridable.

Test: make # launch usb debugging, wifi, and other system dialogs
Bug: 64122537
Change-Id: If9c102e37a6f998da2d97a8ad5aee2de4d25ae9d
2017-11-02 10:36:04 -07:00
Amith Yamasani
c433ee5451 Make CHANGE_APP_IDLE_STATE a system API
Allows a privileged app to set standby bucket states for apps.

Bug: 63527785
Test: adb shell am set-standby-bucket com.example.foo 0
Change-Id: I069546555e1b370247f8cd45b2f4c32e6abe15ed
2017-11-02 17:14:49 +00:00
Hall Liu
af65732f20 Merge "Add @TestApi for EMBMS APIs needed for CTS" am: f1167ced38 am: cca2b5a246
am: ebe0a4ccf8

Change-Id: I687fbf4a97262ac5570de51924fe18e73658467e
2017-11-02 03:08:06 +00:00
Tobias Thierer
54b194f003 Merge "make update-api" am: 07fe9042cf am: e33d0f594e
am: 4a45e0435d

Change-Id: I52bc34129a221908dbb3acca5c2e0436f53e7571
2017-11-02 02:57:41 +00:00
Hall Liu
ebe0a4ccf8 Merge "Add @TestApi for EMBMS APIs needed for CTS" am: f1167ced38
am: cca2b5a246

Change-Id: I495d10d673d0ac194835446b5c4587bf26246d7e
2017-11-02 02:53:59 +00:00
Tobias Thierer
4a45e0435d Merge "make update-api" am: 07fe9042cf
am: e33d0f594e

Change-Id: I32a054929b04211c36394db8029f6bf651209991
2017-11-02 02:47:59 +00:00
Jeff Davidson
a0c7d1fb3c Expose Intent#EXTRA_REASON as a SystemApi.
It's expected to be set with ACTION_FACTORY_RESET intents, and this
action was exposed as a @SystemApi in b/32974361.

Change-Id: Ib29ffb8d62460eb4ec0208076331bbba3272f290
Fixes: 67751036
Test: Just TreeHugger; no functional changes
2017-11-01 18:07:32 -07:00
Jeff Sharkey
72f9c42b9e Define NOT_ROAMING network capability.
The "roaming" state of a network really belongs on NetworkCapabilities
instead of being published through NetworkInfo.isRoaming().  One major
reason is to support developers creating NetworkRequests for a
non-roaming network.

Watch for any capability changes that network statistics are
interested in (either metered or roaming) and notify it to perform
an update pass; fixes bug where we previously only triggered on
roaming changes.

Fix bug in VPNs where metered/roaming capabilities of underlying
networks weren't being propagated; this was probably preventing
some jobs from running over unmetered networks, and causing other
jobs to run over roaming networks!  Also passes along link bandwidth
information from underlying networks, and propegates any changes
to underlying networks.

Fix race condition by reading prevNc inside lock.  Utility methods
correctly calculate min/max link bandwidth values.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.,com.android.server.ConnectivityServiceTest
Bug: 68397798, 16207332
Change-Id: I3e1a6544c902bf3a79356b72d3616af1fd2b0f49
2017-11-01 19:05:42 -06:00
Hall Liu
f1167ced38 Merge "Add @TestApi for EMBMS APIs needed for CTS" 2017-11-01 22:35:51 +00:00
Fyodor Kupolov
41cadb7d31 Added setFillWindowForwardOnly
It controls fetching of rows relative to requested position

Test: SQLiteCursorTest
Bug: 62550963
Change-Id: Iab651d8e3d689710b0436650c58dab86b119e296
2017-11-01 14:38:15 -07:00
Yi Jin
f9ed04b3d9 Remove the extra mapping of field types in ProtoOutputStream
It is very unlikely the protobuf changes the value in descriptor.h,
and if defines an extra mapping, there are several places to maintain:
1. java-stream,
2. cpp-stream,
3. ProtoOutputStream.java
4. ProtoOutputStream.cpp
5. Privacy.h (GetFieldId)
6. StatsLog to generate field id (type << 32 + field number)

Therefore use the current value in descriptor.h seems reasonable unless
they change that, very very unlikely, they probably will just add new
types, and deprect the existing ones like Group.

Test: test output of dumpsys proto
Change-Id: I6e150ab427851dd3b5dd55d3b273deeed7a0963c
2017-11-01 17:49:42 +00:00
Tobias Thierer
ae71c4f23c make update-api
This CL almost exactly reverts http://r.android.com/471377 .

current.txt and friends were not reflecting the latest AOSP API,
ie. "make update-api" was not a no-op like it's supposed to be.

Apart from IpSecManager.SecurityParameterIndex.finalize(), this
seems to mostly revert http://r.android.com/471377 which suggests
that the tooling change that necessitated that CL was probably
reverted without "make update-api" being run on AOSP.

No further investigation was made for what CL(s) caused this or
whether any of this API change is undesired.

Test: Treehugger
Test: make update-api

Change-Id: I5b846627e38c47abb534def97f0cab9d28b1288c
2017-11-01 17:21:59 +00:00
jiabin
6e5a628ab6 Add AudioRouting interface in MediaPlayer
Bug: b/64038649
Test: Run cts in RoutingTest
      && switch output device when using MediaPlayer playing music/video

Change-Id: I48dcfd40c3a6ce01c818f6268cc86ed02b7eaa58
2017-11-01 09:53:17 -07:00
Hall Liu
156b3041a9 Add @TestApi for EMBMS APIs needed for CTS
Bug: 68049452
Test: CTS
Change-Id: I5d132ac4e67deccf41c998822f82cf94d3f2ce7f
2017-10-31 18:49:09 -07:00
TreeHugger Robot
1e189360cb Merge "Make CarrierConfigManager#KEY_CDMA_ROAMING_MODE public." 2017-10-31 20:33:03 +00:00
Chong Zhang
884162b81b Merge "heif: support heif image sequence and dual-function files" 2017-10-31 18:34:51 +00:00
Jeff Davidson
af1d320555 Make CarrierConfigManager#KEY_CDMA_ROAMING_MODE public.
Mode constants have been moved to TelephonyManager.

Change-Id: I8c9091d9e71e1e38ff31e852301981f268b640cd
Fixes: 29163993
Test: TreeHugger only (no functional changes)
2017-10-31 11:08:34 -07:00
Matthew Ng
f59a4132e8 Add support for minimized mode for right dock side for tablets (1/2)
Tablets have the ability to dock to the right side in landscape. This
change supports minimized mode for right dock side.

Test: run-test CtsActivityManagerDeviceTestCases
android.server.am.ActivityManagerDockedStackTests#
testMinimizedFromEachDockedSide
Change-Id: Ie879bdf7bf74226c0ceda9295f9de2004fd6a9b5
Fixes: 68017311
2017-10-31 11:03:48 -07:00
Chong Zhang
4342f08fab heif: support heif image sequence and dual-function files
- Add a few methods to MediaMetadataRetriever to get still
  images and frames by index.

- Declare keys in MediaFormat related to heif still images.

bug: 63633199

test:
cts-tradefed run cts-dev --module CtsMediaTestCases --compatibility:module-arg CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice

Change-Id: I9556b27f7395a163aadd01e979930061878994d0
2017-10-30 19:59:43 +00:00
Xi Han
e020c0077d Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." 2017-10-30 17:11:13 +00:00
TreeHugger Robot
34d4130fd4 Merge "Enable variation settings for fonts in XMLs" 2017-10-30 14:29:45 +00:00
Mihai Popa
690e62bb68 Enable variation settings for fonts in XMLs
Bug: 37853920
Test: bit FrameworksCoreTests:android.content.res.FontResourcesParserTest

Change-Id: I1acf9767fb1cecc5f4982b79405f92280b31bfa7
2017-10-30 11:48:54 +00:00
TreeHugger Robot
99981920a3 Merge "Provide a way for jobs to estimate network traffic." 2017-10-28 00:41:53 +00:00
Hall Liu
9cc350e9f6 Merge "EMBMS - Add TestApi and provide service override" am: 1fab41e771 am: dfc37f77c9
am: e90908371a

Change-Id: Icdcffd62883657879c9d80ba703260f36217d286
2017-10-28 00:17:50 +00:00
Hall Liu
e90908371a Merge "EMBMS - Add TestApi and provide service override" am: 1fab41e771
am: dfc37f77c9

Change-Id: I3ecc9c267fa7f107a11bc9e1a4fbdb6c2772ec20
2017-10-27 23:49:37 +00:00
Hall Liu
1fab41e771 Merge "EMBMS - Add TestApi and provide service override" 2017-10-27 23:19:29 +00:00
Mady Mellor
dedcab0bac Merge "Unhide slice view APIs" 2017-10-27 22:28:47 +00:00
TreeHugger Robot
2991cb9944 Merge "Add a carrier config indicating whether user can edit a voicemail number" 2017-10-27 22:16:14 +00:00
Yueming Wang
5593322a2e Merge "Add DISALLOW_CONFIG_DATE_TIME user restriction." 2017-10-27 21:15:47 +00:00
Mady Mellor
800ba36336 Unhide slice view APIs
Test: to be added
Change-Id: I10e6c3259a3cde6f02c968b24f891b1215e12b1b
2017-10-27 13:33:56 -07:00
Cassie
4c6f72cc1b Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config.
Bug: 65683508
Test: Basic telephony sanity
Change-Id: I3ff7d5726193a554a8154bd13bbfd347c89b6a99
2017-10-27 13:00:18 -07:00
TreeHugger Robot
599ef4698b Merge "New Autofill API: FillResponse.disableAutofill(duration)" 2017-10-27 19:38:32 +00:00
Cassie Han
57b4c6b721 Merge "Add the operator name and MCC/MNC in string format into the CellIdentity." am: 1565803cd2 am: e64d907a49
am: a738702e15

Change-Id: I34d445c50be6f40e00df5a776208e12ceef49f4e
2017-10-27 18:10:02 +00:00
Cassie Han
a738702e15 Merge "Add the operator name and MCC/MNC in string format into the CellIdentity." am: 1565803cd2
am: e64d907a49

Change-Id: I0f145a458bff20dd9e6484120331bcc59b2dd8d3
2017-10-27 17:54:36 +00:00
Cassie Han
1565803cd2 Merge "Add the operator name and MCC/MNC in string format into the CellIdentity." 2017-10-27 17:17:54 +00:00
Felipe Leme
17292d1a25 New Autofill API: FillResponse.disableAutofill(duration)
This API is useful to improve the autofill performance for the scenarios where
the service knows it cannot autofill an app or activity.

Bug: 67867469

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthWhenAppCallsCancel

Change-Id: I58e3eb5714db840104e699d614e750c03e26e8ca
2017-10-27 09:40:59 -07:00