summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Overflow menu for action bars.Adam Powell2010-07-161-2/+6
| | | | | | | | | | The overflow menu replaces the normal options menu panel for activities with an action bar. It always appears as the rightmost action button and is displayed as a dropdown menu. The menu key summons and dismisses the overflow menu instead of the options panel where applicable. Change-Id: I0b4fa7e36f35ab12e2f0c1d12bec79ccab8cc4b1
* Fix bug 2835056 - ActionBar doesn't update title properly when set in onCreateAdam Powell2010-07-141-2/+2
| | | | Change-Id: I593315db8df0190c2702a87ebef293e5f798823d
* am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-3/+3
|\ | | | | | | | | | | | | Merge commit 'f8d9379bd834573feca085284970cf686993c330' * commit 'f8d9379bd834573feca085284970cf686993c330': IME events are now dispatched to native applications.
| * IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
* | Action Bar now supports submenus as popups.Adam Powell2010-07-131-5/+21
| | | | | | | | Change-Id: I1691c16081b3474ed6d6e406f91f5f74a2dc8fcb
* | resolved conflicts for merge of 167449e5 to masterJeff Brown2010-07-081-278/+175
|\ \ | |/ | | | | Change-Id: Ib448e69a726eb45b5c9099d2574e40b8345eee67
| * More native input dispatch work.Jeff Brown2010-07-031-278/+175
| | | | | | | | | | | | | | | | | | | | Removed old input dispatch code. Refactored the policy callbacks. Pushed a tiny bit of the power manager state down to native. Fixed long press on MENU. Made the virtual key detection and cancelation a bit more precise. Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
* | Let the window manager place the rest of the windows on screen when the ↵Joe Onorato2010-07-071-4/+11
| | | | | | | | | | | | status bar is at the bottom. Change-Id: I29c43beee047bb99695a34e6b202ff3f8400c8c2
* | Added context modes to ActionBar API.Adam Powell2010-06-291-2/+8
| | | | | | | | Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
* | am 98f7aed6: am 1e4b9f39: Remove InputConsumer, replacing with InputQueue.Dianne Hackborn2010-06-231-7/+6
|\ \ | |/ | | | | | | | | | | Merge commit '98f7aed66b54c365f816fe990de978f61155cde1' * commit '98f7aed66b54c365f816fe990de978f61155cde1': Remove InputConsumer, replacing with InputQueue.
| * Remove InputConsumer, replacing with InputQueue.Dianne Hackborn2010-06-231-9/+6
| | | | | | | | Change-Id: Ib06907278457aaee842b123adc072840ca3602d8
* | am e3e2883f: am e24a60aa: Merge "First stab at attaching native event ↵Dianne Hackborn2010-06-231-0/+12
|\ \ | |/ | | | | | | | | | | | | | | dispatching." into gingerbread Merge commit 'e3e2883f2232007174ead562610eb01201890d9b' * commit 'e3e2883f2232007174ead562610eb01201890d9b': First stab at attaching native event dispatching.
| * First stab at attaching native event dispatching.Dianne Hackborn2010-06-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Provides the basic infrastructure for a NativeActivity's native code to get an object representing its event stream that can be used to read input events. Still work to do, probably some API changes, and reasonable default key handling (so that for example back will still work). Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
* | Merging ActionBar menu with options menu.Adam Powell2010-06-171-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Options menu items may now specify if they would like to appear in the action bar. Menu items defined in xml may set the showAsAction attribute to one of "never"(default), "ifRoom", or "always". Action buttons are populated as follows: * All showAsAction="always" items become action buttons, even if it would crowd the navigation area of the action bar. * If there is space remaining, showAsAction="ifRoom" items are added until no more will fit comfortably. Action button click events are now handled by the onOptionsItemSelected method used by the standard options menu. The construction of options menus now happens earlier in order to provide data to the action bar. Activities with an action bar can now expect to have onCreateOptionsMenu called when activity start-up is complete. Activity#invalidateOptionsMenu can be used to force a refresh of menu items where the previous API would use ActionBar#updateActionMenu. Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
* | am 685fcf36: am c95812e6: Merge "Move out all framework-tests classes." into ↵Brett Chabot2010-06-1631-2/+414
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48' * commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48': Move out all framework-tests classes.
| * Move out all framework-tests classes.Brett Chabot2010-06-1431-2/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously tests/framework-tests contained a quarantined set of test classes that needed access to package-private framework api. Running these tests normally would cause the dalvik verifier to throw errors. runtest now has support for turning off the dalvik verifier for frameworks tests, so move this tests into their recommended location, close to the source being tested. Also move policy source into a 'src' folder to accommodate the tests move. Change-Id: I62f839da185a55bc553b653bf583fd99da438512
* | resolved conflicts for merge of 9e660c82 to masterJeff Brown2010-06-132-1/+31
|\ \ | |/ | | | | Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
| * Native input dispatch rewrite work in progress.Jeff Brown2010-06-132-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old dispatch mechanism has been left in place and continues to be used by default for now. To enable native input dispatch, edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy. Includes part of the new input event NDK API. Some details TBD. To wire up input dispatch, as the ViewRoot adds a window to the window session it receives an InputChannel object as an output argument. The InputChannel encapsulates the file descriptors for a shared memory region and two pipe end-points. The ViewRoot then provides the InputChannel to the InputQueue. Behind the scenes, InputQueue simply attaches handlers to the native PollLoop object that underlies the MessageQueue. This way MessageQueue doesn't need to know anything about input dispatch per-se, it just exposes (in native code) a PollLoop that other components can use to monitor file descriptor state changes. There can be zero or more targets for any given input event. Each input target is specified by its input channel and some parameters including flags, an X/Y coordinate offset, and the dispatch timeout. An input target can request either synchronous dispatch (for foreground apps) or asynchronous dispatch (fire-and-forget for wallpapers and "outside" targets). Currently, finding the appropriate input targets for an event requires a call back into the WindowManagerServer from native code. In the future this will be refactored to avoid most of these callbacks except as required to handle pending focus transitions. End-to-end event dispatch mostly works! To do: event injection, rate limiting, ANRs, testing, optimization, etc. Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
* | resolved conflicts for merge of f7b79151 to masterJoe Onorato2010-06-091-0/+8
|\ \ | |/ | | | | Change-Id: Ia4538f73d8bade9e6565835d484dcb650830feca
| * Require the STATUS_BAR_SERVICE permission for something to be the status bar.Joe Onorato2010-06-091-0/+8
| | | | | | | | Change-Id: I57b2d296e0d0cef0d256ae6697fffc47188d14df
* | Add Fragment option menu APIs.Dianne Hackborn2010-06-091-3/+18
| | | | | | | | | | | | | | Also fix up how transactions are handled so that a series of transactions can correctly be created and committed. Change-Id: I948ba47d49e9b2246a1958bd9eac9dd36dc5a855
* | am ff97998a: am 4762c2d7: Add expand and collapse.Joe Onorato2010-06-021-16/+0
|\ \ | |/
| * Add expand and collapse.Joe Onorato2010-06-021-16/+0
| | | | | | | | Change-Id: I58ad95c59b2c46d3f25349e137d5624aefc6c6cd
* | am ee5d0caf: am f3f0e053: Make disable() work.Joe Onorato2010-06-021-1/+1
|\ \ | |/
| * Make disable() work.Joe Onorato2010-06-021-1/+1
| | | | | | | | Change-Id: I93fea37e777b3e04fe7f9171d5b84821587c24f5
* | am 12cd606d: am 0cbda99f: The status bar draws its icons now.Joe Onorato2010-06-022-9/+10
|\ \ | |/
| * The status bar draws its icons now.Joe Onorato2010-06-022-9/+10
| |
* | am e0b2ae11: am 25f95f92: Rename IStatusBar to IStatusBarService.Joe Onorato2010-06-021-3/+3
|\ \ | |/
| * Rename IStatusBar to IStatusBarService.Joe Onorato2010-06-021-3/+3
| | | | | | | | Change-Id: Icfec2a830f037b21f6afaa796bf49da610567e7b
* | Fix 2571872: Showing an error message on wrong password/pin entered.Konstantin Lopyrev2010-06-011-12/+18
| | | | | | | | Change-Id: I78463112326ebd1ac7d43d083e22d506518e84fd
* | Fix 2677197: Adding minimum complex character support.Konstantin Lopyrev2010-05-272-2/+5
| | | | | | | | Change-Id: I520bc5f9aa924bf9b5585b2235a91cc96cb99c25
* | resolved conflicts for merge of 8b625a95 to masterDianne Hackborn2010-05-181-1/+38
|\ \ | |/ | | | | Change-Id: I03264c6aad2d87629f9154f5c390cb36ce08efba
| * Add new API to take over a window's Surface.Dianne Hackborn2010-05-181-1/+31
| | | | | | | | Change-Id: Iad6245faadc95f19ea63c8e229a1c02e9188f69e
* | Fix 2571606: Correct message after too many failed attempts for password and ↵Konstantin Lopyrev2010-05-142-2/+18
| | | | | | | | | | | | pin. Change-Id: Ib712c692804b067b95b261852afdd9fac40194c4
* | ActionBar added to framework, integrated with Activity and styles.Adam Powell2010-05-131-7/+23
| | | | | | | | | | | | Added onClick attribute support to menus in MenuInflater. Change-Id: I739771b4f249d87a0d8b15969f3d526b099067a1
* | Fixing bug 2660263, changed text for PIN unlockKonstantin Lopyrev2010-05-101-0/+1
| | | | | | | | Change-Id: I904c7c4753b68195fbd547e97207aa3cceef3c6d
* | am faa1461d: am ab4f3c60: Merge "Manual integration of I32a7b5 from froyo" ↵Jim Miller2010-05-061-32/+32
|\ \ | |/ | | | | into kraken
| * Manual integration of I32a7b5 from froyoJim Miller2010-05-061-32/+32
| | | | | | | | | | | | | | | | | | Fix 2662816: Move UI update from async callback to ui thread. This fixes a bug where the view hierarchy in AccountUnlockScreen was being modified by the async callback thread from AccountManager. Change-Id: I5f1b4e04a7e4af68a5705545765f294cdbd0f17b
* | am 867ab647: Integrate a bunch of stuff from Froyo:Dianne Hackborn2010-04-292-73/+100
|\ \ | |/
| * Integrate a bunch of stuff from Froyo:Dianne Hackborn2010-04-292-73/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issue #2574016: Preferred activity setting is not persistent 14/48014/1 author Dianne Hackborn <hackbod@google.com> Wed, 7 Apr 2010 03:24:15 +0000 (20:24 -0700) committer Dianne Hackborn <hackbod@google.com> Wed, 7 Apr 2010 03:24:15 +0000 (20:24 -0700) commit 3cce600614c2a2643ae9a38c6ed87c06c7bab0b6 tree 394f330634ab83a97b244fbd214d5edbbd44fa52 tree | snapshot parent 7d8866f9ef026870d4735d6f2ede49525150e53e commit | diff Fix issue #2574016: Preferred activity setting is not persistent The recent tasks UI was trying to retrieve the current home activity in the wrong way, causing it to be a different match of activities and thus clearing any preferred activity that was set. In the future we should look at what the package manager is doing here and make it more robust in how it clears the list... but for now, this is the safest thing. Change-Id: Idc917dffa7d05d62671213414387e8bdb2e34bea Fix issue #2555171: Switching to app immediately after unmounting SD card causes... 28/48128/1 author Dianne Hackborn <hackbod@google.com> Thu, 8 Apr 2010 01:15:32 +0000 (18:15 -0700) committer Dianne Hackborn <hackbod@google.com> Thu, 8 Apr 2010 01:15:32 +0000 (18:15 -0700) commit 31abd7f677190edfa67cb96fb4ddb166e974cb3e tree 7cc1059c3c6689ba3f2af5161585b3e7241e0580 tree | snapshot parent 3cce600614c2a2643ae9a38c6ed87c06c7bab0b6 commit | diff Fix issue #2555171: Switching to app immediately after unmounting SD card causes reboot. Change-Id: I509162e136dd721fecfaabc45a046537b2d19077 Fix issue #2586349: Accelerometer is enabled when in car mode 61/48361/1 author Dianne Hackborn <hackbod@google.com> Fri, 9 Apr 2010 23:40:33 +0000 (16:40 -0700) committer Dianne Hackborn <hackbod@google.com> Fri, 9 Apr 2010 23:40:33 +0000 (16:40 -0700) commit b0d3a2371f92d19d01aa2ca8e4f382738273f2dd tree e134d055ce8efb4ef48a74c45da0325ed55852ea tree | snapshot parent eeb2497f92b8d1466918990d536e2d31b5a85c07 commit | diff Fix issue #2586349: Accelerometer is enabled when in car mode Change-Id: Iab5ca4ea9f69bd54f815fc7463df808d81c61ffd Fix issue #2555171: Switching to app immediately after unmounting... 65/48665/1 dalvik-dev froyo froyo-plus-aosp froyo-release stage-korg-froyo stage-korg-master author Dianne Hackborn <hackbod@google.com> Tue, 13 Apr 2010 19:48:30 +0000 (12:48 -0700) committer Dianne Hackborn <hackbod@google.com> Tue, 13 Apr 2010 19:52:10 +0000 (12:52 -0700) commit cddfd77b45662d7316aaed3d0159d0f42d284cfc tree c52d612ada1f85d3d38b3e776bc520b7a0b22256 tree | snapshot parent 5fa04b55a94b5cd98f1e6e1197cc4e6ef26a7061 commit | diff Fix issue #2555171: Switching to app immediately after unmounting... ...SD card causes reboot. Deal with unavailable apps in recent tasks UI. Change-Id: Ib85b773c5c6df7afb12db551b6cef63edbc6df64
* | am 318249e4: Merge "Manual merge of ↵Jim Miller2010-04-151-6/+9
|\ \ | |/ | | | | Ida6a4cdd3abcbcab7e2fe8450a25c0dc36765f04" into kraken
| * Merge "Manual merge of Ida6a4cdd3abcbcab7e2fe8450a25c0dc36765f04" into krakenJim Miller2010-04-151-6/+9
| |\
| | * Manual merge of Ida6a4cdd3abcbcab7e2fe8450a25c0dc36765f04Jim Miller2010-04-151-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix 2572446: Also watch keyboard changes in PIN/Password unlock. The PIN/Password unlock screen was monitoring orientation changes. However, while docked, this isn't useful since orientation remains fixed. This change makes PasswordUnlockScreen also looks for changes to config.hardKeyboardHidden. Tested: WVGA device while docked and opening/closing the keyboard. Change-Id: Iaadb277028f2dd1f85fd0f627a686a86ac51a2ed
* | | am 43725d4d: Merge "Manual merge of ↵Jim Miller2010-04-152-2/+9
|\ \ \ | |/ / | | | | | | Idf6bb25438336616e6453e7afe0e79f227af98d3" into kraken
| * | Manual merge of Idf6bb25438336616e6453e7afe0e79f227af98d3Jim Miller2010-04-152-2/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix 2575838: Update emergency button in AccountUnlockScreen DO NOT MERGE AccountUnlockScreen wasn't registered to receive updates from UpdateMonitor. It now correctly updates the Emergency call button to allow the user to return to the call in progress (InCallScreen). Tested on WVGA device with keyboard: - hitting Home during call, observing state, and pressing button to return to call. - hitting Home while not in call to ensure it still invokes EmergencyDialer. - above in various keyboard states. Change-Id: Ic4480ff69ff4479557ddb7f76c751b005b1c60bf
| * Manually integrating froyo lockscreen fixes:Daniel Sandler2010-04-131-30/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | I6872c3ad135bc34348adafa76e08a3878f1b506f "Add emergency call button to PUK'd lockscreen." Bug: 2568732 I5ad8745443fc97225af9efb938e4640cfc29b5d7 "Restore text field used by sliding tab to give ringer mode feedback." Bug: 2587358 Change-Id: Ide3ad839aaf029930c0bf7ba4b9f6587efbd811d
* | Lockscreen improvements from froyo.Daniel Sandler2010-04-151-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (In kraken as Ide3ad839.) I6872c3ad135bc34348adafa76e08a3878f1b506f "Add emergency call button to PUK'd lockscreen." Bug: 2568732 I5ad8745443fc97225af9efb938e4640cfc29b5d7 "Restore text field used by sliding tab to give ringer mode feedback." Bug: 2587358 Change-Id: I631d8e73571ccd566dc0ad80941bd739e614b9f6
* | am 02d8d1e0: am a240ce20: Merge "Finish moving the policies out of ↵Joe Onorato2010-04-061-3/+2
|\ \ | |/ | | | | frameworks/policies/base and into frameworks/base." into kraken
| * Finish moving the policies out of frameworks/policies/base and into ↵Joe Onorato2010-04-061-3/+2
| | | | | | | | | | | | frameworks/base. Change-Id: Id3a0c06202b0f6f2206acf490c8655d340ee0556
| * de-activate makefileJean-Baptiste Queru2010-04-061-1/+1
| | | | | | | | Change-Id: I6def51dea7aab002f7dbbe1e2573f52a2caa94fe