summaryrefslogtreecommitdiffstats
path: root/api
Commit message (Collapse)AuthorAgeFilesLines
* Remove SELinux additions from public APIRicardo Cerqueira2013-07-181-15/+0
| | | | Change-Id: If2e076312b0e411145c1cd900f3ae20d998a0f24
* Add APIs to allow Device Admins to change SELinux settingsJoman Chu2013-07-181-0/+15
| | | | | | | | | | | | | | | | | | | | | These calls, added to the Device Admin API, will allow Device Admin apps to change various SELinux settings, including: * Toggling SELinux enforcing and permissive modes * Toggle SELinux booleans * Load a new SELinux policy file (sepolicy) * Load new SELinux context files ({property,file,seapp}_contexts) In order to use these APIs, a Device Admin must first request USES_POLICY_ENFORCE_SELINUX, then become a SELinux Admin by calling setSELinuxAdmin(). All other set* calls relevant to SELinux are guarded by a check against whether the admin is a SELinux Admin. Otherwise, the style of the set* calls are very similar to the other calls setting device policy in the Device Admin API. That is, these calls change the Admin's internal state and then call a sync method to update the device's state to the Admin's state. Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8476e
* [HTML5] Implementation of WebSockets (framework).Oleg Smirnov2013-03-241-1/+3
| | | | | | | | Added binding to android port for Html5 WebSockets. Added external API for enabling\disabling from browser. SSL Web Sockets are not implemented in the current version. Change-Id: I8b7a42780410cb9f043e1f16570ea50db68e00ea
* camera: add power mode supportEmerson Pinter2012-12-231-0/+5
| | | | | | | Based on commit 7036d66bec7697160ba1b2e255f1e7fae0c8c435 from CAF, branch ics_chocolate. Change-Id: I8a60668b18980fd5e6f9dd341db5a8a63deb99d0
* am 7ab7f538: Hide new location APIs and undeprecate old onesLaurent Tu2012-11-012-146/+72
|\ | | | | | | | | * commit '7ab7f538924371a9dd4be7a27a6ae3b4c04b301c': Hide new location APIs and undeprecate old ones
| * Hide new location APIs and undeprecate old onesLaurent Tu2012-11-012-146/+72
| | | | | | | | | | | | | | | | | | Hide all new location APIs related to LocationRequest/Geofence and undeprecate all deprecated APIs consequently to the LocationRequest and Geofence introduction. Also introduce LocationRequestUnbundled for LocationProviders to use. Change-Id: I5b116c7d342041f45b341c88a4b6813571118018
* | Merge "Stripping dead API related to keyguard widgets" into ↵Adam Cohen2012-11-012-8/+0
|\ \ | |/ |/| | | jb-mr1-lockscreen-dev
| * Stripping dead API related to keyguard widgetsAdam Cohen2012-10-312-8/+0
| | | | | | | | Change-Id: Ieb6c57ef736712b3266de08027f9626104cdf1bb
* | A new clock widget to create lock screen appwidgetsRomain Guy2012-10-312-16/+52
|/ | | | | | | | | | | This new widget replaces DigitalClock. It listens to all the correct system events and offer the ability to customize the formatting patterns in 12-hour and 24-hour modes. It also supports fixed time zones to create world clocks. One more step towards becoming ClockOS! Change-Id: I677e5dfca8cd8c8d1f8c49e54d7507f4d1885bf4
* Add MediaRouter API to get presentation display.Jeff Brown2012-10-252-0/+8
| | | | | | | | | | | | | | | This new API makes it possible for an application to ask on which Display it should show a Presentation based on the currently selected media route. Also added a new API on DisplayManager to query displays that support a certain category of uses. Improved the documentation of the Presentation class to explain how to choose an appropriate Display for presentation. Bug: 7409073 Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
* Merge "FIx bug #7414801 Should make private and final ↵Fabrice Di Meglio2012-10-252-4/+0
|\ | | | | | | View.TEXT_DIRECTION_DEFAULT and View.TEXT_ALIGNMENT_DEFAULT constants" into jb-mr1-dev
| * FIx bug #7414801 Should make private and final View.TEXT_DIRECTION_DEFAULT ↵Fabrice Di Meglio2012-10-252-4/+0
| | | | | | | | | | | | | | | | | | and View.TEXT_ALIGNMENT_DEFAULT constants - made them private and final - fixed comment Change-Id: Ia1d22329edb7ac26e7bcd0489770a99ad41c4f0e
* | Fix issue #7408647: Add getUserCount() APIDianne Hackborn2012-10-242-0/+2
|/ | | | Change-Id: Ib4e8e2300757e0941fae8fbc46c4323f5e2d7d6b
* Secure windows, secure surface views and secure displays.Jeff Brown2012-10-232-0/+4
| | | | | | | | | Add new API to determine whether a display is secure. Add new API to make a SurfaceView secure. Clarify documentation. Bug: 7368436 Change-Id: I7068c34c910e43b4bc72e43fa0dded59a25f0fe2
* Add throwing InvalidDisplayException from addView.Craig Mautner2012-10-232-2/+14
| | | | | | | | | | | | | | | Throw an InvalidDisplayException to addView if the display being added to has been removed. Handle this exception in Dialog.show() by removing the view after it has been added and rethrow the exception from there. Add javadoc to ViewManager.addView and Presentation.show explaining the new exception and how best to handle it. Bug: 7368565 partially fixed. It remains for the Videos app to handle Presentation.show throwing the InvalidDisplayException. Change-Id: Ib4303c9b3f7bf7a0cfa95d19bd60a0c128658c48
* Merge "Revert "Revert "This restores JB MR0 behavior where the framework ↵Dave Burke2012-10-181-2/+2
|\ | | | | | | throws an exception for improper layouts that are missing layout_width and/or layout_height.""" into jb-mr1-dev
| * Revert "Revert "This restores JB MR0 behavior where the framework throws an ↵Dave Burke2012-10-181-2/+2
| | | | | | | | | | | | | | | | exception for improper layouts that are missing layout_width and/or layout_height."" This reverts commit 57fca90ac65ecfe97acd4c93d442c3db8f815e11 Change-Id: I21b007a7d150a4c23f25a706cdba5cb86198198f
* | Fix missing @hide on ViewGroup.resolveLayoutParams()Fabrice Di Meglio2012-10-181-1/+0
| | | | | | | | | | | | - as we dont need this to be public Change-Id: Ib8de262eec26d4785b13875d59599369b06a067d
* | Fix the buildFabrice Di Meglio2012-10-181-0/+1
| | | | | | | | | | | | - was missing a "make update-api" pass Change-Id: I004a1650cf7946e0e8bd36d75dab81bbca80443c
* | Merge "Fix bug #7363252 Popup and Dialog UI widgets should be RTL aware" ↵Fabrice Di Meglio2012-10-172-2/+0
|\ \ | | | | | | | | | into jb-mr1-dev
| * | Fix bug #7363252 Popup and Dialog UI widgets should be RTL awareFabrice Di Meglio2012-10-162-3/+1
| | | | | | | | | | | | | | | | | | | | | - set the Configuration's layout direction in ViewRootImpl instead of PhoneWindow$DecorView - then remove unecessary API on ListPopupWindow for passing the layout direction Change-Id: Ia2c6e4aa8cb82aed9b088bc3b8004ea0a1ded1f3
* | | Merge "Revert "This restores JB MR0 behavior where the framework throws an ↵Justin Ho2012-10-171-2/+2
|\ \ \ | | |/ | |/| | | | exception for improper layouts that are missing layout_width and/or layout_height."" into jb-mr1-dev
| * | Revert "This restores JB MR0 behavior where the framework throws an ↵Justin Ho2012-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | exception for improper layouts that are missing layout_width and/or layout_height." This reverts commit dcf59629beed8182759a1068ab8ee997935bef82 Change-Id: I27426a0ffe993973ffb0b05ce1ed3afe73fcd87d
* | | Merge "This restores JB MR0 behavior where the framework throws an exception ↵Jim Miller2012-10-161-2/+2
|\ \ \ | |/ / | | | | | | for improper layouts that are missing layout_width and/or layout_height." into jb-mr1-dev
| * | This restores JB MR0 behavior where the framework throws an exception for ↵Jim Miller2012-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | improper layouts that are missing layout_width and/or layout_height. Revert "Revert "Revert "Fix for bug 6050753.""" This reverts commit 6868d6f349610c15256471cc3d5fa708cbfd5f1d Change-Id: I8843d92dba14c82f06d9ee59517cf11b2abbbf04
* | | Add API to enable mipmaps on BitmapRomain Guy2012-10-161-0/+2
|/ / | | | | | | | | | | | | | | | | Bug #7353771 This API can be used when scaling large images down to a small size to get nicer looking results. Change-Id: If09087eed36077eee5355f6047a3ca67747d7d9e
* | Revert "Revert "Fix for bug 6050753.""Mathias Agopian2012-10-151-2/+2
|/ | | | | | | | Emergency revert -- fix reboot loop. This reverts commit 8e63bcc63fd002231f8391af8982eeb235d096c8. Change-Id: I4373b867d756de09cdf6aa0aba9e6ff8f47bcdbc
* Revert "Fix for bug 6050753."Romain Guy2012-10-151-2/+2
| | | | This reverts commit c29f031598811486d83f418fd08fbfe1fc41788a.
* Fix bug #7334966 Padding is still broken in RTL languagesFabrice Di Meglio2012-10-122-2/+0
| | | | | | | - do correct resolution and reset propagation for all RTL properties (padding and drawables included) - fix CheckedTextView padding too Change-Id: Ie603683a2324b2a6ef2c03633d01d5726c883b90
* Unhide setPictureListenerJonathan Dixon2012-10-112-0/+2
| | | | | | | The replacement isn't available yet, so we need to leave this in for now. BUG: 7332831 Change-Id: I311c44c45ef71461572afbe4060d134cdaefd3ae
* Merge "Fix bug #7326778 Rename LayoutParams.onResolveLayoutDirection(int)" ↵Fabrice Di Meglio2012-10-102-2/+2
|\ | | | | | | into jb-mr1-dev
| * Fix bug #7326778 Rename LayoutParams.onResolveLayoutDirection(int)Fabrice Di Meglio2012-10-102-2/+2
| | | | | | | | | | | | | | - rename to LayoutParams.resolveLayoutDirection(int) - upate 17.txt too Change-Id: I54fe28dc47cfdb65ef0b5b0244dabbe1d675c781
* | Move lockscreen to using haptic feedback setting.Jeff Sharkey2012-10-102-2/+2
|/ | | | | | | | This removes lockscreen-specific "Vibrate on touch" setting, and changes it to use the haptic feedback setting instead. Bug: 7318772 Change-Id: I637c392a1aaa22403cb20da4723f90c3b2e3de19
* Fix issue #7311376: Add API to allow apps to know if they are...Dianne Hackborn2012-10-092-0/+4
| | | | | | | | | | | | | | | ...running as the foreground user Add UserManager.isUserRunning() which is the public version of the existing method on ActivityManager. Also add UserManager.isUserRunningOrStopping() since that seems like it will be useful. And fix the internal function that returns the array of currently running users to not include stopped users. Change-Id: I84672fa8748fc027fd402729586b5603f640e498
* Merge "Adds showWhenLocked attribute to Activities." into jb-mr1-devCraig Mautner2012-10-072-0/+2
|\
| * Adds showWhenLocked attribute to Activities.Craig Mautner2012-10-062-0/+2
| | | | | | | | | | | | | | | | The new attribute allows an Activity such as the alarm to appear on all users screens. Bug: 7213805 fixed. Change-Id: If7866b13d88c04af07debc69e0e875d0adc6050a
* | Fix issue #7296314, issue #7296314.Dianne Hackborn2012-10-052-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7296314 Crashing dreams are stuck 7296510 Transition from lock screen to dreaming is really bad The window layer for dreams is now moved down below the keyguard, so that some of the expected stuff like crash and ANR dialogs can be seen on top of them. While doing this, I reorganized how we define the layers so the constants are just in the switch statement, so it is much less crazy-making trying to read how things go together. We now have some special cases for when a dream is being shown to turn off its animation if the keyguard is currently shown. Since we know it will be hiding the keyguard we need it to be shown immediately so that you don't see whatever is behind it. Cleaned up some handling of when the lock screen is displayed while a FLAG_SHOW_WHEN_LOCKED window is displayed, so that the lockscreen doesn't transiently get shown and mess up the fullscreen or system UI state. This also fixes problems with any normal activity that is doing this. Hid the methods on DreamService for setting lights out mode. It doesn't make sense to have such methods on DreamService, because you can just as well do that on your own View that is showing the dream content, and when you can do that you can fully participate in the (required) interactions about it such as being told when the mode goes away. The DreamService method for going fullscreen now uses the window flag for doing this, which is what you want, because you want this state to persistent on that window and not get knocked out if something above the window tickles the system UI state. Also fixed the problem where dreams that hid the status bar would have a jerky animation when going away, since they were causing the activity behind them to be layed out without the lock screen. This is a kind-of ugly special case in the window manager right now to just not layout windows that are behind a dream. Good enough for MR1. Change-Id: Ied2ab86ae068b1db0ff5973882f6d17b515edbcd
* | Merge "DreamService API revisions." into jb-mr1-devDaniel Sandler2012-10-042-4/+6
|\ \
| * | DreamService API revisions.Daniel Sandler2012-10-042-4/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce reliance on Service interface overrides, instead steering clients to the DreamService-specific lifecycle hooks: onAttachedToWindow .. onDreamingStarted .. onDreamingStopped .. onDetachedFromWindow The old Dream.java is finally gone now too. Bug: 7281802 Change-Id: Ib7802c3397fde60ad1132fa49831da182eef4d7a
* | Fix issue #7290206: Need API to get/look up user serial numberDianne Hackborn2012-10-042-0/+4
|/ | | | Change-Id: I1713215e7c205b1b66c36488f89e3fbf4572cb97
* Merge "Fix issue #7273573: Need API to find out if activity is destroyed" ↵Dianne Hackborn2012-10-022-0/+9
|\ | | | | | | into jb-mr1-dev
| * Fix issue #7273573: Need API to find out if activity is destroyedDianne Hackborn2012-10-022-0/+9
| | | | | | | | | | | | Also update 17.txt with all of the recent API additions. Change-Id: I21fc669267935261a741c19e22b0bf35c3a76b81
* | Add new Display API for secure video capabilities.Jeff Brown2012-10-022-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Added a new API to determine whether the display supports protected buffers so that an application can choose a different content stream or change how it decodes the content so that it will be viewable on the display. At present, wifi display does not fully support protected buffers although this may be enhanced in the future. Bug: 6986623 Change-Id: If53a53d72b0ec92753cc4b29f99fcb131e00449b
* | Migrate more System and Secure settings to Global.Jeff Sharkey2012-10-022-16/+30
| | | | | | | | | | | | | | | | Includes telephony, WindowManager, PackageManager, and debugging settings. Update API to point towards moved values. Bug: 7231764, 7231252, 7231156 Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79
* | Merge "Introduce ACTION_QUICK_CLOCK for the QS time tile." into jb-mr1-devDaniel Sandler2012-10-022-0/+2
|\ \ | |/ |/|
| * Introduce ACTION_QUICK_CLOCK for the QS time tile.Daniel Sandler2012-10-012-0/+2
| | | | | | | | | | | | | | | | | | By default it will still go to Date/Time Settings (see change Ib430f0c5) but 3Ps can hook it for other useful things. Bug: 7264806 Change-Id: Ic561dbeb5cc0738372c079b3eb52749c44b3cf0d
* | Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play ↵Fabrice Di Meglio2012-09-301-0/+5
|/ | | | | | | | | settings - add CheckedTextViewStyle with "viewStart" as default text alignment - fix some typos Change-Id: Ia8161c48faf579c89ba5ed49a436e4269178b8c1
* Fix buildAdam Cohen2012-09-301-2/+1
| | | | Change-Id: I7642494039edec85f8c690a7854b86f318589ff0
* Merge "Update APIs to JB MR1 level 17." into jb-mr1-devDianne Hackborn2012-09-302-132/+1036
|\
| * Update APIs to JB MR1 level 17.Dianne Hackborn2012-09-302-133/+1036
| | | | | | | | | | | | 17 is current, resources are fixed, cleanup is done. Change-Id: I6de446e209f59c5dd5fe1cde311776ab222817ea