1584 Commits

Author SHA1 Message Date
Adam Powell
f88b915567 Fix bug 5258435 - ActionBar.setBackgroundDrawable
Fix this call to work properly and add methods for setting
split/stacked bar backgrounds to match existing styleable elements.

Change-Id: I8c6b1c598af1110f84a9098683d8e0226daf2e27
2011-09-07 14:55:47 -07:00
Adam Powell
94e56ef3b8 Bug 5249855 - Add support for content descriptions on action bar tabs
Add API support for supplying content descriptions on action bar tabs.
This helps accessibility in cases where no title text is shown.

Change-Id: I8fdc4c2f2b279871b9f24b0b16e5167879b22741
2011-09-06 21:23:59 -07:00
Svetoslav Ganov
2f8dbf5722 Merge "Increasing the tap radius for the handle in MultiWaveView to improve accessibility" 2011-09-06 14:08:48 -07:00
Svetoslav Ganov
66b191dad0 Increasing the tap radius for the handle in MultiWaveView to improve accessibility
bug:5253968

Change-Id: Ibe5a3a2453db1bbeaf8e818430685b48460ab06c
2011-09-05 14:26:26 -07:00
Jeff Sharkey
054340d0a3 Show statusbar clock based on lockscreen status.
Keep track of lockscreen clock visibility, and only hide statusbar
clock when one is provided by lockscreen.  This fixes bug where widget
would hide all clocks.

Bug: 5242065
Change-Id: I48de98ecb956c7f22bd40b54d771c78c1a80c14c
2011-09-02 10:31:15 -07:00
satok
ee5e77cafe Make setAdditionalInputMethodSubtypes async
Bug: 5120261
Change-Id: Ic7869cfaa5361531e08d58d7dfa5ba0feab0613e
2011-09-02 19:22:50 +09:00
Svetoslav Ganov
94444fc561 Merge "Cleaning up the accessibility of MultiWaveView" 2011-09-01 13:58:10 -07:00
Adam Powell
07a047fdd6 Fix bug 5220390 - action bar title metrics
Adjust action bar title layout metrics to match UX specs.

Refresh new metrics properly after a config change.

Change-Id: If19fad837ca2919193d4a3a8eb01c1caff68ca67
2011-08-31 11:36:02 -07:00
Svetoslav Ganov
57df88bc94 Cleaning up the accessibility of MultiWaveView
Change-Id: I13bd71670b38a917d62118ddef5ed6982c9eba99
2011-08-30 18:15:07 -07:00
Svetoslav Ganov
f058340b2f Adding accessibility support to the slide lock screen
bug:5210233

Change-Id: I93e876524ae6aaf75aadbe6a21c5c17d41a705f0
2011-08-29 22:01:44 -07:00
Jim Miller
1c18828d20 Fix 5044158: Integrate music transport control into LockScreen
This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
2011-08-29 18:29:21 -07:00
Adam Powell
9a5cc2810b Fix bug 5124021 - Menu visibility incorrect when restoring ListView
selection mode

Fix visibility of menus when action modes are initiailized early.

Fix ListView problems persisting check states.

Change-Id: Idc21036dc39259e72f0e6831a0ccb4695f8858ef
2011-08-28 17:13:16 -07:00
Adam Powell
7bc3ca0dc5 Accessibility fixes for action bars
Fix bug 5220543 - fix accessibility events for action buttons

Fix bug 5224260 - fix accessibility events for home/up

Change-Id: I7d55b4819862e1eda0809da92c52ec2d97f36af0
2011-08-26 18:31:47 -07:00
satok
4bc554b371 Merge "Fix setCurrentSpellCheckerSubtype" 2011-08-25 21:34:44 -07:00
satok
3cb5b39a0e Fix setCurrentSpellCheckerSubtype
Change-Id: Ib42a3b4377b8700ceaf4b7e13150848464d073c1
2011-08-26 12:39:42 +09:00
Adam Powell
aa8e509ba2 Fix bug 5091886 - action bar measurement
Change the measurement order of elements in the action bar. Custom
views are now deemed more important and may truncate title/subtitle.

Change-Id: I150862f8e48b36bcbd892f49d78c2962c5001ab1
2011-08-25 11:23:44 -07:00
satok
a33c4fc5be Add functions to enable / disable spell checker
Bug: 5057977

Change-Id: I2b27bd5f55feb305368034d7e95f83257ac4b3e6
2011-08-25 17:08:19 +09:00
Adam Powell
be3c329ebe Fix bug 5191728 - Specialized formatting in the split action bar
Visually center a single text menu item in the split action bar even
when an overflow button is present.

Fix a bug in allocating space in the split action bar.

Change-Id: I54eff86bf35197030c9c1656ebd71297e3c8b62b
2011-08-24 16:03:31 -07:00
satok
ada8c4e6a3 Add functions to set / get SpellCheckerSubtype
Change-Id: I977326879fe201c4dee4a87da361217175eb6041
2011-08-24 16:00:55 +09:00
Dianne Hackborn
29aae6f36e Fix issue #4279860: previous UI flashes before showing lock screen...
...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition.  There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
2011-08-23 17:44:52 -07:00
Mathias Agopian
67403e096e BLUR_BEHIND flag is not supported anymore
Bug: 5185650
Change-Id: I56541d4967b90b150a734be1bbeff696eb6a4fb3
2011-08-22 20:03:58 -07:00
Adam Powell
e20c279d9a Merge "Fix bug 5198868 - Showing previous hidden options menu doesn't work" 2011-08-22 18:15:18 -07:00
Adam Powell
04dc06f52a Fix bug 5198868 - Showing previous hidden options menu doesn't work
Fix bad assumption in flagging action items.

Change-Id: Ic67b56195bc308e73d1564cbf1b77e41eaa4ecab
2011-08-22 18:11:11 -07:00
Adam Powell
76a05fefbd Merge "Fix bug 5143392 - Add padding to left of action bar app icon to prevent icon from moving when drilling into hierarchy" 2011-08-22 17:52:46 -07:00
Adam Powell
b1e2f25b7e Fix bug 5143392 - Add padding to left of action bar app icon to
prevent icon from moving when drilling into hierarchy

Fix up the layout of home/up/titles in the action bar such that showing/hiding
the "up" indicator never changes the position of the icon, logo, or title.

Change-Id: Ic2117babe3a54619a4b787d5374295955a58fb34
2011-08-22 17:43:30 -07:00
Adam Powell
70e9f4bd2c Fix bug 5189070 - Don't try to show overflow popups for nonexistant menus
Change-Id: I9db43211cdece81063fc1d3c3324f1e166f27b0c
2011-08-22 16:31:24 -07:00
Jim Miller
4f36995777 Fix 5026428: Rework unlock attempt logic with active DPM to show better messages
Prior to this change, we didn't have a mechanism to warn the user when
they were approaching the wipe data threshold dictated by active DPMs.

Here's the new flow:

- If a device policy manager is installed and sets the max
password attempts, we start warning the user when they are within
a grace period of hitting the max (currently hard-wired to 5).

- We continue to show a dialog after each continued attempt
until the user reaches 0 remaining attempts.

- We now show a message when they hit 0 so they know why their device is
being reset.  The device will reboot and wipe data shortly after this final
dialog is shown.

Also increased the criteria for a pattern attempt from 3 dots to 4 dots
since the user can never set a pattern less than 4 in length. This will
greatly reduce the likelihood of a false wipe on the pattern unlock screens
without compromising security.

Change-Id: I28825ef21dfa2e2b6540e743252c6d50c41e5ad7
2011-08-21 13:57:01 -07:00
Jeff Brown
65fd251c39 Input system bug fixes, particularly for stylus.
Bug: 5049148

Finished stylus support, including support for indirect stylus
and mouse tools.

Added TILT axis.  When stylus tilt X/Y is available, it is transformed
into an orientation and tilt inclination which is a more convenient
representation and a simpler extension to the exiting API.

Touch devices now only report touch data using a single input
source.  Previously touch devices in pointer mode would report
both absolute touch pad data and cooked pointer gestures.
Now we just pick one.  The touch device switches modes as needed
when the focused application enables/disables pointer gestures.
This change greatly simplifies the code and reduces the load
on the input dispatcher.

Fixed an incorrect assumption that the value of ABS_(MT_)DISTANCE
would be zero whenever the stylus was in direct contact.  It appears
that the correct way to determine whether the stylus is in direct
contact (rather than hovering) is by checking for a non-zero
reported pressure.

Added code to read the initial state of tool buttons and axis values
when the input devices are initialized or reset.  This fixes
problems where the input mapper state might have the wrong initial
state.

Moved responsibility for cancelling pending inputs (keys down,
touches, etc.) to the InputDispatcher by sending it a device reset
notification.  This frees the InputReader from having to synthesize
events during reset, which was cumbersome and somewhat brittle
to begin with.

Consolidated more of the common accumulator logic from
SingleTouchInputMapper and MultiTouchInputMapper into
TouchInputMapper.

Improved the PointerLocation output.

Change-Id: I595d3647f7fd7cb1e3eff8b3c76b85043b5fe2f0
2011-08-19 15:02:26 -07:00
Adam Powell
bfcdfaf919 Fix bug 5174755 - Adjust action bar overflow limits for ifRoom items
Fix a bug where action menus were not updating after configuration
changes.

Change-Id: Iaeed7d924a7b8b40849fd8e1826ed1c8f4079c94
2011-08-19 12:18:13 -07:00
Adam Powell
82f24e82e1 Fix bug 5186341 - Double Action bar when displayOptions is 0
What does it mean??

Change-Id: I7978b8fb6877da6178f8db89ec085f1402acf743
2011-08-18 20:16:51 -07:00
Adam Powell
2f5485587b Merge "Fix bug 5186160 - ActionBar.hide() doesn't hide the split ActionBar if called before onResume()" 2011-08-18 18:10:03 -07:00
Adam Powell
993a63abb9 Fix bug 5186160 - ActionBar.hide() doesn't hide the split ActionBar if
called before onResume()

Change-Id: I2c21f2bfb3314426d9dfd3b874f593f375c7838a
2011-08-18 16:35:53 -07:00
Adam Powell
23f4cc0353 Fix bug 5099037 - No delete option when multiple videos are selected
Fix some bugs related to how action item slots are allocated in menus.

Fix some padding/margins in ActivityChooserView.

Change-Id: I12096b0165daca902c5bc8e24c1e8d54a35e9557
2011-08-18 16:19:31 -07:00
Adam Powell
7a2424d041 Fix bug 5183775 - Action bar custom layouts with default gravity misbehave
Change-Id: I314822ed9617d2c1de55e1f3238f1ca8899393f3
2011-08-18 11:59:27 -07:00
JP Abgrall
0197d825f1 Merge "core/java NetworkManagement: Don't untag sockets willy-nilly" 2011-08-18 09:58:32 -07:00
Dianne Hackborn
e8c88e6f76 Fix issue #5163456: logspam/tight loop in BatteryStatsImpl
No longer use the old history code.

Change-Id: I878ffe16e0014453c46db6a4f7228a81468d8cb9
2011-08-17 19:09:23 -07:00
Adam Powell
aad47fd78a Fix bug 5179524 - ActionBar custom view inflation doesn't catch layout_gravity
Change-Id: Ice5fd9da268cff64fc14acca384b249c252db5c9
2011-08-17 17:33:48 -07:00
Adam Powell
f35d049b99 Fix bug 5168889 - action bar not respecting return codes of onCreate/Prepare menu
Change-Id: If28630cb21e74bde7a2474ce060078ea30170b9d
2011-08-17 13:57:52 -07:00
JP Abgrall
36bd9844f8 core/java NetworkManagement: Don't untag sockets willy-nilly
Tagging is conditional on having some useful info to tag.
But untagging had not such restriction leading to unnecessary kernel
calls that just fail with EINVAL.

b/5165619

Change-Id: Idd4b1dc45db04429f85e3ba37656640a8d33046a
2011-08-17 12:06:56 -07:00
Adam Powell
3bb421d5b8 Fix bug 5165771 - Gmail: crash on launch from notifier
Change-Id: Iec9c189bd3fa5e62bc8eb520ca2a1dd4db106036
2011-08-16 15:05:09 -07:00
Adam Powell
64414d14a2 Merge "Fix bug 5167078 - Show a 'cheat sheet' popup for icon-only action buttons" 2011-08-15 19:06:54 -07:00
Adam Powell
7b5e9e6c1c Fix bug 5167078 - Show a 'cheat sheet' popup for icon-only action buttons
Action buttons: now less confusing!

Change-Id: I5c96effa64a2cdde22b71523b99ab489869fc245
2011-08-15 19:05:01 -07:00
Jeff Sharkey
b51645ee2c Merge "Foreground/background network stats using sets." 2011-08-15 18:44:15 -07:00
Adam Powell
9e58df5d40 Fix bug 5049406 - ActionBar UP with no home icon, tap highlight looks broken
Measure the action bar title layout to consume the full height of the bar.

Change-Id: Iaf0521c5c80b5bd7ceb7f756e50248f6a27fc1fc
2011-08-15 17:48:37 -07:00
Jeff Sharkey
b5d55e302d Foreground/background network stats using sets.
Teach NetworkStats about "counter sets" coming from kernel, and use
them to track usage in foreground/background.  Add AID_NET_BW_ACCT to
system_server so it can control counter sets.

Move to composite key of NetworkIdentitySet, UID, set, and tag when
recording historical usage.  Persisting still clusters by identity,
since that is heaviest object.

Request async stats poll during systemReady() to bootstrap later
delta calculations. Reset kernel counters when UID removed. Update
various tests.

Bug: 5105592, 5146067
Change-Id: Idabec9e3ffcaf212879821515602ecde0a03de8c
2011-08-15 17:30:25 -07:00
Adam Powell
14b7e2c168 Fix bug 5078498 - Icons jump around on split action bar
Revise measurement and layout code for the lower menu on a split
action bar.

Fix some metrics in the action mode close button and in button bars.

Change-Id: I76215e28ae3b0199162dedd32794b25c9e38a346
2011-08-12 23:34:47 -07:00
Dianne Hackborn
7c0d8472d0 Merge "Fix some crashes that are happening in the system process." 2011-08-12 15:22:32 -07:00
Adam Powell
f2b0961944 Fix bug 5095223 - ICS action bar incorrectly resizing app icons
Remove experimental auto-mipmapping of icons.

Change-Id: I326ca396331a050985200b2ecf0d892474262916
2011-08-12 14:21:57 -07:00
Dianne Hackborn
8e8d65ff5f Fix some crashes that are happening in the system process.
- When shutting down, if the screen goes to sleep there is code
  that tries to do a notifyAll without holding the lock:

java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()
	at java.lang.Object.notifyAll(Native Method)
	at com.android.server.am.ActivityStack.checkReadyForSleepLocked(ActivityStack.java:776)
	at com.android.server.am.ActivityStack$1.handleMessage(ActivityStack.java:282)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at com.android.server.ServerThread.run(SystemServer.java:603)

- If an invalid Uri object is sent to the system process it can crash because
  the Uri class throws an assertion while unmarshalling.  Change this to an
  IllegalArgumentException so it gets sent back to the caller:

java.lang.AssertionError
	at android.net.Uri$PathPart.readFrom(Uri.java:2224)
	at android.net.Uri$HierarchicalUri.readFrom(Uri.java:1106)
	at android.net.Uri$1.createFromParcel(Uri.java:1689)
	at android.net.Uri$1.createFromParcel(Uri.java:1681)
	at android.content.IContentService$Stub.onTransact(IContentService.java:53)
	at android.content.ContentService.onTransact(ContentService.java:120)
	at android.os.Binder.execTransact(Binder.java:338)
	at dalvik.system.NativeStart.run(Native Method)

- StrictMode can try to access the first index in the stack crawl of a stack crawl
  array of length 0.  Not sure why this happens, but make the code more robust:

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
	at android.app.ApplicationErrorReport$CrashInfo.<init>(ApplicationErrorReport.java:341)
	at android.os.StrictMode$ViolationInfo.<init>(StrictMode.java:1978)
	at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:1097)
	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1068)
	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:137)
	at libcore.io.IoBridge.read(IoBridge.java:426)
	at java.io.FileInputStream.read(FileInputStream.java:179)
	at java.io.InputStream.read(InputStream.java:148)
	at com.android.internal.os.ProcessStats.readFile(ProcessStats.java:804)
	at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:564)
	at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:545)
	at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1470)
	at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1522)
	at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:110)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1302)

(Also fix this code to not cause strict mode to trigger at all, because there is
no need, because this is just reading stuff from /proc.)

- The system seems to crash during boot if it thinks it needs to rotate
  the screen, when it is trying to take the freeze snapshot way too early.
  There is no need to freeze the screen during boot or if the screen is off:

java.lang.NullPointerException
	at android.view.Surface.init(Native Method)
	at android.view.Surface.<init>(Surface.java:256)
	at com.android.server.wm.ScreenRotationAnimation.<init>(ScreenRotationAnimation.java:91)
	at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:8758)
	at com.android.server.wm.WindowManagerService.startAppFreezingScreenLocked(WindowManagerService.java:3971)
	at com.android.server.wm.WindowManagerService.startAppFreezingScreen(WindowManagerService.java:4003)
	at com.android.server.am.ActivityRecord.startFreezingScreenLocked(ActivityRecord.java:515)
	at com.android.server.am.ActivityStack.ensureActivityConfigurationLocked(ActivityStack.java:3997)
	at com.android.server.am.ActivityManagerService.updateConfigurationLocked(ActivityManagerService.java:12535)
	at com.android.server.am.ActivityManagerService.updateConfiguration(ActivityManagerService.java:12439)
	at com.android.server.wm.WindowManagerService.systemReady(WindowManagerService.java:6161)
	at com.android.server.ServerThread.run(SystemServer.java:521)

Change-Id: I85062bb5f6b0909a0f52feedaa75e7611d9d7fbd
2011-08-12 14:20:59 -07:00
Adam Powell
b0e217eacb Fix bug 5159073 - actionbar titles don't seem to be drawing anymore
Change-Id: I2e617438134f1ff9f192d861655b69e4790593fe
2011-08-12 11:36:51 -07:00