• Home
  • History
  • Annotate
  • only in /frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ba7564dafa97c537742d201a7ebe5ad013789eb4 01-May-2018 Alison Cichowlas <asc@google.com> Remove ticker text for screenshot saving notification.

Info here is duplicated in the context text, and was read twice for a11y.

Test: Manual, with TalkBack - trigger several SS notifications.
Bug: 77585533
Change-Id: I369c749df3030536f7118661262228d1882ab1b8
lobalScreenshot.java
2b840257be3898efe82db12bc3cf4b02e9d31db0 27-Mar-2018 Alison Cichowlas <asc@google.com> Update screenshot saving strings.

Bug: 76418893
Test: String changes; manually verified.
Change-Id: Ic28b9d637918abe7b21206966c4a36016b87b253
lobalScreenshot.java
d12297775550cb7987bcad5c07eb372dd9d95a87 21-Mar-2018 Adrian Roos <roosa@google.com> Screenshot: extend scrim under cutout

Change-Id: I931f1017650240583eac3423d257e9385a7af097
Fixes: 76012211
Test: Enable cutout, take screenshot, verify scrim does extend under status bar
lobalScreenshot.java
037d80887917b11cbb7445c8835a5ad57080b452 18-Mar-2018 Julia Reynolds <juliacr@google.com> Update system notification text

Test: atest SystemUITests
Bug: 75436062
Change-Id: I91dbc9d02d9997133bb9001de493a28b8afbbb2e
lobalScreenshot.java
f280653c43987491c232a05b7a269f6dadae2169 07-Mar-2018 Alison Cichowlas <asc@google.com> Screenshots: delete, default for edit intent.

Revive delete action in screenshot notification; add config option
to specify default component to handle edit.

Test: Manual with Markup app & empty option.
Change-Id: If0fd90bf8eeb5667c51f3d959d3f77b28c5a33ce
lobalScreenshot.java
519ad488a5157143e883e437b1e259472280c746 13-Feb-2018 John Reck <jreck@google.com> Switch to public API version

Use the public API version of the same thing that the private API
access was doing. No behavior change.

Test: built
Change-Id: I4a9032cfb1d4e699f72df3b079ef363d308419e8
lobalScreenshot.java
4f1297a9d336291c6fccdcf7e621989361331814 30-Jan-2018 Alison Cichowlas <asc@google.com> Grant read/write permissions on share/edit screenshot.

Test: Manually tested, being sure to cover receiving apps
without auto-granted permissions.

Change-Id: I868240449a4ec07715607f82981eee6a5bee210e
lobalScreenshot.java
08abf6df976496752bcfa4c548b7e9a18531139b 23-Jan-2018 Alison Cichowlas <asc@google.com> Force screenshots to heads-up priority.

Test: updated ChannelsTest; manually verified heads up ss posted and old channel deleted.

Change-Id: Iafc1c65d3e8a5929ba922a2814848ce5bc036747
lobalScreenshot.java
134f2cc9b17e1d9d7f051054133fba3239669c72 20-Jan-2018 Alison Cichowlas <asc@google.com> Screenshots - add edit action and remove delete.

Test: Manually verified new notification action.
Bug: 65386835
Change-Id: Ia71ffc202970e32062d4c3561db9ab1da9137bf2
lobalScreenshot.java
a2cd19e3d1c0ec0ad0932bb033a53b9e7e009537 06-Dec-2017 Alison Cichowlas <asc@google.com> Screenshot global actions item.

Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
akeScreenshotService.java
a053926304914385ca2d5c5c303c987071bb78b9 12-Dec-2017 chaviw <chaviw@google.com> Copy hardware bitmap to a new hardware bitmap for new properties.

The previous code copied the hardware bitmap to a software bitmap so
properties like size and matrix could be updated. Instead, copy the
hardware bitmap to another hardware bitmap when adjusting the
properties.

Test: Screenshots notification from status bar and lock screen contain
the new bitmap with the correct size.
Fixes: 69929720

Change-Id: Ia0bd20a0085a15cfebbe0dfffddcd834363a6964
lobalScreenshot.java
1da9cd9b8444709d29a92610b738ca88386fe239 06-Dec-2017 chaviw <chaviw@google.com> Convert screenshot hw Bitmap to sw Bitmap for screenshot preview.

Bitmaps created from SurfaceControl.screenshot are hardware Bitmaps. In
order to update the size for the screenshot preview, the Bitmaps need to
be converted to software Bitmaps first.

Also updated the SurfaceControl docs to make this clear.

Fixes: 69929720
Test: Notifications from lock screen and status bar show the screenshot
preview.

Change-Id: Iebc4a261216f3d965e1c98a77c27cc0cb2e442af
lobalScreenshot.java
a69e0a7d7c11d586c5a3ff74306a41c1456fd250 30-Nov-2017 chaviw <chaviw@google.com> Update screenshot requests to render proper crop and rotation.

The previous screenshot requests in SystemUI would generate a bitmap
and then adjust crop and rotation afterwards. Bitmaps from screenshots
are now hw Bitmaps so they can't be updated in software. Instead request
the proper crop and rotation from the native code to generate a Bitmap
with the correct configurations.

Change-Id: I4591c468b055c784460e5ddf2f9163ffa943c2ee
Fixes: 69898957
Test: Manual screenshots work and bugreport screenshots work in landscape.
lobalScreenshot.java
d7ec64ccd0c2b180fc9fd3ff526642e5e7e28af0 30-Nov-2017 Chavi Weingarten <chaviw@google.com> Revert "Revert "Updated screenshot code to reflect native changes.""

This reverts commit ea2eb5a14447869325ced829910f072c81913ef3.

Reason for revert: Ready to test out changes with SystemUI update

Change-Id: I9c8d5672a530334300bc1ea454a7fd7900296c7c
lobalScreenshot.java
ea2eb5a14447869325ced829910f072c81913ef3 29-Nov-2017 Chavi Weingarten <chaviw@google.com> Revert "Updated screenshot code to reflect native changes."

This reverts commit 689e091c7faa30f005b9adc0b7b3d2066c62be84.

Reason for revert: SystemUI and some other places need to be updated as well. Will resubmit with the other necessary changes

Change-Id: I8d1955b289d91a89c4d3f117c0ba0c3119ff51fc
Bug: 69898957
lobalScreenshot.java
689e091c7faa30f005b9adc0b7b3d2066c62be84 21-Nov-2017 chaviw <chaviw@google.com> Updated screenshot code to reflect native changes.

The changes in native code removed using a GraphicBufferProducer and
instead use only a GraphicBuffer to generate screenshots. Updated JNI
code so it calls the screensot function that returns a GraphicBuffer
and handle returning either a Surface, GraphicBuffer, or Bitmap.

Also updated screencap shell code so it uses the new GraphicBuffer
screenshot code.

Test: Recents, screenshot from SystemUi, screenshot from shell.
Change-Id: I6cb4f619e59461790a2a8f0cd2ea1192d9ae66b6
lobalScreenshot.java
ed376a36a3b33d66f532d72e1e809757e0dde90b 07-Sep-2017 Winson Chung <winsonc@google.com> Alternative fix for preventing PiP from screenshot sharing.

- Revert 942a85c6d608dd6a4a31937fe0b57ae43105d5b2
- Use a more specific fix for the triggering of PiP from the SysUI
screenshot share intent.

Bug: 63984385
Bug: 63581685
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: Click share on the screenshot action, ensure activity below does
not enter PiP
Change-Id: Id8041d50dd429030c20940dca19e5c62bbc0c6a4
lobalScreenshot.java
ed5de31075cac2c2d375a57ebb925c4e83110318 27-Jun-2017 Geoffrey Pitsch <gpitsch@google.com> Show a toast when a screenshot is taken and power saver is on.

Improvements to the power save policy for OC eliminated some
errant frames of the full animation when a screenshot is taken.
However, this resulted in no on-screen indication, which the toast
addresses.

Test: manual
Change-Id: I5bf0b534e9e848f1bbfdefec2ac637e39b7b75e4
Fixes: 37775089
lobalScreenshot.java
4a37b52406811b45e9fe82daa06fa07f4908cf28 20-Jun-2017 Daniel Sandler <dsandler@android.com> Merge "Log screenshot exceptions." into oc-dr1-dev am: 346f760280
am: 72f7be1b19

Change-Id: Icf0ccbcc09c17c0e432f86e2f204db6849cbb5ad
bc6a3043a24fe1418d611911c0097ec04c8453f1 15-Jun-2017 Marc Hittinger <trojal@google.com> Merge "Remove redundant hwaccelerated enabling."
150651baf6283336a7fd51f81ca42c5329a62441 14-Jun-2017 Dan Sandler <dsandler@android.com> Log screenshot exceptions.

Bug: 62241985
Test: none
Change-Id: Ifac3979b8eb80f3dd49bf0d40df7982e84df2671
lobalScreenshot.java
26a2b97dbe48ee45e9ae70110714048f2f360f97 17-Apr-2017 Romain Guy <romainguy@google.com> Enable wide color gamut rendering

When wide color gamut rendering is requested, hwui will now
use an rgba16f scRGB-nl surface for rendering. This change
also fixes the way screenshots are handled in the platform
to behave properly with wide gamut rendering.

This change does not affect hardware layers. They also
need to use rgba16f scRGB-nl; this will be addressed in
another CL.

Bug: 29940137
Test: CtsUiRenderingTestCases, CtsGraphicsTestCases

Change-Id: I68fd96c451652136c566ec48fb0e97c2a7a257c5
lobalScreenshot.java
fc25704a86c9c0dfb85ed04b6fd6d239c7757526 20-May-2017 Marc Hittinger <trojal@google.com> Remove redundant hwaccelerated enabling.

Hardware acceleration is enabled on the application level in the
manifest. This cleanup-only CL removes redundant calls to enable
hardware acceleration on the level of activity, window, or view.

Test: Ran systemUI jank tests checking for lack of jankiness.

Change-Id: I37a9b687be3aaf95f9ba497e99cabd5f8c73ace1
lobalScreenshot.java
ec3d9ca9f64a01d0b38ef6b06fe65700689934f0 09-Feb-2017 phweiss <phweiss@google.com> Show policy transparency dialog after failed screenshot

If an admin disables screen capture, and a screenshot is attempted,
a notification is displayed. Now, tapping it brings you to the policy
transparency dialog.

Bug: 27365337
Test: manual
Change-Id: I93db6e7f508a3d9bbd4483bbf5a7b84eb8beb0af
lobalScreenshot.java
1dc93bc407540561ebba1cc007073ab9c71d7a4e 31-Jan-2017 Geoffrey Pitsch <gpitsch@google.com> SystemUI uses Builder API with NotificationChannel

Some changes to channels based on UX feedback.

Test: runtest systemui
Change-Id: I1b2f661ba145d6926035f992231dc3c2f8cbf844
lobalScreenshot.java
8e032e15e6b1b6a2f44fd3d5063ee83f45d71189 25-Jan-2017 Dan Sandler <dsandler@android.com> Notification Channels come to SystemUI's own notifications.

There are five channels at present:
ALERTS - low battery etc.
SCREENSHOTS - progress & result
SECURITY - notifications hidden due to policy
STORAGE - disk low
STATUS - basically everything else

The importance for each channel should match the legacy
priority of the notifications it carries.

Bug: 34250937
Test: runtest systemui
Change-Id: I5915ca453258caea63b0d9bd756893db05e8d600
lobalScreenshot.java
5e6c0ffd3e91cf0c5872de3e2d99e225ad1468f4 05-Jan-2017 Chris Wren <cwren@android.com> Create a global registry for system message IDs

Port all system UI notifications to use the registry. Retain stable
integer IDs where they exist. Assign new stable IDs where resource IDs
were previously used.

Using "message" rather than "notification" since we may eventually
want to include dialogs and toasts.

Bug: 32584866
Bug: 30995038
Test: runtest systemui
Change-Id: Iec4d7cebbd88683e339ada29a279315222699942
lobalScreenshot.java
72b84a23c994a16c2e1154ab510fd8669cd38b56 02-Dec-2016 Jeff Sharkey <jsharkey@android.com> Grant Uri permissions for new screenshots.

The receiving app may not have the needed permissions to see the
screenshot when launched.

Test: builds, boots, no longer logs
Bug: 33275110
Change-Id: I8b9b4fea2f78f37af543a90309cb34994366850b
lobalScreenshot.java
508b4e6de8fcc531e0fc4f5497d0c01aa98eeee3 28-Jun-2016 Jeff Sharkey <jsharkey@android.com> Skip screenshots when user storage is locked.

Screenshots are written to shared storage, which isn't available
until after the user unlocks their device for the first time. So
instead of showing a misleading animation and then the "failed to
persist" notification, skip the screenshot completely when storage
is locked.

Bug: 27208608
Change-Id: I654c6688f68b2395f6e6065aa716551948f302b3
akeScreenshotService.java
e25c18da7d2cc3e02620dadfcb976521821bc9d8 18-Jun-2016 Adrian Roos <roosa@google.com> SystemUI: Override notification app name

Overrides the notification app name for all SystemUI notifications.

Change-Id: Ic7676069aa03d5b83f0fbe0e8c3ad9820453118a
Fixes: 26517701
lobalScreenshot.java
d52ea0c218392bc58e546d9fb2435557bcb55111 14-Apr-2016 Dan Sandler <dsandler@android.com> Show "Android System" instead of "System UI" in screenshot notifications.

Bug: 26517701
Change-Id: I0f4a58531066c49fed90bcdd78c92a4f212ada3b
lobalScreenshot.java
44dbe294fbf06a1def61c48e758621e61ce23b08 10-Mar-2016 Winson <winsonc@google.com> Fixing issue where screenshot notification remains non-dismissible.

- Ensure that we start the screenshot as a foreground service to reduce
likelihood that it is killed while taking a screenshot.
- If the screenshot process times out or gets killed for any reason,
ensure that we update the notification with an appropriate error
message.

Bug: 27389179
Change-Id: I5007bda95538044bc753e4ceffd2f59a069c857b
creenshotServiceErrorReceiver.java
c7aa65b8d5e1596b8c1e11ad676725943169d272 10-Mar-2016 Winson <winsonc@google.com> Prevent crash with invalid cancelled params.

Bug: 27368990
Change-Id: I3eaa9e0391a4149da29bb5dc638ef152f5125bc6
lobalScreenshot.java
6ca619fe1aff489e1227b0db6a77c96e973a1db3 08-Mar-2016 Muyuan Li <muyuanli@google.com> Partial screenshot

Added a partial screenshot function in TakeScreenshotService
also added corresponding shortcut keys in PhoneWindowManager

Bug: 26820467
Change-Id: Id67cd3b4b0eed848eb4665056766546500bdac88
(cherry picked from commit 03e45541e9d54a2f285906ac7b5bcb374db14495)
lobalScreenshot.java
creenshotSelectorView.java
akeScreenshotService.java
e559171fe1458ced8b7b0f8bb19c97b3982ab4c7 18-Feb-2016 Winson <winsonc@google.com> Fixing issue with persistent screenshot notification

- Ensure that we dismiss notifications when cancelled
- Removing unnecessary notification id and cancel extra
- Fixing the strings when capturing a screenshot fails

Bug: 27149651
Bug: 27177097
Change-Id: Ie2ea4318309fff4041acb04833216fdd5cf8838a
lobalScreenshot.java
d9cd20b16325b90d5ddcdb00147f97f40dca9ff9 13-Nov-2015 Dan Sandler <dsandler@android.com> Fix crash on second screenshot.

(Work around new animator.end() behavior.)

Bug: 25601129
Change-Id: I9e5d9fc72cffa909dfd98ad80b7812df2a0e178a
lobalScreenshot.java
1b87be470af068cd9ee3e1d629df13813c584266 02-Jun-2015 Winson Chung <winsonc@google.com> Use immutable ashmem bitmaps in screenshot notifications.

Bug 21037890
Change-Id: Ib5ed32bb475e1e8f7b3407ac72f53a6d640ffad1
lobalScreenshot.java
ebd77b550be51ccb535b76ac5ba04d37658d2a45 29-May-2015 Winson Chung <winsonc@google.com> Ensuring that we write to disk first.

Change-Id: I2c55db77ab6feef1b405858aac53fb0ed3370dc2
lobalScreenshot.java
8858e6e98dfd9f1bbc8bea2688aacd59a65de1eb 28-May-2015 Winson Chung <winsonc@google.com> Adding a delete action to the screenshot notification.

Bug: 21161917
Change-Id: I03e2073ef09e9aea00b523eddbe2b9122d280d89
lobalScreenshot.java
c6caff84a4d8d22d7764950e1f2ed81087cc94d8 27-May-2015 Winson Chung <winsonc@google.com> Fixing issue with screenshot icon being stretched.

Bug: 17491725
Change-Id: Iea36ed204dc9431fe1d80be5224a1fcbf6ff1c40
lobalScreenshot.java
d63f9321e62064660d426efd5abbd885c4a24652 06-May-2015 Dan Sandler <dsandler@android.com> Icon support comes to Notification.

And you may ask yourself: what is that beautiful icon?
And you may ask yourself: where does that API go to?
And you may ask yourself: is it a resource? is it a Bitmap?
And you may say to yourself: my god, what have I done

(This patch fixes a number of bugs in the initial
implementation, but other than that, it's the same as it
ever was.)

Bug: 18568715
Bug: 21141842
Change-Id: I1d3f9427abd7f0bb57e533fcfac708851ff644b6
lobalScreenshot.java
09e51a739f3e408567f0eefafcc5fedb01bc3401 14-May-2015 Daniel Sandler <dsandler@android.com> Revert "Icon support comes to Notification."

This reverts commit 08a04c15245c970856022d0779aa27d4d63cdee3.
This also reverts commit 5bcbf857d129f4513e562801a4e88077b2655ade.

Change-Id: Ia0b0a5339d523581c877822a3a1feec97ae4b73d
lobalScreenshot.java
08a04c15245c970856022d0779aa27d4d63cdee3 06-May-2015 Dan Sandler <dsandler@android.com> Icon support comes to Notification.

And you may ask yourself: what is that beautiful icon?
And you may ask yourself: where does that API go to?
And you may ask yourself: is it a resource? is it a Bitmap?
And you may say to yourself: my god, what have I done

Bug: 18568715
Change-Id: I4377b311c538bd1cf36b3fba22326bae81af40c9
lobalScreenshot.java
d4d34150b36e4f0722476f5eedaf279d466f5335 17-Apr-2015 Adam Powell <adamp@google.com> Cancel a screenshot notification after a share target is chosen.

Use the (relatively) new API for supplying a callback when a user
makes a selection from the system ChooserActivity to clear out the
screenshot notification after it has been shared to another app.

Change-Id: If023a26d690c5ae8e29f28e2422f694ae4b654cb
lobalScreenshot.java
b9c74ace6dc5285daafddfe78532ab2d8cc91906 03-Apr-2015 Winson Chung <winsonc@google.com> Making the screenshot filename smaller to fix issue on certain platforms.

Bug: 11574102
Change-Id: Ia71e600a6d484bc36624ae959841ae0b3f23697a
lobalScreenshot.java
4a357cd2e55293402d7172766f7f9419815fc1e8 19-Mar-2015 Alan Viverette <alanv@google.com> Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
lobalScreenshot.java
d8775100b28fd1c0cc7380226a8b2c7c312e28f7 16-Jan-2015 Chris Wren <cwren@android.com> Standardize notification IDs in the sysui package.

Use the resource system to assign IDs for notifications,
so that we know there will be no collisions.

Bug: 10671709
Change-Id: I403e89f6ec953f6e2e63520b86e2cd464ebce6b3
lobalScreenshot.java
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
lobalScreenshot.java
deb0d11a43f0503d8556b44031f4ab6e75b39bd8 07-Aug-2014 Dan Sandler <dsandler@android.com> Fix screenshots.

Bug: 16861182
Change-Id: I9433cb4a5cc100d85f06eeed18ade3ead5ba8188
lobalScreenshot.java
f63185e7bd3365b1c6207d311b23aa8ac31b1c51 31-Jul-2014 Chris Wren <cwren@android.com> Optimize large preview from the screenshot notification.

Crop out a notification_panel_width by notification_max_height
section of the screenshot for the preview.

This will only save about 25% of the bytes on a phone-like device over
the existing square crop, but on a tablet-like device the savings will be
more significant: above 75%.

Bug: 16631778
Change-Id: I05d4d402e44f7700f17b8b97018f6c00c3b0196d
lobalScreenshot.java
59f0258a27ebaf8468919a9d2855c41f0429238d 21-Mar-2014 Dan Sandler <dsandler@android.com> Categorize some system notifications.

Change-Id: Ia343bc276f50f488e2165056cff249a02f01d45a
lobalScreenshot.java
156e97fffa1afd1ba10d2185d10935758cf497dd 30-Jan-2014 Dan Sandler <dsandler@android.com> Redact public version of screenshot notifications.

It's OK to reveal that a screenshot has been taken, but the public
version of this notification no longer shows the actual screenshot
image itself (in case it was taken before the device was locked
and therefore might contain sensitive information).

Change-Id: I5ba0b64023810ece0cea56ba457968fbde4b0cbe
lobalScreenshot.java
e45e1f2efe69ba931efa88c6e33879fbc8d8c4c1 01-Oct-2013 Victoria Lease <violets@google.com> more locale-appropriate screenshot share text

The SimpleDateFormat version of this produces very poor results in
locales other than en_US. Trusting DateFormat to do its thing
produces more consistently-pleasing results across all locales.

Change-Id: I2eca2b035dfe5282cfc506080db2780bedd15dd4
lobalScreenshot.java
9b64ca7669c261728fbb3d9af081344f27373857 21-Aug-2013 Marco Nelissen <marcone@google.com> Use correct timescale for "date taken" field

Images.DATE_TAKEN is in milliseconds, not seconds.

b/10424911

Change-Id: I7b6231715ee3945bbd473039fb204881b8de3dc0
lobalScreenshot.java
209bede6b9edb9171e5bee4077b48e35004a37b4 17-Jul-2013 John Spurlock <jspurlock@google.com> Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
lobalScreenshot.java
de84f0e77ea2bf713d15c290264059a413c2486a 12-Jun-2013 John Spurlock <jspurlock@google.com> Organize the imports in systemui.

To follow android conventions, more importantly to remove the
unused.

Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
lobalScreenshot.java
akeScreenshotService.java
47611240bf601821823c9a063ed1e90f2182af40 02-May-2013 Mike Lockwoood <lockwood@google.com> Fix date fields in media database for screenshot files

Bug: 8770827
Change-Id: Ib0e8695ab00c58dc77505387a1e31ea693d416e2
lobalScreenshot.java
3a5a774954d28911bbf9eaa7dfd8329a085fbdc5 02-Apr-2013 Winson Chung <winsonc@google.com> Fixing NPE on screenshot error. (Bug 8328886)

Change-Id: Id47b8429c512c02e63d86de2ce37bd8e3ee02359
lobalScreenshot.java
akeScreenshotService.java
3866f0d581ceaa165710feeee9f37fe1b0d7067d 12-Feb-2013 Mathias Agopian <mathias@google.com> split Surface in two classes: SurfaceControl and Surface

SurfaceControl is the window manager side; it can
control the attributes of a surface but cannot push buffers
to it. Surface on the other hand is the application (producer)
side and is used to push buffers to the surface.

Change-Id: Ib6754c968924e87e8dd02a2073c7a447f729f4dd
lobalScreenshot.java
5cc9a31534749d8bc220ab577b1e201c0239e282 11-Feb-2013 Winson Chung <winsonc@google.com> Manually recycling bitmap memory when rotating ss, resetting canvas bitmap, adding logging. (Bug 7974275)

Change-Id: I1b0590a297610ee5fee4e68222144780ab6e55ec
lobalScreenshot.java
akeScreenshotService.java
0e6232c7461a6ce7a556a81121039fbea7889271 22-Jan-2013 Winson Chung <winsonc@google.com> Cleaning up listeners and AsyncTasks.

Change-Id: I97dc44c93590764e1f9c6708ac2a9e30f65e1c8f
lobalScreenshot.java
103bc3342efe2a8a9a3a26f2e115bd1b58e0ed77 17-Jan-2013 Winson Chung <winsonc@google.com> Merge "Clearing screenshot bitmap references and recycling bitmap data immediately after saving. (Bug 7974275)"
80b54ded7442de38e60112e07773d7dd25ae26d2 17-Jan-2013 Jeff Sharkey <jsharkey@android.com> Create directory on background thread.

Bug: 7726949
Change-Id: I707431075055cddb8da2c2bca37e91a846938dce
lobalScreenshot.java
cd6a9ef58c4a01b9117e74fb9223a773898f68a0 16-Jan-2013 Winson Chung <winsonc@google.com> Clearing screenshot bitmap references and recycling bitmap data immediately after saving. (Bug 7974275)

Change-Id: Icb71d28eb80105757026d7fac530db936b327500
lobalScreenshot.java
149e02cb61d0c5004a046e7719fe6e03b685247d 16-Jan-2013 Jeff Sharkey <jsharkey@android.com> Create screenshot directory if missing.

Also use File to build paths instead of String template.

Bug: 7726949
Change-Id: I9aa0e6a0890c5450fe11e8007f8f4cb2e3287256
lobalScreenshot.java
5aa011b18a532a1ffa598649230e3cf33822d48e 07-Nov-2012 Doris Liu <tianliu@google.com> Adding width and height into screenshot metadata

Bug: 7486020
Change-Id: I375cf9f1065bd1c75558d5f986e7e483cfd4a404
lobalScreenshot.java
224848f9ba6e8d9134ce907c34c0b9f850078794 19-Jul-2012 Winson Chung <winsonc@google.com> Fixing issue where screenshot error message is clipped and share action is missing subject. (Bug 6800151, Bug 6721459)

Change-Id: Ie0ef654d660706607276069ae9b93b61ad94b2be
lobalScreenshot.java
4f329cb77df5c53a677e5f2bcf695f6cdbe06658 28-Jun-2012 Michael Jurka <mikejurka@google.com> Merge "Fix warnings and remove dead code"
a600fd9ba76e7916f18521447446671f0e431560 26-Jun-2012 Michael Jurka <mikejurka@google.com> Fix warnings and remove dead code

Change-Id: Ifd1bcd8f5be181b115910f2f8918e1e50975a790
lobalScreenshot.java
1927ae8a56a010919a7535231fa0f7db70f7e152 23-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6717667: expanded notification actions don't work on the lock screen

FLAG_ACTIVITY_CLOSE_SYSTEM_DIALOGS was a mistake.

Instead, and the infrastructure for the status bar to take care
of closing and hiding things itself when you press these buttons,
just like it does for the main Intent of the notification.

Bug: 6717667
Change-Id: I1b22186e0cedc05f46a1a3ec78053a72afaf61b1
lobalScreenshot.java
046fddff5beabd21b9e9e0c6ae24ba11ab444f0d 31-May-2012 Daniel Sandler <dsandler@android.com> Present a one-time chooser when sharing screenshots.

Bug: 6561747
Change-Id: I0ee98d10e6927a9166e643a4a965285a62379a9b
lobalScreenshot.java
3745a3da759a9510554c8d2c59f09185e52ed403 22-May-2012 Chris Wren <cwren@android.com> BigPicture notifications for screenshots.

Needed a little extra help from the builder to make this
happen (like the title, you might want a different largeIcon
in the expanded view if---as in this case---it is redundant
with the big picture).

Needed to fix BigPicture template to reveal actions.

Bug: 6289107
Change-Id: I19dc62e693ee2c87cbe82f7327fe9115768b4102
lobalScreenshot.java
e69095869c1b324aa20991ed1805c492c3f731e8 01-Mar-2012 Eino-Ville Talvala <etalvala@google.com> NEW_API: Rework CameraSound into MediaActionSound, and unhide it.

MediaActionSound is a helper class for applications that use the
camera, or include camera-like behavior such as taking
screenshots. This class helps applications match the sound-playing
behavior of the Camera.takePicture, MediaRecorder.start, and
MediaRecorder.stop methods.

This is useful for applications that don't use the above methods, but
still logically capture images or video, such as the panorama capture
feature and the video effects in the platform camera application.

Bug: 5029099
Change-Id: I829f6e2941f167f91f9cb506215b7232cb054958
lobalScreenshot.java
a46d77863565671cd19b79f8af441d8d658953be 05-Jan-2012 Winson Chung <winsonc@google.com> Fixing crash when taking screenshot over secure window.

Change-Id: If3d4e458030e37aae3310b23dcad2ff5fe29fa73
lobalScreenshot.java
8d513eaef78f2d908dba41968ef8a13d36bb7a68 01-Dec-2011 Winson Chung <winsonc@google.com> Adding a sound when you take a screenshot. (Bug 5617734)

Change-Id: I7f253adddd09da65481081a4ca22f043d3325d65
lobalScreenshot.java
8279acb965abedb5cc1942c399c078eb477cec7a 29-Nov-2011 Romain Guy <romainguy@google.com> Improve screenshot animation performance
Bug #5525888

Uses only 25% of the original amount of OpenGL API calls
Fillrate usage is now 1x the screen size instead of 5x

Change-Id: Icc7d2793f276fb7ce23c7f652079e54e3d4779d5
lobalScreenshot.java
9c99aee5b9ea0b929611548b48780fbffa4daeaf 14-Nov-2011 Winson Chung <winsonc@google.com> Defer adding large icon until when we compose the final notification. (Bug 5566846)

Change-Id: I9f156d7b597112ce14e274f05df421100c9481e6
lobalScreenshot.java
53c92820da4613993b7c84a7c439508fe44e0d2a 27-Oct-2011 Winson Chung <winsonc@google.com> Using fast-invalidate pattern for screenshot animations.

Change-Id: I33e2dc72986a1e0309b33e9e4a71e131396fc2c8
lobalScreenshot.java
22ca09595d4b6f4301414f26d6d502eb0e989a88 21-Oct-2011 Winson Chung <winsonc@google.com> Last update for screenshot animations for MR0. (Bug: 5333706)

- Also adding proper border asset

Change-Id: I423389d1a68498b2e470e6d483f5b7542a814c31
lobalScreenshot.java
b787a751760de544f0d83bb7ddf9405ae6e4e481 20-Oct-2011 Winson Chung <winsonc@google.com> Updating the screenshot notification icons.

Change-Id: If4c4632e73445d69f13805b6e472a167a85d6601
lobalScreenshot.java
36c9e29cc6554fc1fe34565b93c2280f6a6b4cf9 18-Oct-2011 Winson Chung <winsonc@google.com> Fixing issue where screenshot intent to file path did not show other screenshots. (Bug: 5333706)

- Upping the priority of the saving background thread

Change-Id: I274991261f46eece3773ca1f84d2a1cb7b6f4e7b
lobalScreenshot.java
a63bb84bbe98e72871c2138ab3eb517d0f9a80ef 17-Oct-2011 Winson Chung <winsonc@google.com> Updating screenshot animation and behaviour. (Bug: 5333706)

- Removing the second ticker text
- Adding a new animation to the status bar
- Adding a large icon to the notification

Change-Id: I8778178519fc72ffc299e8d624069b684475191d
lobalScreenshot.java
akeScreenshotService.java
c57ccf01fe24ce508404c99b449e9097e6d8b270 14-Oct-2011 Winson Chung <winsonc@google.com> Showing notifications after taking a screenshot (Bug: 5333706)

- Fixing issue where ticker and swipe-to-remove wasn't working for updated notifications

Change-Id: Ib8ef07778a11028c9c2627830ee1dd4561d2ae3b
lobalScreenshot.java
akeScreenshotService.java
5d927c2d8e832fcfcb0154c8741f896001141ef4 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5150899: Call activity takes 15MB we never get back.

Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
lobalScreenshot.java
fc8fa638617efb5695a1f89ea75375faebbe2a40 18-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5128639: SystemUI grows by 10MB after taking a screenshot

We now do the screenshot in a separate process.

Also change the recents panel to not use hardware acceleration
on lower-end devices. And improve how it gets shown to not
load all data up-front which results in a long delay when you have
lots of recents.

Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
lobalScreenshot.java
akeScreenshotService.java
930facd20e0344053483726e19ae1b4fa4bf8efa 11-Aug-2011 Winson Chung <winsonc@google.com> Fixing screenshot timestamp (5147168)

Change-Id: I28ce2431bdfe7025191d9a6780ba0a59175c8047
lobalScreenshot.java
6311d0a079702b29984c0d31937345be105e1a5e 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Clear the bitmap from the canvas in a lot of places.

Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
lobalScreenshot.java
9837734b640ca3a1b95812612fc01c517fb02eb4 26-Jul-2011 Mike Lockwood <lockwood@android.com> GlobalScreenshot: Set image file size in media database when taking screenshots

Otherwise the value would be left at zero since we are inserting
the database record before writing the file

Bug: 5064246

Change-Id: I54be6ff14a7f170994aaf586aaddb06c5b746e89
Signed-off-by: Mike Lockwood <lockwood@android.com>
lobalScreenshot.java
eedc6f0d7dc7dc8ce86d787ce532ed0aa2d61d91 26-Jul-2011 Winson Chung <winsonc@google.com> Merge "Using the filename as the media title for screenshots and changing filename format."
753e40b1472563987489bd5b187ced4c1b608b0d 26-Jul-2011 Winson Chung <winsonc@google.com> Using the filename as the media title for screenshots and changing filename format.

- Fixes bugs 5075366 and 5076125

Change-Id: I985be1efa8ffad7203b1bbc8d97da2d4a7156adb
lobalScreenshot.java
d859fa399133da32705415e138c897f263ae99ad 22-Jul-2011 Winson Chung <winsonc@google.com> Preventing screenshots when waking from sleep.

- Fixing crash in SystemUI when trying to access external storage while it is not mounted

Change-Id: I3d9a05c155b83a2cc39915caebad4b7016025d09
lobalScreenshot.java
9112ec3039dda4186c6f957981237c0691db2269 27-Jun-2011 Winson Chung <winsonc@google.com> Binding Pwr+VolDown to take screenshot.

Change-Id: I77b018538f6bc870f59df0b5336ba95f4582beec
lobalScreenshot.java
akeScreenshotService.java