Commit Graph

8259 Commits

Author SHA1 Message Date
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
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
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
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
Yang Ren
363c238b5e Merge "Change Media Route Button animation images" 2017-07-13 00:03:51 +00:00
Jesse Hall
42cf26ecc9 Preload app-process HALs in Zygote
Some HALs, like a.h.graphics.mapper, are always passthrough and are
used by nearly all app processes. Preload those in Zygote to save app
startup time and share more pages between processes. This has the side
effect of also preloading a bunch of HIDL-related system and vndk
libraries that would also otherwise be loaded independently by every
app.

An earlier attempt at this change tried to preload the HAL via a
static initializer in libui.so (which is already preloaded, and which
is the immediate client of the HAL). But several other non-Zygote
processes also use libui.so, and didn't have SELinux permission to
access the device nodes used by the HAL. This version uses an explicit
call from Zygote to preload the HAL, instead of doing it implicitly.

Bug: 62353585
Test: check that a.h.graphics.mapper is in /proc/`pid zygote64`/maps
Change-Id: I42405c3b6cdf1ae412039140d656d15a6d4f8882
(cherry picked from commit 1fe1dc0131)
2017-07-12 20:44:52 +00:00
Selim Cinek
a554ba6e2e Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev am: 997e4ac2bb
am: 727b06b498

Change-Id: I5bb0e7dd6712316f0e349795fb9d607a7bc92b9c
2017-07-12 19:36:02 +00:00
Selim Cinek
727b06b498 Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev
am: 997e4ac2bb

Change-Id: Ifffc5f1dfe2a5d606e5eae128cbe0a331d4aaf7c
2017-07-12 19:31:33 +00:00
TreeHugger Robot
997e4ac2bb Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev 2017-07-12 19:23:16 +00:00
Lucas Dupin
c77b71d7f0 In-app gradient color based on systemui theme.
When viewing your scrim on top of an app (wallpaper not visible),
the gradient color should be dark if your wallpaper is dark and
light if your wallpaper is light.

Change-Id: I5f3aea5bf9ec066b7caecd7cadfd2814e3758bd1
Fixes: 63121129
Bug: 63365056
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
2017-07-12 10:40:23 -07:00
Selim Cinek
47ec33918b Using transformation method in the ImageFloatingTextView
Otherwise things like singleline and password don't work.

Test: runtest -x core/tests/coretests/src/com/android/internal/widget/ImageFloatingTextViewTest.java
Change-Id: I9d7d13c038be38319e6516715137789f612a43f7
Fixes: 36713596
2017-07-12 19:24:24 +02:00
Geoffrey Pitsch
d13dfdf50f Merge "canBeModified accessors for AmbientDisplay pickup setting" into oc-dr1-dev am: 7c9a6b502a
am: 804322ee01

Change-Id: I19c58b8be852ab0a705b02f02d0b712bfefd3458
2017-07-12 17:14:40 +00:00
Geoffrey Pitsch
804322ee01 Merge "canBeModified accessors for AmbientDisplay pickup setting" into oc-dr1-dev
am: 7c9a6b502a

Change-Id: I40ced751c59fbc10d0a23a3e06fe66cc59eafd17
2017-07-12 16:59:14 +00:00
Adrian Roos
d0963a07d1 AOD: Implement long press gesture to launch assist
Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1; turn screen off, long press, verify assistant is launched
Change-Id: I87335d3c091bbb17022d79e599f46fb826039b7d
2017-07-12 15:25:50 +02:00
Hugo Benichi
4cbefd0aca Merge "Add first OWNERS files for core networking" am: 4066930a36 am: 531cae76fd am: 59de81533d
am: 5185c1ce92

Change-Id: I3d0b7bcc72c21485671602d1e6f185fbc7702fe2
2017-07-12 04:13:53 +00:00
Hugo Benichi
5185c1ce92 Merge "Add first OWNERS files for core networking" am: 4066930a36 am: 531cae76fd
am: 59de81533d

Change-Id: Id149a16336fd5adfe8b247bb4b116db1ee357653
2017-07-12 04:07:18 +00:00
Hugo Benichi
59de81533d Merge "Add first OWNERS files for core networking" am: 4066930a36
am: 531cae76fd

Change-Id: I099ee71d8b9ed767af2f4556e4798a1263dab9c0
2017-07-12 04:01:15 +00:00
Hugo Benichi
531cae76fd Merge "Add first OWNERS files for core networking"
am: 4066930a36

Change-Id: Ib8e1b85be03ad5e75a89a7951a59b9bc2a04d112
2017-07-12 03:54:57 +00:00
yangren
d9125cf9df Change Media Route Button animation images
Bug: 34690983
Change-Id: Id68195fbba06102e8d860d89b8167400c8c8230f
2017-07-11 18:08:10 -07:00