Commit Graph

4506 Commits

Author SHA1 Message Date
Dan Sandler
2910f53aaa am 031339ba: am d63f9321: Icon support comes to Notification.
* commit '031339baea5c53a4e015a345261a94215c4894ba':
  Icon support comes to Notification.
2015-05-15 16:38:26 +00:00
Dan Sandler
d63f9321e6 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
2015-05-15 12:35:21 +00:00
Daniel Sandler
b5b114a3f0 am 15de90de: am 9cb90cbb: Merge "Revert "Icon support comes to Notification."" into mnc-dev
* commit '15de90de0e7f2da9e28d1b46644faeb21df13300':
  Revert "Icon support comes to Notification."
2015-05-14 19:29:55 +00:00
Wojciech Staszkiewicz
b8ee07d10c am e2ad30ef: am be752b1f: Merge "Pass charset to XmlPullParser.setInput instead of null" into mnc-dev
* commit 'e2ad30ef5168d55f7c1b4a2dc4fe699be1bf8a48':
  Pass charset to XmlPullParser.setInput instead of null
2015-05-14 19:27:51 +00:00
Daniel Sandler
09e51a739f Revert "Icon support comes to Notification."
This reverts commit 08a04c1524.
This also reverts commit 5bcbf857d1.

Change-Id: Ia0b0a5339d523581c877822a3a1feec97ae4b73d
2015-05-14 12:23:24 -04:00
Wojciech Staszkiewicz
9e9e2e73c6 Pass charset to XmlPullParser.setInput instead of null
Passing null to XmlPullParser.setInput forces it to do additional
work, which can be easily avoided if we know the charset beforehand.

bug: b/20849543

Change-Id: Iaff97be9df2d0f99d7af8f19f65934439c9658e2
2015-05-14 10:24:34 +01:00
Dan Sandler
9349eb5640 am 6da734c6: am 08a04c15: Icon support comes to Notification.
* commit '6da734c6caf0952fd030273ee861cbcc14110047':
  Icon support comes to Notification.
2015-05-14 06:39:57 +00:00
Dan Sandler
08a04c1524 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
2015-05-13 23:50:43 -04:00
Dianne Hackborn
b49e9f4fda am 8fb32071: am c352722e: Ignore small time changes in alarm manager.
* commit '8fb320717510e0703e99299f7df4543fbafcab02':
  Ignore small time changes in alarm manager.
2015-05-14 01:46:15 +00:00
Dianne Hackborn
c352722e8a Ignore small time changes in alarm manager.
It turns out switching to the new kernel alarm
reporting causes lots and lots of spurious flags
that the clock has changed.  The alarm manager
would blindly trust these, thinking the world has
changed on it and recomputing everything and reporting
this to everyone else.  This was expensive.

We now verify that the time has changed sufficiently
that it is worth caring about.  This is basically the
same algorithm that battery stats was using to avoid
recording small clock changes, so we are really just
pushing this down into the alarm manager and can now
remove that from battery stats.

Also since we are getting these so much, make use of
the other information in about the wakeup that tells us
if an alarm went off to avoid doing anything if it didn't.

Change-Id: I6f4f4226db6eb2b38ca73860786e7cf7c9136cc3
2015-05-13 17:44:05 -07:00
Jorim Jaggi
53edbb1aee am 1a4df69f: am 645edef4: Merge "Make sure the app can draw a frame before unlocking" into mnc-dev
* commit '1a4df69f4c4a63b943f3f4f4102e957adbc3e341':
  Make sure the app can draw a frame before unlocking
2015-05-13 22:34:47 +00:00
Jorim Jaggi
645edef483 Merge "Make sure the app can draw a frame before unlocking" into mnc-dev 2015-05-13 22:13:27 +00:00
Jorim Jaggi
827e0facfe Make sure the app can draw a frame before unlocking
- The mechanism to stop windows drawing while window animator was
animating was somehow flaky. It relied on the fact that the client
would call relayout() whenever the animating state changed. This is
mostly the case, but not for lockscreen animations. Instead, we now
use a push model, where window manager tells the app that the state
has changed.
- In addition, it only stopped drawing if that window was animating,
but then only resumed drawing after all windows have finished
animating. Now, we do this per window, so we only stop drawing for
windows that are currently animating.
- We resume the top activity now at the very beginning of the
unlocking sequence. This gives the app a chance to draw a frame
before the user sees anything. If it's to slow, then we just use the
outdated framebuffer.

Bug: 19964562
Change-Id: Ifef8abd189a3146d854b81b9b948861e4d38c155
2015-05-13 14:23:05 -07:00
Chris Wren
ab559c01c8 am 37d3e6dd: am 5e4027fe: Merge "induct a bunch of new logging categories." into mnc-dev
* commit '37d3e6dd53311f12585b9481b23261b4d562660a':
  induct a bunch of new logging categories.
2015-05-13 18:29:48 +00:00
Chris Wren
5e4027fe25 Merge "induct a bunch of new logging categories." into mnc-dev 2015-05-13 18:05:56 +00:00
Chris Wren
28890446fd induct a bunch of new logging categories.
Bug: 20264417
Change-Id: Ica85a31016592be87f727c0d86a4be59eb854158
2015-05-13 13:37:42 -04:00
Clara Bayarri
127702e24a am f47edadd: am 99bd704f: Merge "Fix Floating Toolbar appearing after ActionMode was cancelled" into mnc-dev
* commit 'f47edaddba33238e0978266f4910263899d0d1e9':
  Fix Floating Toolbar appearing after ActionMode was cancelled
2015-05-13 16:22:08 +00:00
Clara Bayarri
99bd704f1c Merge "Fix Floating Toolbar appearing after ActionMode was cancelled" into mnc-dev 2015-05-13 15:46:59 +00:00
Brian Colonna
5cfcaac302 am 0e232a66: am 9a61013d: Merge "Removed unused Face Unlock aidl files" into mnc-dev
* commit '0e232a667c7e201a1d94a88b967a02c77eba6705':
  Removed unused Face Unlock aidl files
2015-05-13 15:28:02 +00:00
Clara Bayarri
0d7d4ef560 Fix Floating Toolbar appearing after ActionMode was cancelled
The Views created for the Toolbar were not cleaned up properly when the
mode was cancelled by the client in onCreateActionMode, leading to the
toolbar appearing over other views when it shouldn't due to
onWindowFocusChanged showing the Toolbar if it exists.

We don't actually need the views if we don't know whether they are
going to be shown yet, so moved view creation to after onCreateActionMode

Bug: 20713912
Change-Id: Ic0c31d1634e1e96d9981a77b2c769306a8bf1a8d
2015-05-13 16:03:14 +01:00
Brian Colonna
9a61013d2d Merge "Removed unused Face Unlock aidl files" into mnc-dev 2015-05-13 13:27:15 +00:00
Adam Powell
3d26822447 am bad22506: am 8c6cd908: Merge "Apply API feedback for ChooserTarget" into mnc-dev
* commit 'bad225069c719dc5c802fd758a4dd18acac1a2c4':
  Apply API feedback for ChooserTarget
2015-05-13 00:13:21 +00:00
Adam Powell
8c6cd9088e Merge "Apply API feedback for ChooserTarget" into mnc-dev 2015-05-12 23:57:32 +00:00
Xiyuan Xia
655c1e807e am 0d3f7e65: am 55e603ee: Merge "Make PIN/Password/Pattern check async" into mnc-dev
* commit '0d3f7e65f1792586604a36859b72e474e4e05766':
  Make PIN/Password/Pattern check async
2015-05-12 22:22:28 +00:00
Mike Lockwood
2b3f80c8a0 am a29558c5: am 62975ae4: Merge "MidiManager: Address API Council feedback:" into mnc-dev
* commit 'a29558c5c5001cdadf5f59fed35134bbfffe763b':
  MidiManager: Address API Council feedback:
2015-05-12 22:22:23 +00:00
Xiyuan Xia
55e603ee9d Merge "Make PIN/Password/Pattern check async" into mnc-dev 2015-05-12 22:08:10 +00:00
Adam Powell
13036beab1 Apply API feedback for ChooserTarget
* Add better docs to ChooserTarget
* Change ChooserTarget to use android.graphics.drawable.Icon instead
  of Bitmap
* Preserve EXTRA_REFERRER when starting ChooserTargets

Bug 21045119

Change-Id: If859b86344cebaed3eaae477af132e7d7600aba6
2015-05-12 15:06:24 -07:00
Mike Lockwood
62975ae43d Merge "MidiManager: Address API Council feedback:" into mnc-dev 2015-05-12 22:02:45 +00:00
Mike Lockwood
7eb441cb4a MidiManager: Address API Council feedback:
Rename MidiDeviceInfo.getPortList() to getPorts()

Rename MidiManager.getDeviceList() to getDevices()

Rename MidiReceiver.onReceive() to onSend()

Replace MidiManager.DeviceOpenCallback and BluetoothOpenCallback
with new interface MidiManager.OnDeviceOpenedListener

Add MidiSender.onConnect() and onDisconnect()

Add MidiReceiver.onFlush()

Ensure that MidiReceiver max message size is immutable

Bug: 21044677
Change-Id: I7711734a45e831e9744849a6f569e906feff9f80
2015-05-12 13:39:56 -07:00
Chris Craik
e972467930 am ca0790cd: am 6af2857a: Merge "Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""" into mnc-dev
* commit 'ca0790cdcdd95028f3e34c72a64b14658250fe7f':
  Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""
2015-05-12 20:01:03 +00:00
Xiyuan Xia
6e38058908 Make PIN/Password/Pattern check async
- Add LockPatternChecker to support async security check;
- Migrate Keyguard UI to use the async check;

Bug: 20697812
Change-Id: I77002a12931feb17cc20923d7c917b3e37f2cd31
2015-05-12 12:42:38 -07:00
Chris Craik
1d0b13b747 am db05ea90: am d2c05188: Merge "Fix build - Revert "Revert "Use default constructor to get anti-aliasing""" into mnc-dev
* commit 'db05ea901041258a64477c51456c9092a826d0cf':
  Fix build - Revert "Revert "Use default constructor to get anti-aliasing""
2015-05-12 17:49:22 +00:00
Chris Craik
6a49ddef62 Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""
Fix import

This reverts commit 7ed1431c83.

Change-Id: Id93eba3ed1d47a90384ba20dea6f74d78755792b
2015-05-12 10:44:30 -07:00
Chris Craik
99aac0fc62 am f3aad322: am fd41cf0c: Merge "Revert "Use default constructor to get anti-aliasing"" into mnc-dev
* commit 'f3aad32205f3e4acdfe092a78819cacdfec54f91':
  Revert "Use default constructor to get anti-aliasing"
2015-05-12 17:33:00 +00:00
Chris Craik
7ed1431c83 Fix build - Revert "Revert "Use default constructor to get anti-aliasing""
This reverts commit dfe0a66cec.

Change-Id: I58a1bae649a284f3d3b6213064d903ea7fcf185a
2015-05-12 17:22:22 +00:00
Chris Craik
dfe0a66cec Revert "Use default constructor to get anti-aliasing"
bug:20948129

This reverts commit 58fc522a69.

Change-Id: Iddeccb4ad15b843bb3e610bd3673a0c7abc1bf46
2015-05-12 16:36:49 +00:00
Fabrice Di Meglio
f7c087ba57 am 4d5f8fbf: am e2f43948: Merge "Add user selectable Default Browser feature - part 6" into mnc-dev
* commit '4d5f8fbf6e48bba209506f5291cfeebf7aff6177':
  Add user selectable Default Browser feature - part 6
2015-05-12 01:14:26 +00:00
Fabrice Di Meglio
e2f43948d1 Merge "Add user selectable Default Browser feature - part 6" into mnc-dev 2015-05-12 00:52:58 +00:00
Fabrice Di Meglio
3453e081e0 Add user selectable Default Browser feature - part 6
- if a default Browser is not defined and if a Browser App
is selected into the disambiguation dialog, then make it as
the default Browser
- clear default Browser saved data (package name) when
the default Browser App is removed

See bug #20144393

Change-Id: Ia8621d7a61ec2cb60deded9d70f75f1e1d88d123
2015-05-11 17:46:23 -07:00
Adam Powell
f003c79256 am 44e89c49: am 5fccffd5: Merge "Bringing new Chooser UI closer to spec" into mnc-dev
* commit '44e89c496202ae4ee5bf5b7ebfd16c332f908c00':
  Bringing new Chooser UI closer to spec
2015-05-11 19:29:57 +00:00
Adam Powell
5fccffd573 Merge "Bringing new Chooser UI closer to spec" into mnc-dev 2015-05-11 19:17:29 +00:00
Adam Powell
7d7580019e Bringing new Chooser UI closer to spec
Separate the chooser targets into rows by type. Remove some API that
was redundant with LabeledIntent, simplifying ChooserTarget.

Change-Id: I90de471825f05d85e6ffbe72a32fb597be824a30
2015-05-11 12:16:19 -07:00
John Spurlock
31f6e2dcb2 am e1e7b05b: am 4cf2ae9c: Merge "Add new metrics categories for the two notification access screens." into mnc-dev
* commit 'e1e7b05b54799d12b2290eacf5d812b413ad25ba':
  Add new metrics categories for the two notification access screens.
2015-05-11 16:02:09 +00:00
Abodunrinwa Toki
a98c27913e am 33808e8b: am f864d925: Merge "Set FloatingToolbar width for portrait and landscape." into mnc-dev
* commit '33808e8ba785c29e2c0a7ba32be0bd03058d5c9a':
  Set FloatingToolbar width for portrait and landscape.
2015-05-11 15:51:30 +00:00
John Spurlock
4cf2ae9c55 Merge "Add new metrics categories for the two notification access screens." into mnc-dev 2015-05-11 15:48:47 +00:00
Chris Wren
542731ffb3 am 100cf21f: am df2e2809: Merge "log more settings actions" into mnc-dev
* commit '100cf21fced76b907c503af197798598211b2848':
  log more settings actions
2015-05-11 15:28:09 +00:00
Abodunrinwa Toki
f864d925bf Merge "Set FloatingToolbar width for portrait and landscape." into mnc-dev 2015-05-11 15:27:26 +00:00
John Spurlock
cfc66e3339 Add new metrics categories for the two notification access screens.
Bug: 20916418
Change-Id: Iafcaccaa465a2f121a6a1a2ba54b122173e45dc6
2015-05-11 11:19:55 -04:00
Chris Wren
df2e2809bf Merge "log more settings actions" into mnc-dev 2015-05-11 15:07:21 +00:00
Abodunrinwa Toki
c0fa6bd7ac Set FloatingToolbar width for portrait and landscape.
Bug: 20711006
Change-Id: Iee061a1031406780eb0f85201543b644fbb4d813
2015-05-11 14:28:48 +01:00