Commit Graph

4992 Commits

Author SHA1 Message Date
Adam Powell
1e8e63754a am 45756ec5: am 86234afe: am 19dd44c2: am 5e078458: am 18709f9a: Merge "Relax strict ActionMode instance checking when finishing action modes" into mnc-dev
* commit '45756ec5ab3c59152464f63a0cbe4566ebf4fa32':
  Relax strict ActionMode instance checking when finishing action modes
2015-07-15 03:36:11 +00:00
Adam Powell
45756ec5ab am 86234afe: am 19dd44c2: am 5e078458: am 18709f9a: Merge "Relax strict ActionMode instance checking when finishing action modes" into mnc-dev
* commit '86234afe59c53d957d8cd5281045ac8aeea69961':
  Relax strict ActionMode instance checking when finishing action modes
2015-07-15 03:24:15 +00:00
Adam Powell
5e078458c2 am 18709f9a: Merge "Relax strict ActionMode instance checking when finishing action modes" into mnc-dev
* commit '18709f9a0095afe6dba11f9dd71e3210c5f4e1db':
  Relax strict ActionMode instance checking when finishing action modes
2015-07-15 02:43:10 +00:00
Adam Powell
18709f9a00 Merge "Relax strict ActionMode instance checking when finishing action modes" into mnc-dev 2015-07-15 02:31:21 +00:00
Adam Powell
c3cb6c9b22 Relax strict ActionMode instance checking when finishing action modes
In previous platform versions, finishing an action mode would clean up
the current action mode even if it was not the same ActionMode
instance. Some common shared code inadvertently relied on this
behavior, so stay bug-compatible with it based on targetSdkVersion.
New apps will get the stricter behavior.

Bug 22265882

Change-Id: Id5d6341aefc07a3cb788d5d6d0b531816f761e42
2015-07-14 19:08:39 -07:00
Adam Lesinski
94e2638e38 am f488fc28: am c678d23d: am f96a3386: am e5c0550d: am 267240f2: Merge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel module" into mnc-dev
* commit 'f488fc28102870d8ec943d0a3a78c6d3997711c2':
  BatteryStats: Clear power use when removing a UID from uid_cputime kernel module
2015-07-15 01:36:32 +00:00
Adam Lesinski
f488fc2810 am c678d23d: am f96a3386: am e5c0550d: am 267240f2: Merge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel module" into mnc-dev
* commit 'c678d23d987a5b72abfca6f5e383140e9cb543db':
  BatteryStats: Clear power use when removing a UID from uid_cputime kernel module
2015-07-15 01:22:26 +00:00
Adam Lesinski
e5c0550dfe am 267240f2: Merge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel module" into mnc-dev
* commit '267240f2ddbaa0ea2828d7466f310c6ffc7c91cd':
  BatteryStats: Clear power use when removing a UID from uid_cputime kernel module
2015-07-15 00:39:13 +00:00
Adam Lesinski
267240f2dd Merge "BatteryStats: Clear power use when removing a UID from uid_cputime kernel module" into mnc-dev 2015-07-15 00:30:20 +00:00
Adam Lesinski
a4359a32ff am b6675209: am 9de0c930: am b3b21b46: am d4d190ca: am d4c1861a: Merge "BatteryStats: Fix units in wakelock distribution calculation" into mnc-dev
* commit 'b6675209e21f3f0d12f7323385891e68030baac8':
  BatteryStats: Fix units in wakelock distribution calculation
2015-07-15 00:12:01 +00:00
Adam Lesinski
b6675209e2 am 9de0c930: am b3b21b46: am d4d190ca: am d4c1861a: Merge "BatteryStats: Fix units in wakelock distribution calculation" into mnc-dev
* commit '9de0c930ef7cd683c0449d051c26f31e67b3f817':
  BatteryStats: Fix units in wakelock distribution calculation
2015-07-14 23:56:01 +00:00
Adam Lesinski
bdb0273455 BatteryStats: Clear power use when removing a UID from uid_cputime kernel module
Bug:22461683
Change-Id: Iffb847268d2872bd2a843e28dc41fa22b1e36828
2015-07-14 16:51:53 -07:00
Adam Lesinski
d4d190caed am d4c1861a: Merge "BatteryStats: Fix units in wakelock distribution calculation" into mnc-dev
* commit 'd4c1861a536d022b00505c75c30529c50688f26a':
  BatteryStats: Fix units in wakelock distribution calculation
2015-07-14 23:13:43 +00:00
Adam Lesinski
d4c1861a53 Merge "BatteryStats: Fix units in wakelock distribution calculation" into mnc-dev 2015-07-14 23:00:24 +00:00
Jorim Jaggi
b2103469d6 am b4d4cc9d: am c98e7fa3: am 07e3cbc3: am 4cfdcf5b: Touch, wake and unlock
* commit 'b4d4cc9d5c9e14fc3e830849d64a89f69dd10ddc':
  Touch, wake and unlock
2015-07-14 22:12:13 +00:00
Jorim Jaggi
b4d4cc9d5c am c98e7fa3: am 07e3cbc3: am 4cfdcf5b: Touch, wake and unlock
* commit 'c98e7fa30e4faa328c21a9b4afb6938325a049ec':
  Touch, wake and unlock
2015-07-14 22:01:05 +00:00
Adam Lesinski
93f8e4e007 am c6361077: am 8e81f616: am 36ba8b1b: am ba7e39d5: am 92a3914f: Merge "BatteryStats: Remove uid_cputime Slog.wtf for high cpu times" into mnc-dev
* commit 'c63610777100d8ce17a0c2b3db788fe8b0913171':
  BatteryStats: Remove uid_cputime Slog.wtf for high cpu times
2015-07-14 21:20:01 +00:00
Jorim Jaggi
4cfdcf5b05 Touch, wake and unlock
- Add onFingerprintAcquired, so Keyguard can grab a wakelock to prevent
the device from sleeping.
- If we get a successful fingerprint, wake the device up, immediately
dismiss the keyguard and tell PWM that we kicked off our frame that
will represent the correct state.
- PWM then waits for this frame to be drawn, and then turns on the
screen, which results in unlocking directly to the previsouly
opened app.

Bug: 21855614
Change-Id: I0c43bcc9d334b509632704fb0c123ab3351edff2
2015-07-14 21:05:26 +00:00
Adam Lesinski
c636107771 am 8e81f616: am 36ba8b1b: am ba7e39d5: am 92a3914f: Merge "BatteryStats: Remove uid_cputime Slog.wtf for high cpu times" into mnc-dev
* commit '8e81f6164e93c8a69dc196d83e0a8ee0ebb7297e':
  BatteryStats: Remove uid_cputime Slog.wtf for high cpu times
2015-07-14 21:04:27 +00:00
Adam Lesinski
062e66cb15 BatteryStats: Fix units in wakelock distribution calculation
This is mostly for checkin stats, this is not used in any computation.

Bug:22468534
Bug:22391540
Change-Id: Ib3d0c86db5044092d3d76acf8f001337272af2ff
2015-07-14 20:27:20 +00:00
Adam Lesinski
92a3914fb3 Merge "BatteryStats: Remove uid_cputime Slog.wtf for high cpu times" into mnc-dev 2015-07-14 20:08:43 +00:00
Yohei Yukawa
e7998fb00f am a6b4eaf5: am 1e01d621: am 17dce343: am be27832b: am 12952c79: Merge "Allow FloatingToolbar to be outside of the attached window." into mnc-dev
* commit 'a6b4eaf5bbcef6331981da5c52c1375c6f2b700c':
  Allow FloatingToolbar to be outside of the attached window.
2015-07-14 18:47:25 +00:00
Adam Lesinski
67eea87e0d BatteryStats: Remove uid_cputime Slog.wtf for high cpu times
High cpu times are expected as multiple cores can be running at the
same time, so comparing against the time between samples is incorrect.

I am reasonable certain that the values we see now are correct, so disabling this
check. However, checking for negative values (overflows) is still enabled and
will remain enabled because there is no case where we will be ok with negative deltas.

Bug:22461683
Change-Id: If9c7cdbb75ceaed059d1e0f4dd83cfdd3e021a93
2015-07-14 11:33:53 -07:00
Yohei Yukawa
a6b4eaf5bb am 1e01d621: am 17dce343: am be27832b: am 12952c79: Merge "Allow FloatingToolbar to be outside of the attached window." into mnc-dev
* commit '1e01d62160b65ca326b015ba542a52fe22c442b7':
  Allow FloatingToolbar to be outside of the attached window.
2015-07-14 18:15:27 +00:00
Chris Wren
8665a4e932 am 92c5e775: am 01a73cd8: am 500db3c1: am d5b0f69a: am 208934ff: Merge "fix build by restoring deleted enum" into mnc-dev
* commit '92c5e7752005776ada31a7d4992548e36f06f335':
  fix build by restoring deleted enum
2015-07-14 16:51:23 +00:00
Chris Wren
d2d6e41173 am 23652ff5: am 4810bf5d: am ea794192: am 2d8e0173: am 4502bfb8: Merge "add new enums to MetricsConstans" into mnc-dev
* commit '23652ff538f414ca32b0c792bc29c60a4c62e4ca':
  add new enums to MetricsConstans
2015-07-14 16:51:01 +00:00
Rubin Xu
949d16ebd5 am 5571a986: am afe3c2b3: am 474f987d: am f5d6d432: am cf9aebf1: Merge "Remove ExternalStorageFormatter" into mnc-dev
* commit '5571a986f0a2939248aefc584248d08732c761e4':
  Remove ExternalStorageFormatter
2015-07-14 16:50:41 +00:00
Chris Wren
92c5e77520 am 01a73cd8: am 500db3c1: am d5b0f69a: am 208934ff: Merge "fix build by restoring deleted enum" into mnc-dev
* commit '01a73cd81ea35f18eba96916e1c80eb5b800e922':
  fix build by restoring deleted enum
2015-07-14 16:28:54 +00:00
Chris Wren
23652ff538 am 4810bf5d: am ea794192: am 2d8e0173: am 4502bfb8: Merge "add new enums to MetricsConstans" into mnc-dev
* commit '4810bf5de92caa55494e484ef36043f2c8fc52b7':
  add new enums to MetricsConstans
2015-07-14 16:28:28 +00:00
Rubin Xu
5571a986f0 am afe3c2b3: am 474f987d: am f5d6d432: am cf9aebf1: Merge "Remove ExternalStorageFormatter" into mnc-dev
* commit 'afe3c2b3e51b254826b44559d6f4aebe40855168':
  Remove ExternalStorageFormatter
2015-07-14 16:28:06 +00:00
Yohei Yukawa
bafc908304 Allow FloatingToolbar to be outside of the attached window.
Currently PopupWindow used for the floating toolbar specifies
neither FLAG_LAYOUT_NO_LIMITS nor FLAG_LAYOUT_IN_SCREEN.
As a result, the floating toolbar can overlap the selected
text when the attached window does not have enough height.

Here is the repro code.

    final TextView textView = new TextView(this);
    textView.setLayoutParams(
            new ViewGroup.LayoutParams(
                    ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.WRAP_CONTENT));
    textView.setText("A test sentence.");
    textView.setTextIsSelectable(true);
    final AlertDialog dialog = new AlertDialog.Builder(this)
            .setView(textView)
            .create();
    dialog.getWindow().setGravity(Gravity.BOTTOM)
    dialog.show();

If you tap a word in the dialog, the floating toolbar
unintentionally overlaps the selected text due to the limited
height of the AlertDialog.

It also turns out that just calling
  PopupWindow.setClippingEnabled(false)
to specify FLAG_LAYOUT_NO_LIMITS is not sufficient and ends up
showing the toolbar on the NavBar because we have mistakenly
compared bounds in window-local coordinates
(e.g. FloatingActionModemContentRectOnWindow) with bounds in
screen coordinates (e.g. FloatingActionMode#mScreenRect).
Hence the confusion of window-local coordinates and screen
coordinates in FloatingToolbar and FloatingToolbar also needs
to be addresses.

To summarize here are the notable changes in this CL:
  - Specify FLAG_LAYOUT_NO_LIMITS so that the floating
    toolbar can be placed outside of the attached window.
    (We do this with PopupWindow#setClippingEnabled)
  - Switch to use screen coordinates from window-local
    coordiantes in FloatingToolbar and FloatingActionMode
    because some system components such as WindowManager
    prefer screen coordinates.
  - Put -OnScreen suffix for Rect and Point variables
    as long as they are in screen coordinates.

Bug: 22335001
Change-Id: I71a8d356e868dc7715b030ca1078da4ec39368c3
2015-07-14 05:59:05 -07:00
Chris Wren
8cba70fb05 fix build by restoring deleted enum
Bug: 21114836
Change-Id: Ied4a6e48c66f882f43343a21bce0b3ccccd81713
2015-07-13 12:59:01 -04:00
Chris Wren
4502bfb8fd Merge "add new enums to MetricsConstans" into mnc-dev 2015-07-13 16:21:24 +00:00
Rubin Xu
cf9aebf138 Merge "Remove ExternalStorageFormatter" into mnc-dev 2015-07-13 13:55:53 +00:00
Chris Wren
05aa88a937 add new enums to MetricsConstans
Bug: 21114836
Change-Id: Id62701be012c10bc11ee1ff8aa8435e178d35684
2015-07-10 17:33:39 -04:00
Jun Mukai
a3ef629045 Merge "Introduces mouse actions for popup menu." 2015-07-09 21:12:44 +00:00
Rubin Xu
cb746a860c Remove ExternalStorageFormatter
Bug: 9433509
Change-Id: I815770e0e0314fc7012ebc213f2167a13d6f37d1
2015-07-09 21:39:01 +01:00
Jorim Jaggi
61a3a523c7 am 46e30763: am 5175b3c9: am 9acf475c: am 35094376: am 3cc5c24b: Merge "Fix assist for hardware long-press" into mnc-dev
* commit '46e30763df273ea1ba6f102c8a8557b36ba5cc8a':
  Fix assist for hardware long-press
2015-07-09 20:32:28 +00:00
Jorim Jaggi
46e30763df am 5175b3c9: am 9acf475c: am 35094376: am 3cc5c24b: Merge "Fix assist for hardware long-press" into mnc-dev
* commit '5175b3c9923f5eaf5eafa01798966f8711ce9547':
  Fix assist for hardware long-press
2015-07-09 20:16:30 +00:00
Jorim Jaggi
3cc5c24b83 Merge "Fix assist for hardware long-press" into mnc-dev 2015-07-09 19:19:05 +00:00
Adam Lesinski
2878e4e825 am 8e82c794: am 3e2b53ff: am 1ad61b33: am 1549adb4: am 7fb1655a: Merge "BatteryStats: Fail gracefully on corrupt battery stats" into mnc-dev
* commit '8e82c794bb944d4a15501854721a476db2dae470':
  BatteryStats: Fail gracefully on corrupt battery stats
2015-07-09 02:31:48 +00:00
Adam Lesinski
8e82c794bb am 3e2b53ff: am 1ad61b33: am 1549adb4: am 7fb1655a: Merge "BatteryStats: Fail gracefully on corrupt battery stats" into mnc-dev
* commit '3e2b53ff6981b7ef857cb28c5b2ddb3bc71002b9':
  BatteryStats: Fail gracefully on corrupt battery stats
2015-07-09 02:09:26 +00:00
Adam Lesinski
7fb1655a89 Merge "BatteryStats: Fail gracefully on corrupt battery stats" into mnc-dev 2015-07-09 01:15:15 +00:00
Adam Lesinski
9ae9cba020 BatteryStats: Fail gracefully on corrupt battery stats
Bug:22328963
Change-Id: Id0b4c6334706e58483d5fdfd2c1137bfb821c409
2015-07-08 17:35:42 -07:00
Jorim Jaggi
165ce066b7 Fix assist for hardware long-press
Activating the assistant will now route through SysUI, so
we have the logic whether to start an activity or to start a voice
interaction session in one single place.

Bug: 22201770
Change-Id: I0f4699533aea2a1e595ee25a844434c82f548c01
2015-07-08 22:26:24 +00:00
Jun Mukai
31f581c5a6 Introduces mouse actions for popup menu.
- mouse hover moves the selected item in the menu. It moves
  the selection rectangle, and further up/down key or enter
  key will start from the hovered item.
- when the mouse exits from the entire popup window, the
  selection is canceled. Further up/down key will start from
  the first item.

To implement these behaviors, and consider about other keyboard
behaviors which is special to menus, I believe it justifies
to create another class for the menu popups rather than using
ListPopupWindow directly.

Bug: 19642104
Change-Id: I5e405c0491c67fdef9764898701119979ec13a9f
2015-07-08 13:18:54 -07:00
Adam Powell
6147a9f272 am 2ed09409: am 940abed2: am 6f3f660c: am 24bf1226: am e9cbf415: Merge "Sort and limit ChooserActivity targets from ChooserTargetServices" into mnc-dev
* commit '2ed094090a36c00fce96bc288bc544fe28ae9fcf':
  Sort and limit ChooserActivity targets from ChooserTargetServices
2015-07-08 02:03:42 +00:00
Dongwon Kang
0d74a94eb2 am 6ac3a485: am e94f5f55: am 279864ca: am aaac72ac: am 0c582293: Merge "Revert "Use AlertDialog for MediaRouteControllerDialog"" into mnc-dev
* commit '6ac3a485440c5b6ee73b55d53863d299fd6308c7':
  Revert "Use AlertDialog for MediaRouteControllerDialog"
2015-07-08 02:02:49 +00:00
Adam Powell
2ed094090a am 940abed2: am 6f3f660c: am 24bf1226: am e9cbf415: Merge "Sort and limit ChooserActivity targets from ChooserTargetServices" into mnc-dev
* commit '940abed246f37454426f56c9cbb37e12ec4cdfb5':
  Sort and limit ChooserActivity targets from ChooserTargetServices
2015-07-08 01:37:38 +00:00
Dongwon Kang
6ac3a48544 am e94f5f55: am 279864ca: am aaac72ac: am 0c582293: Merge "Revert "Use AlertDialog for MediaRouteControllerDialog"" into mnc-dev
* commit 'e94f5f556f5a46cf6745ae642d245ca712e1f254':
  Revert "Use AlertDialog for MediaRouteControllerDialog"
2015-07-08 01:36:36 +00:00