summaryrefslogtreecommitdiffstats
path: root/services/java
Commit message (Collapse)AuthorAgeFilesLines
* Sensors: Use a native_handle for the data channel instead of a single file ↵Mike Lockwood2009-05-231-3/+3
| | | | | | | | | descriptor. This eliminates the requirement that all sensors share a single file descriptor. This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge change 2364 into donutAndroid (Google) Code Review2009-05-221-0/+28
|\ | | | | | | | | * changes: Initial checkin for App Fuel Gauge infrastructure.
| * Initial checkin for App Fuel Gauge infrastructure.Amith Yamasani2009-05-221-0/+28
| | | | | | | | | | This adds the PowerProfile class and data file that provides power consumption numbers for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.
* | Define TARGET_CPU_ABI for finding native code in .apksDianne Hackborn2009-05-221-20/+27
| |
* | location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-211-29/+8
|/ | | | | | | | | | | | This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-201-6/+15
|
* Merge change 2017 into donutAndroid (Google) Code Review2009-05-201-14/+14
|\ | | | | | | | | * changes: Increment BatteryStatsImpl's VERSION. That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
| * Increment BatteryStatsImpl's VERSION.Robert Greenwalt2009-05-191-14/+14
| | | | | | | | | | That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
* | ActivityManagerService sends bug reports on crashes and ANRsJacek Surazski2009-05-204-11/+184
| | | | | | | | | | | | | | If an installerPackageName was specified when the app was installed, looks for a receiver of ACTION_APP_ERROR in that package. If found, this is the bug report receiver and the crash/ANR dialog will get a "Report" button. If pressed, a bug report will be delivered.
* | Fix issue where apps could prevent the user from going home.Dianne Hackborn2009-05-193-28/+254
|/ | | | | | | | | | Now we have a 5-second time after home is pressed, during which only the home app (and the status bar) can switch to another app. After that time, any start activity requests that occurred will be executed, to allow things like alarms to be displayed. Also if during that time the user launches another app, the pending starts will be executed without resuming their activities and the one they started placed at the top and executed.
* Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATIONMike Lockwood2009-05-191-3/+7
| | | | | | | ACCESS_FINE_LOCATION should imply ACCESS_COARSE_LOCATION, so either of these permissions should be sufficient to allow TelephonyManager.getCellLocation(). Signed-off-by: Mike Lockwood <lockwood@android.com>
* Minor performance improvement when filtering intents by package.Mihai Preda2009-05-191-1/+6
| | | | Don't consider the activities that have no intent filters.
* Merge change 1579 into donutAndroid (Google) Code Review2009-05-183-184/+461
|\ | | | | | | | | * changes: Teleca 2b changes
| * Teleca 2b changesWink Saville2009-05-183-184/+461
| |
* | Merge change 1881 into donutAndroid (Google) Code Review2009-05-181-2/+14
|\ \ | | | | | | | | | | | | * changes: WifiService: Wifi power management change
| * | WifiService: Wifi power management changeMike Lockwood2009-05-181-2/+14
| |/ | | | | | | | | | | | | | | | | | | | | Put Wifi into an idle state immediately if the screen is turned off and the Wifi interface has no IP address. We will continue to keep Wifi up for 15 minutes in the case where the screen is turned off when Wifi is fully connected. This will allow us to go into a low power mode faster when Wifi is not actively being used. It also avoids bringing up Wifi if the user just turns on the screen for a few seconds to check the clock, etc. Fixes bug b/1736920 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Add a new window flag to display a window when keyguard is shown.Suchi Amalapurapu2009-05-181-3/+0
| |
* | remove unused ContentResolver parameter from IntentResolver.queryIntent.Mihai Preda2009-05-183-26/+14
|/
* Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn2009-05-151-1/+18
| | | | | | | | | | | Now old applications will automatically be granted it. Also renamed it from SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions, and re-arranged how we do targetSdkVersion to actually be usuable for this kind of stuff. Note that right now this results in basically all apps being given the WRITE_SDCARD permission, because their targetSdkVersion is not set. I will be dealing with that in a future change.
* Allow intent resolution to be constrained by package name.Mihai Preda2009-05-152-4/+62
|
* Accessibility feature - framework changes (replacing 698, 699, 700, 701 and ↵svetoslavganov2009-05-143-10/+709
| | | | merging with the latest Donut)
* Merge change 1590 into donutAndroid (Google) Code Review2009-05-142-18/+131
|\ | | | | | | | | * changes: Add wifi multicast filter api (enable/disable). Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
| * Add wifi multicast filter api (enable/disable).Robert Greenwalt2009-05-132-18/+131
| | | | | | | | | | Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
* | Merge changes 1591,1596 into donutAndroid (Google) Code Review2009-05-141-5/+3
|\ \ | | | | | | | | | | | | | | | * changes: Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn(). Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
| * | Fixes #1836075. Adds consistency checks for the View hierarchy. To enable ↵Romain Guy2009-05-131-5/+3
| | | | | | | | | | | | them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
* | | Get the backup calling through to the file backup helper.Joe Onorato2009-05-141-0/+3
| | | | | | | | | | | | | | | This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
* | | am 5d6d773: AI 148824: Fix issue #1851541 (sharedUserId requests not beiDianne Hackborn2009-05-131-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Merge commit '5d6d773fab559fdc12e553d60d789f3991ac552c' into donut * commit '5d6d773fab559fdc12e553d60d789f3991ac552c': AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
| * | AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for ↵Dianne Hackborn2009-05-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matching signatures on .apk). To address issues where we could leave half-installed applications around if there was a failure during the install, we split getPackageLP() into two phases: the first would create the record, and only after doing all verification checks would we call insertPackageSettingLP() to do the remaining part of the original implementation and actually insert the record into the data structures. Unfortunately it was only in insertPackageSettingLP() that we would set the sharedUser field of the PackageSetting structure, so when before that we went to verify certificates, we didn't think it had requested a shared user ID, and let it through without checking. This fix simply sets the sharedUser field when the PackageSetting structure is first created, so we will actually check against its certs. We still also set this again in insertPackageSettingLP(), but there is no harm in this because the only time we call this function is in that big install func, which just passes in the same shared user that it had when first getting the package. BUG=1851541 Automated import of CL 148824
| * | AI 144256: Need to show opt-in screen for location collection.Amith Yamasani2009-04-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a screen to the setup wizard, after login, to ask user to opt-in for location collection. Added a dialog to Settings when user turns on Network location. Fixed a security permission issue in LocationManagerService related to this change. BUG=1752566 Automated import of CL 144256
| * | AI 143896: Fix issue #1748954 and #1737952:Dianne Hackborn2009-03-311-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden. To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big... actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway. #1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix. This involved a few things to clean up hiding/showing the status bar: - We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window. This required tweaking the layout API so the policy can request a second layout pass if needed. - When doing layout, we are now much more aggressive about skipping the layout of windows. Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen. The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct. BUG=1748954,1737952 Automated import of CL 143896
| * | AI 143748: Fix issue #1743326 (More battery stats)Dianne Hackborn2009-03-315-33/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds stats for: - Number of raw user events that have happened in the system. - Number of times user activity has been reported, dividied by UID and type of activity. - Duration of screen brightness levels in 4 buckets. - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them. BUG=1743326 Automated import of CL 143748
| * | AI 143124: Fix bug #1731826, in which auto-connect to remembered networks ↵Eric Shienbrood2009-03-271-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | does not take place. This has the same underlying cause as bug #1739874, so this fixes that bug as well. The problem was that if the supplicant was in the DORMANT state at the time a scan-only Wi-Fi lock was released, the command to stop the Wi-Fi driver would never be issued. This had two main results: first, the driver would stay awake when the screen was blank and it was supposed to be sleeping, leading to excessive battery drain, and second, when the screen was turned back on, there would be no DRIVER-STARTED event generated (because the driver was already running). The DRIVER-STARTED event is the trigger for the framework to issue a RECONNECT command to the supplicant to cause it leave the DORMANT state and look for available remembered networks. To assist in tracking down this problem, and any such problems in the future, I added four counters to keep track of how many times full and scan-only Wi-Fi locks are acquired and released. The counter values are output in the dump() method of WifiService. While doing this, I noticed that because of missing "break" statements, the battery stats that keep track of how much time Wi-Fi locks are held were including the time for full locks in the time reported for scan-only locks. BUG=1731826,1739874 Automated import of CL 143124
| * | Automated import from //branches/cupcake/...@142879,142879Dianne Hackborn2009-03-261-3/+7
| | |
| * | Automated import from //branches/cupcake/...@142870,142870Dianne Hackborn2009-03-251-14/+10
| | |
| * | Automated import from //branches/cupcake/...@142783,142783Chris Tate2009-03-251-4/+11
| | |
| * | Automated import from //branches/cupcake/...@142651,142651Dianne Hackborn2009-03-252-20/+38
| | |
| * | Automated import from //branches/cupcake/...@142392,142392Dianne Hackborn2009-03-241-33/+49
| | |
| * | Automated import from //branches/cupcake/...@142342,142342Dianne Hackborn2009-03-243-5/+45
| | |
| * | Automated import from //branches/cupcake/...@142154,142154Jim Miller2009-03-241-2/+2
| | |
| * | Automated import from //branches/cupcake/...@141957,141957Suchi Amalapurapu2009-03-241-1/+1
| | |
| * | auto import from //branches/cupcake_rel/...@141571The Android Open Source Project2009-03-199-119/+281
| | |
* | | With this, the BackupService onBackup method is called.Joe Onorato2009-05-131-132/+150
| |/ |/| | | | | | | | | It took a bunch of refactoring inside BackupManagerService, which is unfortunately all temporary anyway, but it unblocks a bunch of stuff.
* | Implement issue #1783881 (manifest option for adb-install-only apps)Dianne Hackborn2009-05-121-6/+12
| | | | | | | | | | | | | | | | | | | | | | You can now use android:testOnly="true" to not allow your .apk to be installed as a normal app. The only way to do so is with the pm command and giving the -t option, which sets a new INSTALL_ALLOW_TEST flag when installing. I also used this to clean up the install API... actually, mostly to hide it, since it is not accessible to apps so shouldn't be in the SDK. We will be doing some more work on it, so this will prevent adding yet another backwards-compatibility-for-no-reason version.
* | PackageManager keeps track of who installed what.Jacek Surazski2009-05-121-16/+77
| | | | | | | | Stores the package name of the installer app in packages.xml
* | LocationManager: Recover if process containing NetworkLocation provider crashesMike Lockwood2009-05-121-2/+15
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Fix issue #1837610 and #1753079Dianne Hackborn2009-05-112-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | Issue 1837610 Adding a Widget before Running the Associated App Causes a Force Close We were not retrieving the shared libraries of an application when deliving a broadcast to an explicit component. Issue 1753079 loading class path of instrumented app into instrumentation may load wrong path when instrumented app shares process with other apps: We were using the ApplicationInfo that was used to originally create the process, not the one that the instrumentation is against.
* | Implement targetSdkVersion and maxSdkVersion, plus version code names.Dianne Hackborn2009-05-081-4/+6
| | | | | | | | | | | | | | | | This adds new attributes for specifying a targetSdkVersion and maxSdkVersion. There is a new ApplicationInfo flag that is set if the application has set its targetSdkVersion to the current platform or later. Also you can now use a string for minSdkVersion and targetSdkVerion, to indicate you are building against a development tree instead of an official platform.
* | Merge change 1278 into donutAndroid (Google) Code Review2009-05-081-51/+101
|\ \ | | | | | | | | | | | | * changes: Squashed commit of the following:
| * | Squashed commit of the following:Suchi Amalapurapu2009-05-081-51/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 85585eb0860e52a3dc3b8efe57ef8b30ee35c98d Author: Suchi Amalapurapu <asuchitra@google.com> Date: Thu May 7 11:59:24 2009 -0700 Remove new error code in PackageManager. Remove version check in installation code path. Let the install continue irrespective of version number. Check if data needs to be wiped(for downgrades only) in uninstallation code path. Also remove only code and resources when checking for updated system packages(via ota) Add version attribute when persisting package settings commit f90797348c5170e6263d249e4fc77f1c0328eb27 Author: Suchi Amalapurapu <asuchitra@google.com> Date: Thu May 7 10:54:07 2009 -0700 remove trailing white spaces hide new install code in PackageManager commit 397eb81265160f73caf9827d381ed6622041d54e Author: Suchi Amalapurapu <asuchitra@google.com> Date: Thu May 7 10:33:23 2009 -0700 Add version check in install and uninstall code paths. New error code for invalid upgrades in PackageManager
* | | Merge change 1275 into donutAndroid (Google) Code Review2009-05-081-2/+2
|\ \ \ | |/ / |/| | | | | | | | * changes: Make the internal storage monitor work correctly when internal storage is very large.