Commit Graph

66258 Commits

Author SHA1 Message Date
TreeHugger Robot
488c294ad9 Merge "Have requestRecommendation return a CompletableFuture." 2017-01-18 23:42:56 +00:00
TreeHugger Robot
07ea1c635f Merge "Fixed check for generated ids on onProvideStructureForAssistOrAutoFill()." 2017-01-18 22:32:49 +00:00
TreeHugger Robot
155873057f Merge "Enable background restrictions" 2017-01-18 22:32:17 +00:00
Jeremy Joslin
a480795e34 Have requestRecommendation return a CompletableFuture.
Reworked the new requestRecommendation call to return a
CompletableFuture instead of using a custom callback.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33784158
Change-Id: If24a94eb6289cb1952052b2cc3bc7856ce2192a5
2017-01-18 14:27:43 -08:00
Makoto Onuki
20b0af8099 Merge "Support protofied dumpsys for NetStats" 2017-01-18 21:30:20 +00:00
TreeHugger Robot
2582b80ae3 Merge "Fix tooltip handling for invisible and overlapping views" 2017-01-18 20:30:18 +00:00
TreeHugger Robot
b61c00e2bf Merge "Fix pointer icon handling for invisible and overlapping views" 2017-01-18 20:29:46 +00:00
TreeHugger Robot
db595b087a Merge "Protect use of onFindViewById for Fragment Transitions." 2017-01-18 20:26:20 +00:00
Felipe Leme
02296d74d5 Fixed check for generated ids on onProvideStructureForAssistOrAutoFill().
BUG: 33197203
Test: CtsAutoFillServiceTestCases passes

Change-Id: I7dc45b2f68881e2a718b5d704ff4c3c3e5d9527b
2017-01-18 11:36:27 -08:00
Christopher Tate
21f778060b 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: Ib444829a2d222125f64ff19e8218823fa78373f9
2017-01-18 11:30:41 -08:00
TreeHugger Robot
b9cb9000c0 Merge "Execute non-optimized add operations one at a time." 2017-01-18 18:27:09 +00:00
Bartosz Fabianowski
094119df3e Merge "Allow system to retrieve permission grant state" 2017-01-18 17:25:49 +00:00
Bartosz Fabianowski
4b0624fee4 Allow system to retrieve permission grant state
To inform the user which apps were granted permissions by the admin,
the Settings app needs to access this information without being a DO/PO.

Bug: 32692748
Test: FrameworksServicesTests unit test

Change-Id: I3770ec6343b85be9c6f7655675ed6db5cb50612c
2017-01-18 18:22:50 +01:00
Makoto Onuki
ca66f302a0 Merge "Add ProviderStatus.DATABASE_CREATION_TIMESTAMP" 2017-01-18 17:04:26 +00:00
TreeHugger Robot
9ecde44945 Merge "Handle multiprocess flag in WebView update service." 2017-01-18 15:19:43 +00:00
TreeHugger Robot
2ec59897cf Merge changes I01e81b9c,I532c2d74
* changes:
  Add a listener when task snapshots change
  When app dies, destroy snapshot
2017-01-18 12:17:45 +00:00
Pavel Grafov
eaed75d923 Merge "Make ENSURE_VERIFY_APPS global even when set by PO." 2017-01-18 11:15:28 +00:00
Keisuke Kuroyanagi
a4371bc564 Merge "Fix: Wrong TextView height when DynamicLayout is used." 2017-01-18 05:56:07 +00:00
TreeHugger Robot
38f8292234 Merge "Adding Notification.TvExtender API" 2017-01-18 02:20:47 +00:00
TreeHugger Robot
626496effc Merge "Camera2: Add secondary surface to OutputConfiguration" 2017-01-18 01:55:04 +00:00
George Mount
498348d34b Protect use of onFindViewById for Fragment Transitions.
Bug 34163850

onFindViewById is only valid once the Fragment's View
has been created, but the child fragment manager
can be used prior to its creation. This protects
the use of onFindViewById from use by fragment
transitions.

Test: Ic72cd7dae8d7982b78258116e7910c4f07d75d50

Change-Id: I67e3b2d5f59c2e741f29211d08ab07476c78a0ca
2017-01-17 17:09:28 -08:00
TreeHugger Robot
870a2c12ab Merge "Add build flag for container builds" 2017-01-18 00:57:24 +00:00
Jorim Jaggi
fb9d78afb7 Add a listener when task snapshots change
Since we start recents before we take the snapshot, we need to add
a mechanism to inform recents about task snapshots changes.

We add a new method to TaskStackChangedListener,
onTaskSnapshotChanged, which gets called whenever a task snapshot
changes. Then, SystemUI registers such a listener and updates the
task thumbnail view for the specific task.

Test: Open app, press recents, make sure thumbnail is up-to-date
Bug: 31339431
Change-Id: I01e81b9cd11886da734da671c68d5732aa51009f
2017-01-18 01:50:51 +01:00
Shuzhen Wang
9c663d4415 Camera2: Add secondary surface to OutputConfiguration
Test: camera cts, and manually test camera preview/capture/recording.
Bug: 33777818
Change-Id: I853f2f48640e4b1ad20a468c152f7e9b536f7a3b
2017-01-17 16:38:39 -08:00
Makoto Onuki
729a87b09e Add ProviderStatus.DATABASE_CREATION_TIMESTAMP
Bug 33390320
Test: Adding a constant only; "m -j32"

Change-Id: Ie601978afd1f6da0e3fecd50e64d8af1f84a94af
2017-01-17 16:07:22 -08:00
Mark Rathjen
8bd15d1df2 Merge "SSAID Migration to be Per App/User Unique Values." 2017-01-17 23:57:17 +00:00
George Mount
a27a237098 Execute non-optimized add operations one at a time.
Bug 34125817

It appears that some developers rely on fragment views containing
other fragments without using the fragment's child fragment manager.
This CL executes all unoptimized add operations separately to make
sure that this continues to work. Pop operations continue to be
executed together as they did previously.

Test: Ia0333ac1c09e18a6d9b08fe56b1e5c080652ab5b
Change-Id: I832fe631d05dbf8e9712899fef797da1f5747f5e
2017-01-17 15:37:47 -08:00
Jorim Jaggi
10abe2fe29 When app dies, destroy snapshot
Also destroy snapshot when we remove the AppWindowToken.

Test: runtest frameworks-services -c
com.android.server.wm.SnapshotCacheTest
Test: Open app, go home, kill app, make sure snapshots are
destroyed.

Change-Id: I532c2d7499a86164175f9fcbc8b77c6eb6bfeae6
2017-01-18 00:15:26 +01:00
Xiaohui Chen
387c65f639 Add build flag for container builds
Test: lunch and build
Bug: 34350397
Change-Id: Ideb14200b5056449055ca17d868c615548445dc9
2017-01-17 15:12:26 -08:00
TreeHugger Robot
6725c8d93e Merge changes I906f6667,I42421408
* changes:
  Construct ambient view in Notification
  Notification: Refactor template parameter passing
2017-01-17 22:38:11 +00:00
TreeHugger Robot
4842c4c830 Merge "New setting for recommendation request timeout." 2017-01-17 22:18:59 +00:00
Makoto Onuki
da65a52f87 Support protofied dumpsys for NetStats
Bug 34228873
Test: manual tests with "incident_report netstats"

Change-Id: I359b364c64d9798fd4229018a905658d5d46ea5c
2017-01-17 14:16:01 -08:00
TreeHugger Robot
77af3b21a3 Merge changes Ida2ff860,I8f84b09f
* changes:
  Implemented the async recommendation request call.
  Async network recommendation requests.
2017-01-17 22:14:53 +00:00
Adrian Roos
487374fd6d Construct ambient view in Notification
Bug: 30876804
Test: manual
Change-Id: I906f666711a8d92b557184c652b1d6e33ae6f3d8
2017-01-17 13:06:31 -08:00
Adrian Roos
70d7aa3bd0 Notification: Refactor template parameter passing
Introduce a parameter object to reduce the amount of method overloading
we need to do now and in the future.

Bug: 30876804
Test: manual
Change-Id: I4242140835d440d910a2e2e0ee79af2271e1c046
2017-01-17 13:06:22 -08:00
TreeHugger Robot
04e7b6c6de Merge "Deprecate all inconvenient methods" 2017-01-17 20:52:45 +00:00
Jeremy Joslin
cb594f363d New setting for recommendation request timeout.
Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
2017-01-17 12:51:58 -08:00
Jeremy Joslin
998d7ca56a Async network recommendation requests.
Exposing a new hidden API method that allows network recommendations
to be requested asynchronously.

Test: Built & run.
BUG:33784158
Change-Id: I8f84b09f43a6c5fae5d8f03ec01e75c25b4b62d6
2017-01-17 12:37:07 -08:00
Jim Miller
40e4645e6e Rewrite FingerprintService to use HIDL 2.1
Bug: 33199080
Test: Fingerprint enroll, remove, unlock, fingerprint arbitration.

Change-Id: I8b98236ba81f053527ee74c8a189af1adfd17d55
2017-01-17 11:45:41 -08:00
TreeHugger Robot
7d13f29b12 Merge "Add constant for package verifier state." 2017-01-17 19:38:23 +00:00
Andrii Kulian
059df13f32 Merge "Add unit tests for 180 degree rotation" 2017-01-17 19:32:00 +00:00
Andrii Kulian
6c7dcd8a46 Merge "Relayout window when rotated landscape <-> seascape" 2017-01-17 19:32:00 +00:00
Mark Rathjen
5514fb7aba SSAID Migration to be Per App/User Unique Values.
SSAID is currently shared across all applications for each
user on the device, giving developers the ability to track
users across multiple applications. Using SSAID for tracking
is an abuse of the original intention of the SSAID and has
inherent privacy concerns.

This change will make the SSAID unique per application, per
user on a device. To not affect applications installed prior
to this change they will retain the legacy SSAID value until
uninstalled and reinstalled again.

Across subsequent installations the application will receive
the same SSAID as long as the package name and signature remain
consistent.

Tested manually the following cases:
  - App retains the legacy sssaid after OTA.
  - App gets a new ssaid upon post-OTA installation.
  - App retrieves same ssaid across post-OTA unistall/reinstalls.
  - Different Apps receive different ssaids.
  - Factory reset removes ssaid data and generates a different
    ssaid after App install.
  - System retains legacy ssaid.

Bug: 30979321
Test: CTS tests passed, Manual testing passed
Change-Id: I4acc190c14ec249e6365e05e7943148ed6f17f71
2017-01-17 11:22:07 -08:00
TreeHugger Robot
5471cfc750 Merge "Add doc to Configuration.setTo() method" 2017-01-17 19:21:26 +00:00
Makoto Onuki
3453194360 Deprecate all inconvenient methods
Test: builds fine
Change-Id: I52a26d160cff44b2fa0f3a807d23a6ed586d16ce
2017-01-17 11:20:41 -08:00
TreeHugger Robot
91f5cbf3a0 Merge "Add OFFSET and LENGTH args for paged queries." 2017-01-17 19:14:52 +00:00
Phil Weaver
0a78adea72 Merge "Provide hint text to accessibility." 2017-01-17 18:11:22 +00:00
TreeHugger Robot
5feafb1f71 Merge "Properly track fragments from pop operations." 2017-01-17 17:49:25 +00:00
TreeHugger Robot
ce29c76a1b Merge "Fix focus problems when using optimized fragment transactions." 2017-01-17 17:48:38 +00:00
Lorenzo Colitti
e00c7dd3fc Merge "Delete dead code." am: cf59ff79c5 am: d305a7c894 am: 8cf7169564
am: bb79257dbf

Change-Id: I97102d587cfc8699fd36f18e4072a5baaa7e2d11
2017-01-17 07:01:18 +00:00