122830 Commits

Author SHA1 Message Date
Dan Sandler
bfe61f696d Make some notifications public (safe for secure lockscreens):
- USB connected
 - ADB enabled
 - Low storage
 - USB mass storage status
 - Tethering status

Change-Id: I8224d7bcc8141fc90ac5e28d4392c52724c524a7
2014-01-30 14:20:43 -05:00
Dan Sandler
87b9ef5228 Merge "Redact public version of screenshot notifications." 2014-01-30 18:33:58 +00:00
Dan Sandler
1b7be3465d Merge "SystemUI support for notification visibility." 2014-01-30 18:33:47 +00:00
Dan Sandler
f56834018d Merge "Notification visibility APIs." 2014-01-30 18:33:41 +00:00
Dan Sandler
156e97fffa 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
2014-01-30 13:23:14 -05:00
Dan Sandler
a5e0f415d3 SystemUI support for notification visibility.
In this implementation, DISABLE_NOTIFICATION_TICKER (which was never
really used on its own and can be safely subsumed by
DISABLE_NOTIFICATION_ICONS) is now DISABLE_PRIVATE_NOTIFICATIONS;
when this SystemUI bit is set by the keyguard, SystemUI knows to switch
its presentation into "public" mode, in which
VISIBILITY_PRIVATE notifications are replaced with their
publicVersion's contentView (or a placeholder view,
synthesized by SystemUI, that leaks no additional
information about the notification). VISIBILITY_SECRET
notifications are suppressed altogether in this mode.

This behavior is enabled but not activated by default. To
turn it on, run:

  $ adb shell settings put secure lock_screen_allow_notifications 1

and restart SystemUI.

Change-Id: Id660bef7737580e16a83f60567c22b53ee81c602
2014-01-30 13:23:14 -05:00
Scott Main
396954b5a5 am 84dabc75: am 500db2fe: am 55330921: am 8b6fa56f: am c1ae12b7: update android studio download to 0.4.2
* commit '84dabc75daf3045cc5d59971112589d32972f3b1':
  update android studio download to 0.4.2
2014-01-30 18:15:43 +00:00
Scott Main
84dabc75da am 500db2fe: am 55330921: am 8b6fa56f: am c1ae12b7: update android studio download to 0.4.2
* commit '500db2fed926e50f6fdb60ccb010724143960dd9':
  update android studio download to 0.4.2
2014-01-30 18:12:46 +00:00
Scott Main
500db2fed9 am 55330921: am 8b6fa56f: am c1ae12b7: update android studio download to 0.4.2
* commit '55330921c93f3ed6f277fed4d98a2133dd3ab47a':
  update android studio download to 0.4.2
2014-01-30 18:09:16 +00:00
Scott Main
55330921c9 am 8b6fa56f: am c1ae12b7: update android studio download to 0.4.2
* commit '8b6fa56f5cdb66ed1bafb7920ba8299ee8b3034a':
  update android studio download to 0.4.2
2014-01-30 18:06:44 +00:00
Scott Main
8b6fa56f5c am c1ae12b7: update android studio download to 0.4.2
* commit 'c1ae12b7d891ff3598d03f52a0e817876d7921e3':
  update android studio download to 0.4.2
2014-01-30 18:03:05 +00:00
Dan Sandler
0bf2ed8ae3 Notification visibility APIs.
The new visibility property allows an application to signal
to SystemUI whether a notification's contents are safe to
show in "public" situations, i.e. outside of a secure
lockscreen, or whether they should be treated as "private"
(where only the icon is revealed).

Apps that post information that includes no personal or
sensitive information (e.g. a weather alert) can use
VISIBILITY_PUBLIC to allow users to see (and potentially
even dismiss) this kind of notification without unlocking
their devices.

The historical treatment of Android notifications
corresponds to VISIBILITY_PRIVATE, which is the default
visibility setting for all notifications, including apps
that are not aware of this API.

VISIBILITY_PRIVATE notifications may optionally specify a
publicVersion, which is a whole other Notification object
whose contentView will be shown in public contexts. This
allows an app to provide a "redacted" public version of its
notification that is more useful than the system-supplied
version (showing just the icon and app name) but still
conceals private information. For example, a messaging app
that today posts a Notification including the sender and
contents of each message could additionally specify a
publicVersion that says, simply, "N new messages".

There's also VISIBILITY_SECRET for notifications that should
be totally concealed (that is, no icon) in public contexts.
To reveal any hint of this kind of notification would
require the user to unlock the device.

Change-Id: I1552db36c469954d27d3c92ba21ac5c703d47ae1
2014-01-30 12:26:30 -05:00
Scott Main
c1ae12b7d8 update android studio download to 0.4.2
Change-Id: Icf789bb6a2cfb254b25e865e2a60ec4717887afa
2014-01-30 09:02:25 -08:00
Scott Main
015d67f449 am 959c5d5e: am ec20f347: am 46cf9087: am e49346dc: am eb35de00: Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs
* commit '959c5d5ef9be28a054b6dd61a9f660dfe967351b':
  Revert "add warning to all the new iberico API pages about SDK not available yet"
2014-01-30 16:55:04 +00:00
Scott Main
7874b53c4e am fb6f1e39: am 599bb934: am 759c6305: am 0d9f5b64: am e627eaee: Merge "Revert "add api notice to cast package index"" into klp-docs
* commit 'fb6f1e390100c292ad305a97f1af31f9d20f0dd4':
  Revert "add api notice to cast package index"
2014-01-30 16:54:56 +00:00
Scott Main
959c5d5ef9 am ec20f347: am 46cf9087: am e49346dc: am eb35de00: Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs
* commit 'ec20f347e71f6ca35cd88b747a9b0ba2a81744cd':
  Revert "add warning to all the new iberico API pages about SDK not available yet"
2014-01-30 16:51:09 +00:00
Scott Main
c22327c2a6 am cbc8a872: am 648729ad: am 540306be: am eee01505: am 36d7dfb7: Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs
* commit 'cbc8a872cc7bbf3bb6d64b262b070e6321644bcc':
  Revert "add api notice to a bunch more files in iberico release"
2014-01-30 16:50:53 +00:00
Scott Main
fb6f1e3901 am 599bb934: am 759c6305: am 0d9f5b64: am e627eaee: Merge "Revert "add api notice to cast package index"" into klp-docs
* commit '599bb93400d719d2570f8d84bdbc63c9ed4f85d0':
  Revert "add api notice to cast package index"
2014-01-30 16:47:16 +00:00
Scott Main
ec20f347e7 am 46cf9087: am e49346dc: am eb35de00: Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs
* commit '46cf90878e49f15a94db28366da581e9f11c9a4c':
  Revert "add warning to all the new iberico API pages about SDK not available yet"
2014-01-30 16:46:59 +00:00
Baligh Uddin
d966de98e7 Merge "Import translations. DO NOT MERGE" 2014-01-30 16:43:31 +00:00
Baligh Uddin
c336fc9337 Merge "Import translations. DO NOT MERGE" 2014-01-30 16:43:29 +00:00
Baligh Uddin
ced263e41d Merge "Import translations. DO NOT MERGE" 2014-01-30 16:43:25 +00:00
Scott Main
cbc8a872cc am 648729ad: am 540306be: am eee01505: am 36d7dfb7: Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs
* commit '648729adb4c75199d6464c32cf9eb26cffacb680':
  Revert "add api notice to a bunch more files in iberico release"
2014-01-30 16:43:13 +00:00
Scott Main
599bb93400 am 759c6305: am 0d9f5b64: am e627eaee: Merge "Revert "add api notice to cast package index"" into klp-docs
* commit '759c6305b227fbb22a031b9ac561f8f23ca41a0f':
  Revert "add api notice to cast package index"
2014-01-30 16:43:07 +00:00
Scott Main
46cf90878e am e49346dc: am eb35de00: Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs
* commit 'e49346dcb213cc96f910c798e4aa00688197af9a':
  Revert "add warning to all the new iberico API pages about SDK not available yet"
2014-01-30 16:42:44 +00:00
Scott Main
648729adb4 am 540306be: am eee01505: am 36d7dfb7: Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs
* commit '540306be15f9d15a93ef05db870653d5a5e7bc38':
  Revert "add api notice to a bunch more files in iberico release"
2014-01-30 16:38:54 +00:00
Scott Main
759c6305b2 am 0d9f5b64: am e627eaee: Merge "Revert "add api notice to cast package index"" into klp-docs
* commit '0d9f5b640c31a5bce699419a93a98acef1471db7':
  Revert "add api notice to cast package index"
2014-01-30 16:38:46 +00:00
Scott Main
e49346dcb2 am eb35de00: Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs
* commit 'eb35de00dec9444e0c46ac641a74d058be48d547':
  Revert "add warning to all the new iberico API pages about SDK not available yet"
2014-01-30 16:38:33 +00:00
Scott Main
540306be15 am eee01505: am 36d7dfb7: Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs
* commit 'eee015057a2abfaef2ac7360a5536605e7d74e05':
  Revert "add api notice to a bunch more files in iberico release"
2014-01-30 16:34:52 +00:00
Scott Main
eb35de00de Merge "Revert "add warning to all the new iberico API pages about SDK not available yet"" into klp-docs 2014-01-30 16:34:26 +00:00
Scott Main
0d9f5b640c am e627eaee: Merge "Revert "add api notice to cast package index"" into klp-docs
* commit 'e627eaeebe061e3fc586a78c8837d1b780d0741b':
  Revert "add api notice to cast package index"
2014-01-30 16:34:26 +00:00
Scott Main
5a6c979c80 Revert "add warning to all the new iberico API pages about SDK not available yet"
This reverts commit e724990230d267c13f8f820b5fdbe7c58b25d344.

Change-Id: I1415bf9542b01b57b1802115466288ec93ab6987
2014-01-30 16:33:50 +00:00
Scott Main
e627eaeebe Merge "Revert "add api notice to cast package index"" into klp-docs 2014-01-30 16:31:44 +00:00
Scott Main
eee015057a am 36d7dfb7: Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs
* commit '36d7dfb7e816836dbc6039237cadd3382e10d5b2':
  Revert "add api notice to a bunch more files in iberico release"
2014-01-30 16:30:26 +00:00
Scott Main
f6617d0fa7 Revert "add api notice to cast package index"
This reverts commit 845bcc6d344765a0ea7cfcf0b4ac398774d06f94.

Change-Id: I07b047f1b44e8b9b32bb4b36b6f858cdef9fed9e
2014-01-30 16:28:27 +00:00
Scott Main
36d7dfb7e8 Merge "Revert "add api notice to a bunch more files in iberico release"" into klp-docs 2014-01-30 16:26:21 +00:00
Scott Main
df2cb1e521 Revert "add api notice to a bunch more files in iberico release"
This reverts commit c62223a04d15da4240129a9b05ad0be965f08ee4.

Change-Id: If3cee4062e2f48a3c1e365f025701e6d1de9c9d4
2014-01-30 16:25:38 +00:00
Michael Jurka
2ac4f3b225 Merge "Don't set suggested wallpaper dimensions in default wallpaper cropper" 2014-01-30 14:34:56 +00:00
Przemyslaw Szczepaniak
8399aae0a0 Add public SynthesisRequestV2 constructor.
While implementing the new TTS API, I found out that it's very difficult
to create an SynthesisRequestV2 instance for testing purposes - it's
a final class, with no publicly visible constructors.

Bug: 8259486
Change-Id: I88b84fd8ad1ac6960f3932863ca758657f9547ff
2014-01-30 13:27:00 +00:00
Przemyslaw Szczepaniak
1ca1d88658 Allow clients to extend the TTS UtteranceId class.
This change allows TTS clients to create (and use) classes derived from the
UtteranceId class. This allows to attach a custom data and methods that
can be reached later in callbacks that take the UtteranceId instance as
parameter.

Also, since we can't depend on the identityHashCode results being unique,
this change adds AtomicInteger to generate unique identifiers for UtteranceId
instances.

Bug: 8259486
Change-Id: Id1e9eabc890ec585a7f8570fd20e287dcda9a11d
2014-01-30 10:41:26 +00:00
Deepanshu Gupta
34b16b854a Fix build
Change-Id: Ifcbf44bc310daee4410ccc6ddf6bdc44565e20da
2014-01-29 19:14:21 -08:00
Deepanshu Gupta
651f5e0e60 Merge "Fix native method signatures" 2014-01-30 02:47:53 +00:00
Deepanshu Gupta
9731f5796c Merge "Manual merge of changes from klp-dev" 2014-01-30 02:47:17 +00:00
Adam Koch
268d7ad329 am 310b1e51: am af5b2d3f: am 6e1ce75f: am b430d93b: am cb3ea3d4: Merge "Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659" into klp-docs
* commit '310b1e511f92c6972ccda2c7a779116fc0f89ced':
  Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659
2014-01-30 01:58:22 +00:00
Deepanshu Gupta
e05bb956ce Fix native method signatures
Some new methods have been added which are yet to be implemented.

Change-Id: Ie5a0657c7ccbe95200c270d5c15b516a385b083b
2014-01-29 17:14:40 -08:00
Deepanshu Gupta
bd28e2d9d3 Manual merge of changes from klp-dev
Manually merged the following changes from klp-dev branch and fixed
merge conflicts:
78cfdf31b7c48589ea3a148ec1d6d573235bc06b
d0581d271e814670d81a6550aa7b1e86864d5710
1f92d7fc0ffa72d7db93244c29a1a6575bb4b318
0baec410c29206dc72d9f5afba5d45827e62c00c
24541255c312ee34f9bf17eb5852cdffd4807065

Change-Id: I426729bb90a26746bfff3a0e4a03ea9f37972528
2014-01-29 16:50:40 -08:00
ztenghui
f3560a133e Merge "Merge close vertices in a better way." 2014-01-29 23:45:12 +00:00
Chris Craik
f5b5482dca Merge "Fix build breakage" 2014-01-29 23:32:52 +00:00
Chris Craik
0e7eb954f1 Fix build breakage
Change-Id: I65ab3cb691935db23b7a1f600e421fb5d8e850cd
2014-01-29 15:30:50 -08:00
Adam Koch
310b1e511f am af5b2d3f: am 6e1ce75f: am b430d93b: am cb3ea3d4: Merge "Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659" into klp-docs
* commit 'af5b2d3f2308296a7dec93e4f790fb587cd86197':
  Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659
2014-01-29 23:15:16 +00:00