summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Lockscreen : Fix vol wake for lockscreen security type noneDanesh Mondegarian2012-03-161-4/+6
| | | | | | | Modified the logic so that when lockscreen type is set to none, it doesnt always wake up the device. Change-Id: I64d970a9f3c89b50c781c0046bcf21fb382a298a
* profiles: Add support for disabling screen lockSteve Kondik2012-03-142-2/+23
| | | | | | | | | | | | | | * We can now have the option of disabling lockscreen security as part of the profile. A good use case for this is to create "Car" profile. You certainly don't want to input a pattern, or worse, face-unlock if you should happen to break the law and use your phone whilst driving. * Profile system now permits insecure mode or entirely disabling lockscreen as an override. * Fix issue where changes aren't applied if the active profile is modified. * Also fix a couple of string-comparison derps. Change-Id: I07a09b7011bad4f32cdd7bfa576e3befa71193ea
* Lockscreen : Vol long press skip tracks (1/2)Danesh M2012-03-101-40/+105
| | | | | | | | | | | | | | | Straight port from cm7 Credit : Kmobs,Sven,Cvps..and all who've refined it Patchset 2 : Minor fixes Patchset 3 : Fix misplaced closing bracket Patchset 4 : Rework the conditional logic Patchset 5 : Rebase Patchset 6 : Fix vol change for wake screen Patchset 7 : Cleanup Change-Id: I74584932772ddabbd203acb4d6a65270fd6b20c2
* Profiles - Part 2 of 2DvTonder2012-03-071-2/+106
| | | | | | | | | | Frameworks support for Profiles. Ported from CM7 with some ICS related updates. Patch set 3 - Adds Phone Rintone and Vibrate intercepts Patch set 4 - Minor cleanup Change-Id: I580aed32b714af8497ede39e0905fb327531bf1c
* Configurable 0, 90, 180 and 270 degree rotation (framework part)Jonas Larsson2012-02-281-3/+29
| | | | | | | | | This is similar to my previous CM contributions. Requires settings UI to configure (not done yet). The rationale is to be able to have automatic rotation always enabled, but only for desired angles. Change-Id: I19d3d2cb91249ba2cdee310e6ff7b0978e9bfde0
* Merge "Menu unlock (frameworks part)" into icsSteve Kondik2012-02-181-1/+2
|\
| * Menu unlock (frameworks part)Davor Bertovic2012-02-111-1/+2
| | | | | | | | | | | | | | | | | | | | The option in Settings/Security/Lockscreen was added before in some CM commit, but not working and was missing a proper frameworks part Patchet 3: Done like master Danesh M wanted Change-Id: I589c77cd58d7beb4093e334f074c7f7643d90858
* | Camera : Powerkey shutter (1/2)Danesh M2012-02-181-0/+3
| | | | | | | | | | | | | | | | | | Allows user to take use power key to take pictures/videos Patchset 2 : Add mask to setFlags Patchset 3 : Rebased Change-Id: I19f7829a49b43dc04bbf73efc0a3d3f7b0d24987
* | wake phone with volume keysTanguy Pruvot2012-02-181-2/+17
|/ | | | | | From CM71, for devices where power button is hard to press Change-Id: I402394d2599e18b70283a7e8b9d5d6c8ce1e38c7
* Merge "Lockscreen : Quick unlock" into icsSteve Kondik2012-02-071-0/+20
|\
| * Lockscreen : Quick unlockDanesh M2012-01-291-0/+20
| | | | | | | | | | | | | | | | Unlock password/pin lockscreen without pressing enter button Patchset 2 : Remove unecessary intialization Change-Id: Iecb5ed52ef28234f6adad813906dc885296a157c
* | Added CombinedBar Auto Hide (3/2) (FIX)Flemmard2012-01-291-3/+8
|/ | | | | | | | This fix shows the bar again when touching screen, as it does on GN. PatchSet 2 fixes crash on some fullscreen apps. Change-Id: I8fbbbddd551ee2c053efe1cd6e0666f932200e93
* Added CombinedBar Auto Hide (1/2)Flemmard2012-01-281-1/+4
| | | | | | | This allows to enable autoHiding of CombinedBar like on ICS phones. It adds a Setting in Settings> Interface> System> Cobmined Bar Change-Id: Idaf4ff23630353102cee585c6d43593167467057
* Merge "policy: Fix slide lid open state" into icsSteve Kondik2012-01-261-2/+2
|\
| * policy: Fix slide lid open stateWon-Kyu Park2012-01-181-2/+2
| | | | | | | | | | | | | | | | by commit 4aed78b5056560f499e5953f659fa90a06ecc38a lidOpen was reverted. fix to make lidOpen true when sw == 0. and fix getStateLocked()/getState() to get UP/DOWN state correctly. Change-Id: I22a185478be860f1c88cf56d7ef3d0b3a8617459
* | Keyguard: Add accelerometer override to lockscreenTakazumi Matsumoto2012-01-161-1/+2
|/ | | | | | | | On ICS tablets, by default the lockscreen will rotate irrespective of the auto-rotate switch. Go back to Honeycomb-like behavior of the switch controlling the lockscreen. Change-Id: I697fe588c6a7d20e03e0f8ff5927834f8819c871
* Long press to killDanesh M2012-01-011-2/+9
| | | | | | | Bring changes done in cm7 to ics. - Vibrate on press - Show message - http://review.cyanogenmod.com/#change,5191,patchset=2
* Kill App on Long-Press Back Key (framework)nebkat2011-12-271-0/+36
| | | | Change-Id: Ib78fff9e32d95a0a112ddd9274b79b3a3aa626b9
* Merge branch 'ics-mr1' of ↵Steve Kondik2011-12-1615-478/+675
|\ | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into aosp Conflicts: core/res/res/values/strings.xml policy/src/com/android/internal/policy/impl/GlobalActions.java services/java/com/android/server/WifiService.java services/sensorservice/SensorDevice.cpp telephony/java/com/android/internal/telephony/RIL.java Change-Id: I89ec56d5ff282a2eb879ca40fb6d74ebcf752837
| * Fix issue #5755172: Soft menu key disappears when menu is openDianne Hackborn2011-12-133-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to work more like before in determining whether the menu key is needed -- in some cases look back in the window list to determine this if we don't know the value from the current window. This requires adding a new private flag indicating whether the compat menu state is known for a window, which is set by PhoneWindow as part of its existing process of computing the flag for its own windows. Now we can have a new API on WindowState to determine the value of this flag for a window, which if needed walks back in the window list to find a window the value is known for (or stops at what the policy has determined is the top full-screen window, so we stop like we used to at things like the lock screen or the bottom of an application). Change-Id: I829de6d629b5af8bcb422cb85249ee4041c7205e
| * Merge "Shortcut keys should be handled on down, not up." into ics-mr1Jeff Brown2011-12-071-11/+31
| |\
| | * Shortcut keys should be handled on down, not up.Jeff Brown2011-12-071-11/+31
| | | | | | | | | | | | | | | Bug: 5720360 Change-Id: I3afc278e576ea992c76f024c8b6bad14b214239c
| * | Merge "Fix system hotkey handling." into ics-mr1Jeff Brown2011-12-073-78/+102
| |\ \ | | |/
| | * Fix system hotkey handling.Jeff Brown2011-12-073-78/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a problem where the key up for the ALT or META key was not delivered to the task switcher dialog because it was deemed to be inconsistent with the window's observed state. Consequently the dialog would not be dismissed when the key was released. Moved global hotkey handling for META+* shortcuts and ALT/META-TAB into the window manager policy's interceptKeyBeforeDispatching method. This change prevents applications from hijacking these keys. The original idea was that these shortcuts would be handled only if the application did not handle them itself. That way certain applications, such as remote desktop tools, could deliberately override some of these less important system shortcuts. Unfortunately, that does make the behavior inconsistent across applications. What's more, bugs in the onKeyDown handler of applications can cause the shortcuts to not work at all, for no good reason. Perhaps we can add an opt-in feature later to enable specific applications to repurpose these keys when it makes sense. Bug: 5720358 Change-Id: I22bf17606d12dbea6549c60d20763e6608576cf7
| * | am b32785c6: Merge "More fixing for issue #5366535: Lockscreen has wrong ↵Dianne Hackborn2011-12-071-0/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | layout..." into ics-mr0 * commit 'b32785c6e893743956e28b285b8e6f6fc7aa8edb': More fixing for issue #5366535: Lockscreen has wrong layout...
| | * | More fixing for issue #5366535: Lockscreen has wrong layout...Dianne Hackborn2011-12-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...but corrects itself Change upgrade window to not allow the device to rotate while it is shown. Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575
| * | | Merge "Make new ringer toggles on power menu accessible and navigable with ↵Amith Yamasani2011-12-071-2/+1
| |\ \ \ | | | | | | | | | | | | | | | keyboard." into ics-mr1
| | * | | Make new ringer toggles on power menu accessible and navigable with keyboard.Amith Yamasani2011-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5721663 Added content descriptions and made the listview allow navigation between nested views. Change-Id: I69d78d65e1bab829f63c2e6025051206e511f00f
| * | | | Merge "Make the dock orientation override the HDMI orientation." into ics-mr1Jeff Brown2011-12-071-4/+5
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
| | * | Make the dock orientation override the HDMI orientation.Jeff Brown2011-12-061-4/+5
| | | | | | | | | | | | | | | | | | | | Bug: 5714422 Change-Id: I5a229f987fb88a25d2e49d0c73184f556ffc1114
| * | | New and improved silent mode on lockscreen.Amith Yamasani2011-12-062-66/+121
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 3-state item to toggle between Silent/Vibrate/Ringer in long-press power menu. No volume dialog on lockscreen, unless Power menu is up. Set VIBRATE_IN_SILENT=1 when upgrading device. Change-Id: I097d216f96c4abdbd83420e0c477106951b3607d
| * | Fix issue #5714517: App shortcuts can result in bad task intentsDianne Hackborn2011-12-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | New API to let you build an Intent whose base configuration is correct, but has an additional "selector" to pick out the specific app that you would like launched. Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
| * | Merge "Further volume improvements." into ics-mr1Amith Yamasani2011-12-022-39/+55
| |\ \
| | * | Further volume improvements.Amith Yamasani2011-12-012-39/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove silent mode from Power menu - Show volume dialog on lockscreen - Allow beeps when adjusting volume in lockscreen Bug: 5586083 Change-Id: I93052a8ec5004c784f20e04488af9382d495e711
| * | | Merge "No clicking on volume icon in volume dialog." into ics-mr1Amith Yamasani2011-12-011-2/+2
| |\ \ \ | | |/ / | |/| |
| | * | No clicking on volume icon in volume dialog.Amith Yamasani2011-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't disable volume slider when it hits zero. Show correct icon for Silent mode in Power menu. Bug: 5586083 Change-Id: Iaa957fc08e314e0de1c007dfc967a1d960080aab
| * | | Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1Daniel Sandler2011-12-011-142/+0
| |\ \ \
| | * | | Put screensavers back in the icebox for now. DO NOT MERGE.Daniel Sandler2011-11-301-142/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5689684 Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
| * | | | Fix issue #5433192 and maybe #5433192Dianne Hackborn2011-11-301-2/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5433192: Factory reset device: compatibility screen is the first... ...screen before setup wizard Don't show compat mode dialog if compat mode is unknown (which happens early in boot before an activity is shown for example). Also make sure to update status any time the current focus app token changes, so we correctly update every time switching apps. 5651152 [Stingray] change zoom/strech setting icon won't go away This is probably also fixed by updating when the app token changes. Change-Id: Ibe9bd6277166230d5d96689741b78325ea099d57
| * | | Merge "Fix application launch shortcuts." into ics-mr1Jeff Brown2011-11-291-1/+42
| |\ \ \
| | * | | Fix application launch shortcuts.Jeff Brown2011-11-291-1/+42
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
| * | | Merge "Another attempt at getting OOM reports to batch." into ics-mr1Dianne Hackborn2011-11-291-1/+2
| |\ \ \
| | * | | Another attempt at getting OOM reports to batch.Dianne Hackborn2011-11-291-1/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now generate a stack-trace looking thing at the top of the report. Also fix a bug I hit where the phone window manager was sending a broadcast before the boot had completed. Change-Id: I0cee16180e4d05c9bd3fe715212a28f504ec91ac
| * | | Quick fix for bug 5646217 blocking automation testsDaniel Sandler2011-11-231-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The screen saver knows to avoid running when applications are holding wake locks via window flags, but other wake locks are invisible to the window manager and therefore to the screen saver activation code. The correct thing to do is move the screen saver to the power manager to give it access to all wakelock information. In the meantime, this fix checks for the user's STAY_ON_WHILE_PLUGGED_IN setting and disables the screen saver in this case. Bug: 5646217 Change-Id: Ia2286a8c3745267871901f7a0b7df94ec344a456
| * | Dismiss system windows when screen savers start.Daniel Sandler2011-11-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a couple more flags to the intent: - NO_HISTORY (finish activity on suspend) - FLAG_FROM_BACKGROUND Bug: 5578434 Change-Id: I97b965175a27760b819dc29ddb57865c5f4754d6
| * | Dreams (now Screen Candy) development.Daniel Sandler2011-11-181-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | - support for global "disable" setting - renamed settings provider keys to remove "DREAM" Bug: 5591015 Change-Id: I31f31b3ca6001fec1e0032a49cdf0d10df7b0ec7
| * | Merge "Tie screen saver to the screen off timeout." into ics-mr1Daniel Sandler2011-11-171-4/+44
| |\ \
| | * | Tie screen saver to the screen off timeout.Daniel Sandler2011-11-171-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The window manager now monitors the plug state; the screen saver will never be automatically started if the device is running off battery. Change-Id: Ib1064d9cdd540238957df3ba7020303b0f6943c2
| * | | Merge "Fix 5636798: clear PIN/PUK fields when device sleeps or user cancels" ↵Jim Miller2011-11-173-4/+13
| |\ \ \ | | | | | | | | | | | | | | | into ics-mr1
| | * | | Fix 5636798: clear PIN/PUK fields when device sleeps or user cancelsJim Miller2011-11-173-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug is the result of onPause()/onResume() not being called properly when we have both lock and unlock screens present, which is true for the SIM and PUK unlock cases. The fix is to invoke onPause() and onResume() on both of them if they exist. Verified the rest of the code correctly handles having both. Also, when the user cancels, we now clear the fields. Change-Id: If7fbd31df7eab9e3d60656d50d2392607a4bf471