Commit Graph

8415 Commits

Author SHA1 Message Date
Lucas Dupin
b0bcf793a5 Merge "Default gradient should be the dark version" into oc-dr1-dev am: 4dfb200d1b
am: 85fa07b831

Change-Id: I66389304ab13274dabafe2993d8cd2a5a172d1c0
2017-07-19 18:56:20 +00:00
Lucas Dupin
85fa07b831 Merge "Default gradient should be the dark version" into oc-dr1-dev
am: 4dfb200d1b

Change-Id: I72a0674c9a180f65536553e30f80317276073365
2017-07-19 18:48:15 +00:00
Sudheer Shanka
1f0764f1f1 Merge "Update logic for attribution of per-cpu cluster times to each uid." 2017-07-19 18:47:27 +00:00
TreeHugger Robot
4dfb200d1b Merge "Default gradient should be the dark version" into oc-dr1-dev 2017-07-19 18:40:38 +00:00
Sudheer Shanka
c189595b2e Merge "Log if there is malformed data in the proc file." 2017-07-19 17:37:07 +00:00
TreeHugger Robot
619f9d3697 Merge "Zygote: Poll with timeout for pid" 2017-07-19 03:33:31 +00:00
Christine Franks
645011f5fa Merge "Disable lock screen by default for demo users" into oc-dr1-dev am: 205585e574
am: 6b43433062

Change-Id: I9e00e9e2771ba8c2a271c12e8213debbca96b9aa
2017-07-18 23:40:43 +00:00
Christine Franks
6b43433062 Merge "Disable lock screen by default for demo users" into oc-dr1-dev
am: 205585e574

Change-Id: I05eeee1b997916e0f8fa86614aaac3d0e395a35c
2017-07-18 23:30:29 +00:00
Christine Franks
205585e574 Merge "Disable lock screen by default for demo users" into oc-dr1-dev 2017-07-18 23:18:40 +00:00
Sudheer Shanka
2fc52d4a89 Update logic for attribution of per-cpu cluster times to each uid.
Bug: 62805443
Test: Used some apps and verified that battery usage is attributed to
      these apps in Settings>Battery.
Change-Id: I016ff5d0946db0c6be81f4be720d1b93787c0690
2017-07-18 15:22:29 -07:00
TreeHugger Robot
dc050be38b Merge "[AsyncChannel] Fix race in handling of sync result" 2017-07-18 19:51:58 +00:00
Shubham Ajmera
0b1a7a35b5 Merge "Reduce app size by downgrading inactive apps" 2017-07-18 17:09:06 +00:00
Shubham Ajmera
246dccf932 Reduce app size by downgrading inactive apps
This will trigger when the device will have low space.
Active apps here refer to the apps which were either active
in foregrond or in background and also used by other packages.
Apps which are inactive for X days downgraded to verify. X is
determined by sysprop pm.dexopt.unopt_after_inactive_days

If the system properties are not set, no effect will take place.

The above operations will take place in background dexopt service.
If user uses the app again, it will again be speed-compiled when
background dexopt service starts next time.

Bug: 36598475
Test: manual
* Remove the check in the code that allows downgrade only when
  the space is low on the device.
* adb root
* Set pm.dexopt_unopt_after_inactive_days to 600
* Make sure the current time of the device is correctly set
* Install 2 non system apps - B, C
* Downgrade B to extract
* Upgrade a system apps to speed-profile - E
* Downgrade a system app to quicken - G
* adb shell cmd package bg-dexopt-job

Expected Results:
* Extract - B
* Verify - C
* There should not be any entries for apps E an G
  in dalvik_cache

Change-Id: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51
2017-07-17 17:55:16 -07:00
Mark Salyzyn
0b0081e2d0 Merge "BootReceiver: check console-ramoops-0" am: a09784ac75 am: e7715b35ea am: be25a82472
am: 72c54c5113

Change-Id: I2d037b8c971cfef330e0d02045a50de759692e53
2017-07-17 23:09:44 +00:00
Michael Wachenschwanz
892a361372 Merge "Add Foreground Service Timer" 2017-07-17 22:59:48 +00:00
Mark Salyzyn
72c54c5113 Merge "BootReceiver: check console-ramoops-0" am: a09784ac75 am: e7715b35ea
am: be25a82472

Change-Id: I389d8faf7d30b48bfafac17251216346eb9cb713
2017-07-17 22:58:35 +00:00
Mark Salyzyn
be25a82472 Merge "BootReceiver: check console-ramoops-0" am: a09784ac75
am: e7715b35ea

Change-Id: I4ea86cc33247c2b7bf187cc8b2bc5b9c7aadc1f4
2017-07-17 22:46:45 +00:00
Mark Salyzyn
e7715b35ea Merge "BootReceiver: check console-ramoops-0"
am: a09784ac75

Change-Id: Ic3af3fd4f768f391740d56bd73c7dcca7698d1de
2017-07-17 22:34:23 +00:00
Mark Salyzyn
18c139c57f BootReceiver: check console-ramoops-0
On later kernels /sys/fs/pstore/console-ramoops becomes
/sys/fs/pstore/console-ramoops-0

Test: none
Bug: 63058217
Change-Id: Ia68c0b5741c35cb35f10be6bbce93e0f0c92480f
2017-07-17 20:33:40 +00:00
TreeHugger Robot
1ad8903bb6 Merge "Add provider level support for PDF Thumbnails" 2017-07-17 18:07:33 +00:00
Lucas Dupin
78d4afffb1 Default gradient should be the dark version
TYPE_NORMAL gradient should not be served by default
since it doesn't pass GAR.

Test: visual
Change-Id: Ibd09d0cbcc570d369e7b24970f37b4e6ba411586
Fixes: 63760297
2017-07-17 10:15:30 -07:00
Christine Franks
5856be889f Disable lock screen by default for demo users
Bug: 62712426
Test: frameworks/base/core/tests/utiltests/runtests.sh \
-e class com.android.internal.util.LockPatternUtilsTest
Change-Id: Ic2e00a2a73f160c27e4059f32e5a1d18ebc298a5
2017-07-17 09:37:20 -07:00
TreeHugger Robot
080838c0a4 Merge "Test if allocation supported; @removed clean up." 2017-07-16 05:18:36 +00:00
Jeff Sharkey
4233f032fd Test if allocation supported; @removed clean up.
SM.allocateBytes() doesn't offer a clear way to detect if a failed
request could ever succeed.  (For example, we can never work with
pipes, or files on an unsupported storage device.)  So give
developers a first-class API to test if allocation is supported.

If the underlying filesystem doesn't support fallocate(), fall back
to ftruncate() instead of failing completely.

Clean up @removed APIs that were refactoring during API 26 review
process.

Remove support for storing downloads on the /cache partition, which
doesn't exist on many devices.

Bug: 63057877
Test: bit DownloadProviderTests:*
Test: bit DocumentsUITests:com.android.documentsui.services.CopyJobTest
Test: bit DocumentsUITests:com.android.documentsui.services.MoveJobTest
Change-Id: I85d42a1a7240034b4f2a6f359011ac182bdce36e
2017-07-15 21:08:56 -06:00
Julian Mancini
d522fe6401 Add provider level support for PDF Thumbnails
Bug: 63586859
Test: N/A
Change-Id: I14b0dec18493478b3bd3585eab62aa64da909838
2017-07-14 14:36:53 -07:00
Lucas Dupin
ca0c783167 Merge "Move palette constants to XML" into oc-dr1-dev am: 8d5b831095
am: 486ce65234

Change-Id: Ib2ff59f4ac52799d420ee3353cedb4762f7a02b1
2017-07-14 20:39:22 +00:00
Lucas Dupin
486ce65234 Merge "Move palette constants to XML" into oc-dr1-dev
am: 8d5b831095

Change-Id: I8ced4304e4e6f6f766c7160e25122974ec0c9548
2017-07-14 20:31:33 +00:00
TreeHugger Robot
8d5b831095 Merge "Move palette constants to XML" into oc-dr1-dev 2017-07-14 20:24:37 +00:00
Jesse Hall
ceddb7508d Merge "Preload app-process HALs in Zygote" into oc-dr1-dev
am: 61d1af5746

Change-Id: I2b51bd19d1fde7fc8e0e1cc9de71a3cd5d1a7ef9
2017-07-14 19:40:45 +00:00
TreeHugger Robot
61d1af5746 Merge "Preload app-process HALs in Zygote" into oc-dr1-dev 2017-07-14 19:33:26 +00:00
TreeHugger Robot
31ac6ac9c2 Merge "[Companion] Dont store duplicate association records" 2017-07-14 19:26:08 +00:00
Lucas Dupin
6e69c85ddc Move palette constants to XML
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Change-Id: I22a5ef9b89c113f75261e8884fa1affb07b2265f
Fixes: 62373429
2017-07-14 09:35:05 -07:00
TreeHugger Robot
267c6b2a5b Merge "Avoid FloatingToolbar flickers" 2017-07-14 13:44:45 +00:00
TreeHugger Robot
d7fad0e1ce Merge "Log sorted order instead of original order of selected apps." 2017-07-14 02:29:26 +00:00
Kang Li
78c6efcdf3 Log sorted order instead of original order of selected apps.
Test: tested it with Tron logs to verify it works as expected.

Change-Id: I7b93fc57c1b72efbcb4f0dee429d7b22b47b6b0b
2017-07-13 17:50:55 -07:00
Siqi Lin
9522e0c53f Merge "BootReceiver: Remove error log when last-header.txt is missing" into oc-dr1-dev am: d0b2c3b28c
am: 0e01513293

Change-Id: I0bfb235c4046623a5ae81cf8f2555ab408c0689c
2017-07-14 00:12:49 +00:00
Andreas Gampe
cbc4214061 Zygote: Poll with timeout for pid
Do not use a blocking readInt. Poll for available bytes with a timeout.

Bug: 63638768
Test: m
Test: cts-tradefed run commandAndExit cts-dev -m CtsWrapWrapDebugTestCases
Change-Id: Ib2131c00aa47dd10bb940d8678bbbfb5a0346ad5
2017-07-13 17:09:20 -07:00
Siqi Lin
0e01513293 Merge "BootReceiver: Remove error log when last-header.txt is missing" into oc-dr1-dev
am: d0b2c3b28c

Change-Id: If06d96e09251c6de129c978f939f2206cbcda2d4
2017-07-14 00:03:46 +00:00
Siqi Lin
814594619c BootReceiver: Remove error log when last-header.txt is missing
It's normal for /data/system/last-header.txt to not exist on
the first boot after factory reset. The code already handles
this case properly so the Slog.e is just noise that shows up
in bugreports.

Bug: 37513804
Test: manual - boot after factory reset, check logcat
Change-Id: I1c8e3437cdbda5e04c0299764c7e4921bef67cb3
2017-07-13 14:39:31 -07:00
Abodunrinwa Toki
4a7aeb3cb0 Avoid FloatingToolbar flickers
by:
 1. Restricting 'moving hide' -- where we hide the toolbar if the
    toolbar is moving.
 2. Hide the toolbar when transitioning to 'select all' -- where the
    toolbar is refreshed.

Bug: 32910217
Bug: 30418276
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
bit CtsWidgetTestCases:android.widget.cts.TextViewTest

Change-Id: I1f44ee765d74bbcf08e6e7cd635f76d1e8f6305b
2017-07-13 21:48:51 +01:00
TreeHugger Robot
7db6b9778f Merge "Add metrics to log performance of different ranker services in ChooserActivity." 2017-07-13 19:04:45 +00:00
Michael Plass
56e46134d3 [AsyncChannel] Fix race in handling of sync result
Bug: 63074860
Test: wifi unit tests
Change-Id: I1d59eb8d599de9d9041e0b9b7d731363675a40c9
2017-07-13 10:20:55 -07:00
Lucas Dupin
c7a0402c6e Merge "In-app gradient color based on systemui theme." into oc-dr1-dev am: 717dd58c52
am: de3597c769

Change-Id: I929d33ba540d03cdd823f0cf9a1b22b365fd9f2f
2017-07-13 17:19:05 +00:00
Lucas Dupin
de3597c769 Merge "In-app gradient color based on systemui theme." into oc-dr1-dev
am: 717dd58c52

Change-Id: I35c7baae2e373f4d8bea87d1afc175833de7f59e
2017-07-13 17:09:59 +00:00
Kang Li
2c57189130 Add metrics to log performance of different ranker services in
ChooserActivity.

bug: 63353389

Test: tested by GmsCore debug logs.

Change-Id: Iacfef00531953344af190d3bd381c0ea38c37fe2
2017-07-13 10:06:08 -07:00
Lucas Dupin
717dd58c52 Merge "In-app gradient color based on systemui theme." into oc-dr1-dev 2017-07-13 17:03:47 +00:00
Adrian Roos
e3fd65f9e5 Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev am: 3fbd93056e
am: 6d626acdbf

Change-Id: Iabff9ca955aef414ad7e62e0c68e2774ff01c9b7
2017-07-13 12:17:44 +00:00
Adrian Roos
6d626acdbf Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev
am: 3fbd93056e

Change-Id: I8bc8e01a97711fdd30ff59aeb72d38e8acaa7c75
2017-07-13 12:10:21 +00:00
Adrian Roos
3fbd93056e Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev 2017-07-13 12:01:52 +00:00
Michael Wachenschwanz
b05a3c5f20 Add Foreground Service Timer
Create a new timer to keep track of time spent in the Foreground Service
state. Expose said timer so Settings can use foreground service time in
its battery usage calculations.

Test: bit FrameworksCoreTests:com.android.internal.os.BatteryStatsNoteTest
Bug: 38313557
Change-Id: Ib30e9354665343262c6796c630b180a444bed88c
2017-07-12 18:06:35 -07:00