summaryrefslogtreecommitdiffstats
path: root/api
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "add wireless charger support" into jb-mr1-devBrian Muramatsu2012-08-201-0/+1
|\ \ \
| * | | add wireless charger supportBrian Muramatsu2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 6879638 - add new enum value BATTERY_PLUGGED_WIRELESS - check for sys online file with contents "Wireless" Change-Id: I22dc3c40f50573c98643e7b5cbcb237d0216530d
* | | | Merge "Revert "Revert "Add timestamp in scan results""" into jb-mr1-devIliyan Malchev2012-08-201-0/+1
|\ \ \ \
| * | | | Revert "Revert "Add timestamp in scan results""Iliyan Malchev2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With b/6979211 fixed, we can reinstate timestamps. This reverts commit 578531082b8e8c8aa03868e69591b7613b0e8b8e Change-Id: I5dffc8d9701004f7c6325f21e1e33d1cdd2d05c0
* | | | | Merge "Pass URLs to package verifiers" into jb-mr1-devrich cannings2012-08-201-1/+1
|\ \ \ \ \
| * | | | | Pass URLs to package verifiersrich cannings2012-08-201-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
* | | | | Merge "Add getDefaultUserAgent to WebSettings." into jb-mr1-devGeorge Mount2012-08-201-0/+1
|\ \ \ \ \
| * | | | | Add getDefaultUserAgent to WebSettings.George Mount2012-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 6329117 Add ability to get the default user-agent without creating a WebView. The method is implemented for WebSettingsClassic. Change-Id: Id15fb57f65875752ccf644481a22b88644635f5d
* | | | | | DO NOT MERGE LocaleSpan makes Han disambiguation easy!Victoria Lease2012-08-201-0/+13
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick of I7f1b0d49a2ece957a7b9b5d65d48385bf2c2a668 from master. I've also provided TextView.setTextLocale() for use in single-language TextViews. Change-Id: I5692859bfd2aafc284172454d943afc250b22535
* | | | | Refactor for multi-display support.Jeff Brown2012-08-191-0/+10
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split WindowManagerImpl into two parts, the WindowManager interface implementation remains where it is but the global communications with the window manager are now handled by the WindowManagerGlobal class. This change greatly simplifies the challenge of having separate WindowManager instances for each Context. Removed WindowManagerImpl.getDefault(). This represents the bulk of this change. Most of the usages of this method were either to perform global functions (now handled by WindowManagerGlobal) or to obtain the default display (now handled by DisplayManager). Explicitly associate each new window with a display and make the Display object available to the View hierarchy. Add stubs for some new display manager API features. Start to split apart the concepts of display id and layer stack. since they operate at different layers of abstraction. While it's true that each logical display uniquely corresponds to a surface flinger layer stack, it is not necessarily the case that they must use the same ids. Added Display.getLayerStack() and started using it in places where it was relatively easy to do. Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
* | | | More view hierarchy, fragment debugging.Dianne Hackborn2012-08-172-4/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a View.toString() method. Rename all of the View private flags to have a PFLAG prefix to avoid going insane trying to figure out which constant goes with which flag. Activity.dump() now includes a summary of the activity's view hierarchy, using the View.toString() method. All exceptions thrown by FragmentManager now perform a dump of the owning activity state, where appropriate. Change-Id: I6482e397e10cb5a0612ab02ce6ed5131823437a6
* | | Switch public APIs to use new UserHandle class for identifying users.Dianne Hackborn2012-08-171-9/+18
| | | | | | | | | | | | | | | | | | Gets rid of "yet another integer" confusion. Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
* | | UserHandle to UserSerialNo mappingAmith Yamasani2012-08-171-0/+1
| |/ |/| | | | | | | | | | | | | | | Use AtomicFile for usermanager files. Added a MANAGE_USERS permission that apps (signature permission) can use to create/query/modify/remove users. Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
* | Merge "Add javadoc for new location API's." into jb-mr1-devNick Pelly2012-08-161-3/+3
|\ \
| * | Add javadoc for new location API's.Nick Pelly2012-08-161-3/+3
| | | | | | | | | | | | Change-Id: If15024ee88421c07ba3a174747774fc451fd002e
* | | Add FloatMath.hypot.Jeff Brown2012-08-161-0/+1
| | | | | | | | | | | | Change-Id: I6a5a7ea2254300614dbbf540f40e39dbec2d2900
* | | Merge "Power manager rewrite." into jb-mr1-devJeff Brown2012-08-151-1/+2
|\ \ \
| * | | Power manager rewrite.Jeff Brown2012-08-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major goal of this rewrite is to make it easier to implement power management policies correctly. According, the new implementation primarily uses state-based rather than event-based triggers for applying changes to the current power state. For example, when an application requests that the proximity sensor be used to manage the screen state (by way of a wake lock), the power manager makes note of the fact that the set of wake locks changed. Then it executes a common update function that recalculates the entire state, first looking at wake locks, then considering user activity, and eventually determining whether the screen should be turned on or off. At this point it may make a request to a component called the DisplayPowerController to asynchronously update the display's powe state. Likewise, DisplayPowerController makes note of the updated power request and schedules its own update function to figure out what needs to be changed. The big benefit of this approach is that it's easy to mutate multiple properties of the power state simultaneously then apply their joint effects together all at once. Transitions between states are detected and resolved by the update in a consistent manner. The new power manager service has is implemented as a set of loosely coupled components. For the most part, information only flows one way through these components (by issuing a request to that component) although some components support sending a message back to indicate when the work has been completed. For example, the DisplayPowerController posts a callback runnable asynchronously to tell the PowerManagerService when the display is ready. An important feature of this approach is that each component neatly encapsulates its state and maintains its own invariants. Moreover, we do not need to worry about deadlocks or awkward mutual exclusion semantics because most of the requests are asynchronous. The benefits of this design are especially apparent in the implementation of the screen on / off and brightness control animations which are able to take advantage of framework features like properties, ObjectAnimator and Choreographer. The screen on / off animation is now the responsibility of the power manager (instead of surface flinger). This change makes it much easier to ensure that the animation is properly coordinated with other power state changes and eliminates the cause of race conditions in the older implementation. The because of the userActivity() function has been changed so that it never wakes the device from sleep. This change removes ambiguity around forcing or disabling user activity for various purposes. To wake the device, use wakeUp(). To put it to sleep, use goToSleep(). Simple. The power manager service interface and API has been significantly simplified and consolidated. Also fixed some inconsistencies related to how the minimum and maximum screen brightness setting was presented in brightness control widgets and enforced behind the scenes. At present the following features are implemented: - Wake locks. - User activity. - Wake up / go to sleep. - Power state broadcasts. - Battery stats and event log notifications. - Dreams. - Proximity screen off. - Animated screen on / off transitions. - Auto-dimming. - Auto-brightness control for the screen backlight with different timeouts for ramping up versus ramping down. - Auto-on when plugged or unplugged. - Stay on when plugged. - Device administration maximum user activity timeout. - Application controlled brightness via window manager. The following features are not yet implemented: - Reduced user activity timeout for the key guard. - Reduced user activity timeout for the phone application. - Coordinating screen on barriers with the window manager. - Preventing auto-rotation during power state changes. - Auto-brightness adjustment setting (feature was disabled in previous version of the power manager service pending an improved UI design so leaving it out for now). - Interpolated brightness control (a proposed new scheme for more compactly specifying auto-brightness levels in config.xml). - Button / keyboard backlight control. - Change window manager to associated WorkSource with KEEP_SCREEN_ON_FLAG wake lock instead of talking directly to the battery stats service. - Optionally support animating screen brightness when turning on/off instead of playing electron beam animation (config_animateScreenLights). Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
* | | | Merge "Add PendingIntent and IntentSender APIs to get user handle." into ↵Dianne Hackborn2012-08-141-0/+4
|\ \ \ \ | |/ / / |/| | | | | | | jb-mr1-dev
| * | | Add PendingIntent and IntentSender APIs to get user handle.Dianne Hackborn2012-08-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Also uid. Change-Id: I0a328d0cc2bbc17dc0a49b7b8b8d515af80f1e15
* | | | Merge "Add API to create new contexts with custom configurations." into ↵Dianne Hackborn2012-08-141-0/+4
|\ \ \ \ | |_|_|/ |/| | | | | | | jb-mr1-dev
| * | | Add API to create new contexts with custom configurations.Dianne Hackborn2012-08-141-0/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to, say, make a Context whose configuration is set to a different density than the actual density of the device. The main API is Context.createConfigurationContext(). There is also a new API on ContextThemeWrapper that allows you to apply an override context before its resources are retrieved, which addresses some feature requests from developers to be able to customize the context their app is running in. Change-Id: I88364986660088521e24b567e2fda22fb7042819
* | | Revert "Add timestamp in scan results"Iliyan Malchev2012-08-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Temporarily reverting this until all devices switch to using wpa_supplicant_8. This reverts commit b31f78f93768fef269617ec788a5c6655a375f80. Change-Id: I33fcb8415288d95289dcd46fa71e950e0f2b87ec Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | Merge "Adding limit and offset query parameters to CallLog." into jb-mr1-devChiao Cheng2012-08-141-0/+2
|\ \ \
| * | | Adding limit and offset query parameters to CallLog.Chiao Cheng2012-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Allows clients to paginate through call logs. Change-Id: Icdd796f990ccf25f5f5e2183412e5391f4572add
* | | | Merge "Add a toString() method to Sensor for debugging purposes." into ↵Jeff Brown2012-08-132-2/+2
|\ \ \ \ | |_|/ / |/| | | | | | | jb-mr1-dev
| * | | Add a toString() method to Sensor for debugging purposes.Jeff Brown2012-08-102-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | Also made the class final, since it cannot be instantiated by applications. Change-Id: I540ad56d19debd99426d37b9b63c163827b4c2fc
* | | Merge "Add timestamp in scan results" into jb-mr1-devIrfan Sheriff2012-08-131-0/+1
|\ \ \
| * | | Add timestamp in scan resultsIrfan Sheriff2012-08-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Propogate 802.11 tsf details per scan result to the applications and open up hidden access points BUg: 2961159 Change-Id: I05658fd0cf010c0b36193db3f79422640e8b3a6b
* | | | User Manager service to manage users and query user detailsAmith Yamasani2012-08-111-0/+6
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
* | | Remove LocationManager#getLastKnownLocation(Criteria).Nick Pelly2012-08-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was never a public API, so we don't need to follow an orderly deprecation. And it breaks a CTS test: cts/tests/tests/location/src/android/location/cts/LocationManagerTest.java:521: reference to getLastKnownLocation is ambiguous, both method getLastKnownLocation(java.lang.String) in android.location.LocationManager and method getLastKnownLocation(android.location.Criteria) in android.location.LocationManager match mManager.getLastKnownLocation(null); ^ Change-Id: I503267e4fa577ce4bf684239da777f11b0e511f5
* | | Location overhaul, major commit.Nick Pelly2012-08-101-45/+83
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes: Fused Location, Geofencing, LocationRequest. API changes o Fused location is always returned when asking for location by Criteria. o Fused location is never returned as a LocationProvider object, nor returned as a provider String. This wouldn't make sense because the current API design assumes that LocationProvider's have fixed properties (accuracy, power etc). o The fused location engine will tune itself based on the criteria passed by applications. o Deprecate LocationProvider. Apps should use fused location (via Criteria class), instead of enumerating through LocationProvider objects. It is also over-engineered: designed for a world with a plethora of location providers that never materialized. o The Criteria class is also over-engineered, with many methods that aren't currently used, but for now we won't deprecate them since they may have value in the future. It is now used to tune the fused location engine. o Deprecate getBestProvider() and getProvider(). o Add getLastKnownLocation(Criteria), so we can return last known fused locations. o Apps with only ACCESS_COARSE_LOCATION _can_ now use the GPS, but the location they receive will be fudged to a 1km radius. They can also use NETWORK and fused locatoins, which are fudged in the same way if necessary. o Totally deprecate Criteria, in favor of LocationRequest. Criteria was designed to map QOS to a location provider. What we really need is to map QOS to _locations_. The death knell was the conflicting ACCURACY_ constants on Criteria, with values 1, 2, 3, 1, 2. Yes not a typo. o Totally deprecate LocationProvider. o Deprecate test/mock provider support. They require a named provider, which is a concept we are moving away from. We do not yet have a replacement, but I think its ok to deprecate since you also need to have 'allow mock locations' checked in developer settings. They will continue to work. o Deprecate event codes associated with provider status. The fused provider is _always_ available. o Introduce Geofence data object to provide an easier path fowards for polygons etc. Implementation changes o Fused implementation: incoming (GPS and NLP) location fixes are given a weight, that exponentially decays with respect to age and accuracy. The half-life of age is ~60 seconds, and the half-life of accuracy is ~20 meters. The fixes are weighted and combined to output a fused location. o Move Fused Location impl into frameworks/base/packages/FusedLocation o Refactor Fused Location behind the IProvider AIDL interface. This allow us to distribute newer versions of Fused Location in a new APK, at run-time. o Introduce ServiceWatcher.java, to refactor code used for run-time upgrades of Fused Location, and the NLP. o Fused Location is by default run in the system server (but can be moved to any process or pacakge, even at run-time). o Plumb the Criteria requirements through to the Fused Location provider via ILocation.sendExtraCommand(). I re-used this interface to avoid modifying the ILocation interface, which would have broken run-time upgradability of the NLP. o Switch the geofence manager to using fused location. o Clean up 'adb shell dumpsys location' output. o Introduce config_locationProviderPackageNames and config_overlay_locationProviderPackageNames to configure the default and overlay package names for Geocoder, NLP and FLP. o Lots of misc cleanup. o Improve location fudging. Apply random vector then quantize. o Hide internal POJO's from clients of com.android.location.provider.jar (NLP and FLP). Introduce wrappers ProviderRequestUnbundled and ProviderPropertiesUnbundled. o Introduce ProviderProperties to collapse all the provider accuracy/ bearing/altitude/power plumbing (that is deprecated anyway). o DELETE lots of code: DummyLocationProvider, o Rename the (internal) LocationProvider to LocationProviderBase. o Plumb pid, uid and packageName throughout LocationManagerService#Receiver to support future features. TODO: The FLP and Geofencer have a lot of room to be more intelligent TODO: Documentation TODO: test test test Change-Id: Iacefd2f176ed40ce1e23b090a164792aa8819c55
* | Merge "Add FloatMath.exp." into jb-mr1-devJeff Brown2012-08-081-0/+1
|\ \
| * | Add FloatMath.exp.Jeff Brown2012-08-081-0/+1
| | | | | | | | | | | | Change-Id: I7f215e5fd4cb942ddee56eebaef04be565ac79f3
* | | Merge "Revert "Pass URLs to package verifiers"" into jb-mr1-devRich Cannings2012-08-081-1/+1
|\ \ \
| * | | Revert "Pass URLs to package verifiers"Rich Cannings2012-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09 Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
* | | | Merge "Add MEDIA_ERROR_SERVER_DIED error constant to MediaRecorder.java ↵James Dong2012-08-081-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | class" into jb-mr1-dev
| * | | | Add MEDIA_ERROR_SERVER_DIED error constant to MediaRecorder.java classJames Dong2012-08-071-0/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | o As a result, applications can listen for death notification from MediaRecorder onError callbacks Change-Id: I49896c4ae8130bd67b52deff6eb97a22b43d3f32
* | | | More mult-user API work.Dianne Hackborn2012-08-071-2/+12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - You can now use android:singleUser with receivers and providers. - New API to send ordered broadcasts as a user. - New Process.myUserHandle() API. For now I am trying out "user handle" as the name for the numbers representing users. Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
* | | Merge "Include network type that caused broadcast." into jb-mr1-devJeff Sharkey2012-08-061-0/+1
|\ \ \
| * | | Include network type that caused broadcast.Jeff Sharkey2012-08-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network type can be obtained through EXTRA_NETWORK_INFO, but offer it as first-class extra since the returned NetworkInfo is deprecated. Bug: 6936247 Change-Id: Ief59577afd2bd930f0f4c5650b413feef86bfbc3
* | | | Merge "Make LocalSocket Closeable." into jb-mr1-devJeff Sharkey2012-08-051-1/+1
|\ \ \ \
| * | | | Make LocalSocket Closeable.Jeff Sharkey2012-08-051-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | Enables usage of IoUtils.closeQuietly(). Change-Id: I91126297c1f235ae9da09f82d8f4f22db46558eb
* | | | We can now (kind-of) change screen density on the fly.Dianne Hackborn2012-08-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preloaded drawables now have a density associated with them, so we can load the correct drawable if we are using a different density. Window manager now formally keeps track of the density for each screen, allowing it to be overridden like you can already do with size, and relies on this density to drive itself internally and the configurations it reports. There are a new set of Bitmap constructors where you provide a DisplayMetrics so they can be constructed with the correct density. (This will be for when you can have different windows in the same app running at different densities.) ActivityThread now watches for density changes, and pushes them to the DENSITY_DEVICE and Bitmap global density values for that process. A new am command allows you to change the density.
* | | | Re-enable dreams: frameworks/baseJohn Spurlock2012-08-031-0/+44
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable feature in config. Expose Dream in public api for unbundled apps. Unhide package. Add isDreaming() method to service. Re-arrange the Dream api a bit. (use onStart as hook for subclasses). Coordinate properly with power manager. Replace old dock mode (don't fire old intent). Change-Id: I1318d20cc1613e5d862f2913f2fcdc9719302cf7 Bug: 6921930
* | | Merge "Add APIs for interacting across users." into jb-mr1-devDianne Hackborn2012-08-021-0/+4
|\ \ \
| * | | Add APIs for interacting across users.Dianne Hackborn2012-08-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Expose the existing Context.sendBroadcast() as Context.sendBroadcastAsUser(). - Add new android:singleUser attribute for services. - Add new INTERACT_ACROSS_USERS_FULL permission for full system-level access to cross-user interface (allows sendBroadcastAsUser() to send to any receiver). - Add new INTERACT_ACROSS_USERS_FULL permission for more restricted cross-user interaction: this is required for android:singleUser, and allows you to use sendBroadcastAsUser() but only to send to your own receivers. Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
* | | | Make AutoCompleteTextView#setText(CharSequence, boolean) publicAdam Powell2012-08-021-0/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 6807326 Public bug http://code.google.com/p/android/issues/detail?id=34690 Make this available for use by applications that wish to make programmatic changes to the AutoCompleteTextView without filtering. Change-Id: I889452d3b19b378258ad9247f3d254afee1e8408
* | | Pass URLs to package verifiersrich cannings2012-08-021-1/+1
|/ / | | | | | | | | | | | | | | This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: If9ff6663ad7f3426b7aea2aceb1413b689788138
* | Merge "Add API to turn on HW drawing in IMEs." into jb-mr1-devDianne Hackborn2012-08-011-0/+1
|\ \