2015 Commits

Author SHA1 Message Date
Adam Powell
f6e03e5540 am 72329952: am 4c38fe36: Merge "Protect against bogus input for ListViews" into jb-dev
* commit '72329952168fd86b911109602882b92494e9ccc5':
  Protect against bogus input for ListViews
2012-06-07 12:17:48 -07:00
Adam Powell
7232995216 am 4c38fe36: Merge "Protect against bogus input for ListViews" into jb-dev
* commit '4c38fe369fee76b8d4fca5a7b0b8d81a96f0219f':
  Protect against bogus input for ListViews
2012-06-07 12:14:21 -07:00
Adam Powell
4c38fe369f Merge "Protect against bogus input for ListViews" into jb-dev 2012-06-07 12:12:00 -07:00
Adam Powell
28048d011c Protect against bogus input for ListViews
Guard against cases where ListView might receive touch events while
detached.

Update ListMenuPresenter to dispatch a data set change when the
backing menu is changed.

Bug 6543282

Change-Id: If2fb9b6aa3cf4a1b7070a7cd0de0edf0fc2f4cca
2012-06-06 22:47:56 -07:00
Dianne Hackborn
9a8eed3a4d am 18aa041a: am 6cd19e02: Merge "Fix some divide by zero errors that could crash the system." into jb-dev
* commit '18aa041a62d36b9f2d4ead8ca0945ec87af582b4':
  Fix some divide by zero errors that could crash the system.
2012-06-06 14:22:43 -07:00
Dianne Hackborn
18aa041a62 am 6cd19e02: Merge "Fix some divide by zero errors that could crash the system." into jb-dev
* commit '6cd19e0266b3f4277f13dab7e9a86ebdd9905ee9':
  Fix some divide by zero errors that could crash the system.
2012-06-06 14:17:54 -07:00
Dianne Hackborn
6cd19e0266 Merge "Fix some divide by zero errors that could crash the system." into jb-dev 2012-06-06 14:16:05 -07:00
Dianne Hackborn
cdadee630e Fix some divide by zero errors that could crash the system.
Change-Id: I66273df84e45de59b5b161f4d13de67a9e0f46d5
2012-06-06 11:48:46 -07:00
Adam Powell
b85afc25d5 resolved conflicts for merge of 1178569b to master
Change-Id: If2bb6ccaee99bcf199cd93f24eba217fe6ff485e
2012-06-05 20:08:41 -07:00
Adam Powell
1178569b26 am f6452d0c: Merge "More fun with MediaRouter" into jb-dev
* commit 'f6452d0cac64b72005af330411b5a895f0038312':
  More fun with MediaRouter
2012-06-05 19:29:57 -07:00
Adam Powell
f6452d0cac Merge "More fun with MediaRouter" into jb-dev 2012-06-05 19:27:49 -07:00
Jeff Brown
1b60e72877 am eef4bc08: am 615fd3df: Merge "Implement new rotation policy." into jb-dev
* commit 'eef4bc08137f2324e2974c282992ff546df99e54':
  Implement new rotation policy.
2012-06-05 19:20:08 -07:00
Adam Powell
690ffb4e1f More fun with MediaRouter
Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
2012-06-05 19:15:57 -07:00
Jeff Brown
eef4bc0813 am 615fd3df: Merge "Implement new rotation policy." into jb-dev
* commit '615fd3dff2e369d8b786abcfe41b6da988e41001':
  Implement new rotation policy.
2012-06-05 19:14:17 -07:00
Jeff Brown
207673cdbb Implement new rotation policy.
Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
2012-06-05 17:59:46 -07:00
Jeff Brown
94456bb32c am 7d3fa093: am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-dev
* commit '7d3fa093bbd34e19f6b580b6258c8ea4e138c777':
  Make velocity tracker strategy configurable.
2012-06-03 21:23:29 -07:00
Jeff Brown
7d3fa093bb am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-dev
* commit 'f47e76e2c78e78e26110786e99548d718d177c32':
  Make velocity tracker strategy configurable.
2012-06-03 21:19:13 -07:00
Jeff Brown
f47e76e2c7 Merge "Make velocity tracker strategy configurable." into jb-dev 2012-06-03 21:16:18 -07:00
Jeff Brown
9eb7d86181 Make velocity tracker strategy configurable.
This change is very useful for testing purposes because it makes it
easy to compare different implementations to see how they behave.

There is no change to the current default strategy.

Bug: 6413587
Change-Id: I4d8567aa4160571ba9fa397ce419882cd9366749
2012-06-03 19:21:49 -07:00
Jim Miller
988edcd423 am a8c42f1a: am 94a8ae09: Merge "Fix 6592932: add means to replace assist icon from given package" into jb-dev
* commit 'a8c42f1aaa184ed9b30c747ca03b5d7159a3fb20':
  Fix 6592932: add means to replace assist icon from given package
2012-06-02 08:40:28 -07:00
Jim Miller
a8c42f1aaa am 94a8ae09: Merge "Fix 6592932: add means to replace assist icon from given package" into jb-dev
* commit '94a8ae09bea03ec2ca5563601e28a196d41bb6b6':
  Fix 6592932: add means to replace assist icon from given package
2012-06-02 08:35:33 -07:00
Jim Miller
3294b6b09b Fix 6592932: add means to replace assist icon from given package
This provides the means to replace the assist icon shown in keyguard and the
navigation gesture for assist.  It's done by adding metadata called
"com.android.systemui.action_assist_icon" to the activity that handles
android.intent.action.ASSIST.  It should point to a StateListDrawable
in that package with the required states.  For example:

<meta-data android:name="com.android.systemui.action_assist_icon"
    android:resource="@drawable/ic_android_systemui_action_assist" />

And then something like this in drawable/ic_android_systemui_action_assist.xml :

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="true"
        android:state_active="false"
        android:state_focused="false"
        android:drawable="@drawable/ic_action_assist_normal" />
    <item android:state_enabled="true"
        android:state_active="true"
        android:state_focused="false"
        android:drawable="@drawable/ic_action_assist_activated" />
    <item android:state_enabled="true"
        android:state_active="false"
        android:state_focused="true"
        android:drawable="@drawable/ic_action_assist_focused" />
</selector>

Change-Id: Ibc29360e179fed68253ff06a07b1bb2b982d0dab
2012-06-01 14:08:28 -07:00
Chet Haase
c0da129685 am 12dec0f2: am 762ca84c: Merge "Sped up ActionBar and StatusBar animations" into jb-dev
* commit '12dec0f230ee010192433f90b1c6fd54a9aa24f3':
  Sped up ActionBar and StatusBar animations
2012-05-30 17:31:06 -07:00
Chet Haase
12dec0f230 am 762ca84c: Merge "Sped up ActionBar and StatusBar animations" into jb-dev
* commit '762ca84cb26b06cfc758db38f4af6edfcf6a4349':
  Sped up ActionBar and StatusBar animations
2012-05-30 17:27:21 -07:00
Chet Haase
762ca84cb2 Merge "Sped up ActionBar and StatusBar animations" into jb-dev 2012-05-30 17:22:37 -07:00
Chet Haase
e8118e17b2 Sped up ActionBar and StatusBar animations
Animations to show/hide the ActionBar and StatusBar were very slow, given
the size of the objects and the distances covered by the sliding animations.
Also, the ActionBar animation was sometimes hiccuppy as it faded in/out.
This change eliminates the ActionBar fade (which is unnecessary) and speeds
up the animations (smaller durations and steeper interpolation curves). Also,
it eliminates the startDelay on the ActionBar show animation.

Issue #6564089 Options menu should slide in much quicker (nakasi/JB)

Change-Id: I2c8298301f7bf26bbbc94444e715420a2c029ba0
2012-05-30 16:47:54 -07:00
Jim Miller
31d6045a94 am 6be353b0: am 2a7b17bb: Fix 6580421: make sure MultiWaveView.reset() makes handle visible
* commit '6be353b05e63230dd9c1080441188d839c36d06a':
  Fix 6580421: make sure MultiWaveView.reset() makes handle visible
2012-05-30 12:47:33 -07:00
Jim Miller
6be353b05e am 2a7b17bb: Fix 6580421: make sure MultiWaveView.reset() makes handle visible
* commit '2a7b17bb2604823e140fb867fe87836dd039611a':
  Fix 6580421: make sure MultiWaveView.reset() makes handle visible
2012-05-30 12:39:11 -07:00
Jim Miller
2a7b17bb26 Fix 6580421: make sure MultiWaveView.reset() makes handle visible
This fixes a bug where sometimes the handle wasn't visble in the
incoming call screen.  The problem was that the animation was
interrupted on its transition from alpha = 0 to alpha = 1 by reset()
and the new handle animation wasn't started.

Change-Id: I3ab4259db1115da20e7f54b91bbfe3b496940214
2012-05-30 12:19:56 -07:00
Jim Miller
022a656396 am 9ca07d04: am d8c5f10c: Merge "Fix 6398209: SearchPanel gesture improvements" into jb-dev
* commit '9ca07d048fb738986195e710839a5084bf1b628e':
  Fix 6398209: SearchPanel gesture improvements
2012-05-30 09:33:07 -07:00
Jim Miller
9ca07d048f am d8c5f10c: Merge "Fix 6398209: SearchPanel gesture improvements" into jb-dev
* commit 'd8c5f10c10ea1a8708481eac52ee573d5c3b6a67':
  Fix 6398209: SearchPanel gesture improvements
2012-05-30 09:29:37 -07:00
Jim Miller
9a720f5eb6 Fix 6398209: SearchPanel gesture improvements
This fixes a few recent regressions caused by other bug fixes:
- add new flags to animateCollapse() so we can selectively close panels. Fixes regression caused by attempt to close recent apps from startAssistActivity() which had the side effect of closing the search panel before the animation completes.
- adds tuneable holdoff delay for responding to home key press.
- minor tweaks to MultiWaveView animations.

Change-Id: Ia48434b8d59e7b0290a5e9783960c2f684068218
2012-05-30 03:36:20 -07:00
Wink Saville
de1a43f69e Merge "When we disconnect shutdown the StateMachine." 2012-05-29 14:23:05 -07:00
Wink Saville
4b5d3a2639 Merge "Enhance StateMachine Quitting and logging support." 2012-05-29 14:22:50 -07:00
Jim Miller
4abf86ed20 am a073e570: Fix 6398209: General animation improvements for swipe to search
* commit 'a073e570789e5b49e8339af44516444b13db4428':
  Fix 6398209: General animation improvements for swipe to search
2012-05-29 13:16:22 -07:00
Jim Miller
a073e57078 Fix 6398209: General animation improvements for swipe to search
This cleans up the animation for swipe to search from the navbar.  In particular:
1. Wait for initial animation to finish if gesture was too quick.
2. Better fade animation
3. Hide background and fade in when ring is selected
4. Smoother target and outer ring animation when switching between states.

Change-Id: I401197760cf9f06b6ff3e1cdb80bee86a03ef276
2012-05-29 12:49:23 -07:00
Wink Saville
f3110dfc84 When we disconnect shutdown the StateMachine.
Need to stop the StateMachine threads and release
all resources when we disconnect.

bug: 6342470
Change-Id: Ibf7a2ebf4f7ecd667c5d95579e66ecd5086103ea
2012-05-29 12:41:09 -07:00
Wink Saville
bbf30dfd76 Enhance StateMachine Quitting and logging support.
Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
2012-05-29 12:40:46 -07:00
Chris Wren
af94889419 am 04b63f6f: Merge "Squelch the logs from SizeAdaptiveLayout." into jb-dev
* commit '04b63f6fb0f04e0cd56a6c2d71c8c4f1f2207758':
  Squelch the logs from SizeAdaptiveLayout.
2012-05-25 06:24:12 -07:00
Chris Wren
04b63f6fb0 Merge "Squelch the logs from SizeAdaptiveLayout." into jb-dev 2012-05-25 06:21:56 -07:00
Jim Miller
4414bdefe1 am 73bde11e: Merge "Fix 6547012: ignore events outside the home/back/recent navigation area" into jb-dev
* commit '73bde11e624c44620819e9c93a61ca6be6e96997':
  Fix 6547012: ignore events outside the home/back/recent navigation area
2012-05-24 17:56:02 -07:00
Jim Miller
73bde11e62 Merge "Fix 6547012: ignore events outside the home/back/recent navigation area" into jb-dev 2012-05-24 17:51:10 -07:00
Jim Miller
960892c0af Fix 6547012: ignore events outside the home/back/recent navigation area
This fixes the search panel to only show if touch events originate
in the home/back/recent area.

Change-Id: I370da8b5c5613b7bbab5d266ba51a61df8f3a57b
2012-05-24 17:02:31 -07:00
Chris Wren
5462508f05 Squelch the logs from SizeAdaptiveLayout.
Bug: 6540109
Change-Id: I52bd64e2f5d1b2f02ef7e956ddf1340fb9b2aff3
2012-05-23 17:15:34 -04:00
Daniel Sandler
79934c0048 am 81de5a0b: Merge "Stop animating when not showing." into jb-dev
* commit '81de5a0b11df08b603693b6d3b381ac9f89ebc67':
  Stop animating when not showing.
2012-05-23 11:07:42 -07:00
Daniel Sandler
aa0a3b6923 Stop animating when not showing.
We were eating too many jelly beans even when the screen was
off.

Also clean up touch offsets, rotation on fling, and main
platlogo asset.

Bug: 6541052
Change-Id: I34e49b8b7a95ce6daab929885130426a5ae58dc4
2012-05-23 01:38:26 -04:00
Dianne Hackborn
7a26eefcc5 am 89604931: Merge "Fix issue #6521829: Sometimes action bar disappears in gallery" into jb-dev
* commit '89604931a85edd82c6b4a8c798fc1af610ba706e':
  Fix issue #6521829: Sometimes action bar disappears in gallery
2012-05-22 18:26:11 -07:00
Dianne Hackborn
80d55065b1 Fix issue #6521829: Sometimes action bar disappears in gallery
Change-Id: Ieb1f1fd0ebb87037cda94e1e1d6e2ca9a9c0754e
2012-05-22 18:03:20 -07:00
Jim Miller
aa0d9f6363 am a6f0b0ad: Merge "Fix6398209: reveal search when home button is long-pressed" into jb-dev
* commit 'a6f0b0ad6966d64d833978cc150cc180b40f8bb3':
  Fix6398209: reveal search when home button is long-pressed
2012-05-21 16:39:37 -07:00
Jim Miller
a6f0b0ad69 Merge "Fix6398209: reveal search when home button is long-pressed" into jb-dev 2012-05-21 16:37:32 -07:00