summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
Commit message (Collapse)AuthorAgeFilesLines
* fix cyanogenmod bug #2770 (cannot find symbol statusbar_background_sq)Paul Kocialkowski2011-04-232-41/+4
| | | | | | | | | | | | | | | | | | The cyanogenmod bug #2770 is available at : http://code.google.com/p/cyanogenmod/issues/detail?id=2770 The bug is a compilation failure which fails like that: target Dex: Development frameworks/base/services/java/com/android/server/status/StatusBarService.java:338: cannot find symbol symbol : variable statusbar_background_sq location: class com.android.internal.R.drawable mStatusBarView.setBackgroundDrawable(res.getDrawable(com.android.internal.R.drawable.statusbar_background_sq, [...] Note that only the commit message was touched by Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> The patch itself was untouched. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Acked-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* Fix NPE when checking TORCH_STATE on first boot.Steve Kondik2010-12-051-1/+2
| | | | Change-Id: I24fa8e62c9a2bbac693ff9825988e04384dd6d75
* Merge "allow the light sensor to be ignored when flashlight is on" into froyoSteve Kondik2010-12-051-2/+11
|\
| * allow the light sensor to be ignored when flashlight is onnadlabak2010-12-051-2/+11
| | | | | | | | | | | | | | on certain devices, the flashlight affects the light sensor, causing the display autobrightness to switch to the maximum level when flashlight is on Change-Id: I22d623ce5457fc3ae177b609da8b51904bc73e83
* | Restore notification bar flashlight toggle using correct brightnessMichael Webster2010-12-041-0/+4
| | | | | | | | | | | | setting. Change-Id: I5a35a4eb399d54613b782eac78ca1d1dad7cecf5
* | Cleanup notification bar flashlight widget to use Torch app,Michael Webster2010-12-032-96/+7
| | | | | | | | | | | | and add state storage for flashlight. Change-Id: I6d4ad46318a7593809e7ff63601f8bd70db64a0c
* | Add setting to hide notification pulldown after clicking a power widget buttonJames Nylen2010-12-031-1/+16
| | | | | | | | Change-Id: Ibbb2da79ef93502990d122d1f31664e578a44a79
* | Trackball/LED fixes:Michael Webster2010-12-032-8/+14
|/ | | | | | | | | | - Disable "blend mode" for sholes - Make LightsService use a different method for turning off LED/trackball- on some devices (ok, droid), the previous method was causing the LED to stay on continuously. - Fix bug that was causing the custom offTime for notifications to be ignored. Change-Id: I89123555dd813e1ff67f70ff2874761c229b9522
* Fix 2g/3g toggle on UMTS networksnadlabak2010-11-241-0/+2
| | | | | | 2nd try: already merged (I255359ba) but subsequently erased by Ib6a7e284 Change-Id: I21376f4c423d2b567a288db03cfb09c95d452eba
* Avoiding cyclic references when unbinding from a serviceMattias Petersson2010-11-211-0/+1
| | | | | | | | | | | | | Cyclic references can occur between a Service object held by an application and a ServiceRecord object held by the system server. A part of the problem is that binders are leaked and since many binders are implemented by inner classes of services these services are also leaked. This causes low memory problems. The solution is: When a Service is beeing destroyed, go through the ServiceRecord's all IntentBindRecord and set its binder references to null. This allows the binder and the service object to be garbage collected. Change-Id: I5a257521964851f34c08ffb3908feaad96b1bafe
* Clear reference to the IIntentReceiver in order to avoid memory leakJohannes Carlsson2010-11-212-3/+8
| | | | | | | | | | | | | | When using sendOrderedBroadcast(..) with a BroadcastReceiver the BroadcastReceiver instance was not released. The reason for this was that the resultTo field in the BroadcastRecord kept a reference until it was pushed out of the mBroadcastHistory. This reference in turn kept a reference to the process side IIntentReceiver (implemented in ReceiverDispatcher$InnerReceiver). This in turn had a strong reference (through mStrongRef) to the Context. In order to keep the debug output the resultTo is also kept as a String in the new resultToString variable. Change-Id: I4382a22a541c27b3694fb2b78a04ee820b235f8f
* Light behind keyboard does not get turned off in sleep modeKent Persson2010-11-211-0/+4
| | | | | | | | | | | | Key LED does not turn off when entering into sleep mode at the brightness allignment mode in setting. 1 Open the brightness allignment mode in setting 2 Enter sleep mode Make sure that the keyboard light is turned off. Change-Id: Ib0436954164bcd9f6cb8d4453304e645e6ff70f0
* White energy widget icons for black statusbar (STOCK_Black)Manuel Auer2010-11-2015-49/+334
| | | | Change-Id: Ib6a7e284648212bcb90a6f54dea834b83cda26c0
* frameworks: WindowManagerService: Fix out of memory for surface errorKan-Ru Chen2010-11-191-27/+28
| | | | | | | | | | | | | Surface.openTransaction and Surface.closeTransaction is not reentrant. If we are updating the mouse surface when the WindowManager is also updating the surfaces, the global transaction can be closed too early by the other side. The results are random runtime exceptions and unstable surface state. Move the mouse surface update logic to the big surfaces update loop, together with the other surfaces update logic. Change-Id: I38a4f264f8de59899c3ac0fdaf9d8cd520d41947
* mouse: fix cursor movements after rotationsChih-Wei Huang2010-11-192-7/+22
| | | | Change-Id: I3659587e4005f3fa0401981a2329744840f9ff10
* Revert "Fix HID support on orientation change."Steve Kondik2010-11-191-65/+47
| | | | This reverts commit 1acb2fbadc3da3c3fdb4f57425449780c1a8e20b.
* Fix 2g/3g toggle on UMTS networksnadlabak2010-11-191-0/+2
| | | | | | (the same fix has been already applied to Settings app power widget) Change-Id: I255359ba4a6ba3d384140c4c9bd5f73e780b9037
* Fix sometimes mExpandedView will appear while screen transforming.Tony Wu2010-11-191-0/+5
| | | | | | | While watching YouTube and receiving a call, after hang up the call, mExpandedView may flash when screen transform from Phone to YouTube. Change-Id: Ib25a0cd1086c278b91a2b34e21744a3c432a8f35
* Unsolicited informational event should not be put in the response queue. It ↵nadlabak2010-11-181-5/+6
| | | | | | can break e.g. the reading of the asec list returned from vold - package manager then assumes no secure containers on sdcard, which can result in system_server being killed by vold during sdcard unmount, in case it keeps a recently run pkg.apk file in an asec opened. Change-Id: I068d8ef8cd244fde03f08b1f6b3f920eb9135aaf
* Without SD card the shutdown sequence was delayedJohan Alfven2010-11-181-0/+11
| | | | | | | | | | | | If the memory card is not inserted (or removed) from the phone the shut down process is very long. It takes almost 24 seconds. For the phone with memory card the averige is 5-6 seconds Make sure to send onShutDownComplete even if an SD card is not mounted and no unmount is done. Change-Id: I0e79b82e294a971f5e7144cdd3cc16b7ff414b9c
* Change to allow separate drawable for notification counts withoutMichael Webster2010-11-171-0/+2
| | | | | | disturbing layout of battery percent display (HDPI). Change-Id: Ibaaec05ad2159cdc1e27c3d24006e7036e06f85c
* Fix Expanded View showing when you disable it, and reboot.Pedlar2010-11-151-1/+9
| | | | Change-Id: Id243bdc0065da4c88926f78cf99daeb66260c938
* Revert "Make the ADB connected notification non-persistent."Steve Kondik2010-11-141-0/+1
| | | | | | | | | | Causes problems on phones like Vision. We have a setting to disable the notification altogether, so this is pointless and causes the trackpad light to flash all the time. This reverts commit 39a636a021aa9a6d393c93f6235e426d43392047. Change-Id: I4badd0d2c9289db18084f6c6a9bb4621ecbb8b1d
* MountService: Remount all volumes after USB disconnectJosh Stone2010-11-071-5/+8
| | | | | | | | | | If USB was removed while UMS was enabled, the MountService was only remounting the primary share. Any other shares, like the HTC Inc's emmc, were left in limbo. This patch now iterates over *all* shared volumes to remount after disconnect. Change-Id: Icf6c3d5396ea762aeb223869c380c5c3757d5652 Signed-off-by: Josh Stone <cuviper@gmail.com>
* Don't instantiate unused power buttons in StatusBarService.David Girault2010-11-041-149/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New power buttons in the StatusBar is a great thing. But, on my HTC Hero, I got a lot of the following error in logcat: E/FlashlightButton( 133): getFlashlightEnabled failed E/FlashlightButton( 133): java.io.FileNotFoundException: /sys/class/leds/flashlight/brightness (No such file or directory) E/FlashlightButton( 133): at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method) E/FlashlightButton( 133): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152) E/FlashlightButton( 133): at java.io.FileInputStream.<init>(FileInputStream.java:82) E/FlashlightButton( 133): at java.io.FileInputStream.<init>(FileInputStream.java:134) E/FlashlightButton( 133): at com.android.server.status.widget.FlashlightButton.getFlashlightEnabled(FlashlightButton.java:73) E/FlashlightButton( 133): at com.android.server.status.widget.FlashlightButton.updateState(FlashlightButton.java:47) E/FlashlightButton( 133): at com.android.server.status.StatusBarService.updateStates(StatusBarService.java:2043) E/FlashlightButton( 133): at com.android.server.status.StatusBarService.updateWidget(StatusBarService.java:2065) E/FlashlightButton( 133): at com.android.server.status.StatusBarService.access$800(StatusBarService.java:120) E/FlashlightButton( 133): at com.android.server.status.StatusBarService$7.onReceive(StatusBarService.java:2094) E/FlashlightButton( 133): at android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:892) E/FlashlightButton( 133): at android.os.Handler.handleCallback(Handler.java:587) E/FlashlightButton( 133): at android.os.Handler.dispatchMessage(Handler.java:92) E/FlashlightButton( 133): at android.os.Looper.loop(Looper.java:123) E/FlashlightButton( 133): at com.android.server.ServerThread.run(SystemServer.java:524) This is beacause, all power buttons are instantiate, even if unused or functionnality is missing. So, I remove most calls to getInstance() for all of them and use a HashMap to store the buttons used and only call them in updateStates() and updateWidget(). Additionnaly, my change reduce memory usage of the status bar. Fixed tabs, some indents and long lines. Change-Id: I22b98bddc791c547d02b50a09b561aa469cc25b7
* Removed Catch error, as it is uneccesary, and causes log spam on devices ↵Pedlar2010-10-231-1/+0
| | | | with no flash
* Add framework support for keyboard LEDs (Caps/FN)rmcc2010-10-231-0/+24
| | | | Change-Id: I7a6989b53f15e86ced59e5fd31464a2334bbfd68
* Fix HID support on orientation change.cyanogen2010-10-211-47/+65
| | | | | | HID mouse support was not checking the device orientation and previously only worked in portrait mode. Check the device orientation and calculate the pointer position correctly.
* Merge "Added Flashlight button for devices with an LED. And a Sleep button" ↵Steve Kondik2010-10-214-2/+192
|\ | | | | | | into froyo
| * Added Flashlight button for devices with an LED. And a Sleep buttonPedlar2010-10-204-2/+192
| |
* | Update icons immediately on setting changesScott Anderson2010-10-181-6/+47
| | | | | | | | Change-Id: Ib94135d8bcf8339d386e11f785b4cb077c5cb5c9
* | Fix OOBEScott Anderson2010-10-181-7/+7
|/ | | | Change-Id: I44bbf86b3dbe1655acd50c872b9d01d7d941cd96
* Merge "Only modify the view of the bar, if we want to." into froyoSteve Kondik2010-10-181-11/+11
|\
| * Only modify the view of the bar, if we want to.Pedlar2010-10-181-11/+11
| | | | | | | | | | Check to make sure the Uri we are modding is the one we want to. This is to prevent the bar from be disabled for some paradoxial reason.
* | Merge "Make it so the widget shows as on by default." into froyoSteve Kondik2010-10-181-5/+1
|\ \ | |/
| * Make it so the widget shows as on by default.Pedlar2010-10-171-5/+1
| |
* | Merge "Add RingerSwitch support" into froyoSteve Kondik2010-10-182-0/+153
|\ \
| * | Add RingerSwitch supportRicardo Cerqueira2010-10-172-0/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the Geeksphone ONE's MUTE hard key. I don't know of any other device with such a key, so this will defaults to disabled. It's enabled by setting the "ro.config.ringerswitch" property to 1 Change-Id: Ica18f3f3ee872b4b911ddd79b95ba569cb13f4e8
* | | Fix dBm signal icon. Was showing bars when enabled, and not showing them ↵Pedlar2010-10-171-2/+2
| |/ |/| | | | | | | | | when disabled. I forgot the !.
* | Fix time zone info in kernel is nothing after rebootRobert CH Chou2010-10-171-0/+8
| | | | | | | | | | | | | | | | | | If sys_tz is not set correctly, the timestamp of filesystem will be in-consistent with android's time, until time zone is set from android's UI. Set kernel timezone while initializing AlarmManagerService. Change-Id: Ic85def954fc9388e943e3dee45767d8179825a49
* | Corrected visibility reporting error in WindowManagerUlf Rosdahl2010-10-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Correction for the error: When a window is done animating and about to be destroyed, it is still checked for visibility in the method updateReportedVisibilityLocked in the WindowManager. In the case where other windows are ready to be reported as visible, this, not yet destroyed window which has the state not visible, will prevent the visibility report message from being sent. Change-Id: I9e307a678a204f0883ccd78c2645c373d3f81066
* | Revert "Fix reporting of window visibility in WindowManagerService."Steve Kondik2010-10-171-1/+1
| | | | | | | | This reverts commit 912b6d61dfc74fabcdaf6c4dcb0e6246d26af795.
* | Revert "Shutdown when capacity is 0% and no charging or when battery is dead"Steve Kondik2010-10-171-16/+4
| | | | | | | | This reverts commit 5207106cd602dcd7c1a09ea7931afdb1c529c41d.
* | Wait for IDLE state before mounting on insertAxel Haslam2010-10-171-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As soon as we recive the insert event we try to mount the mmc sending a "volume mount" command. But, the volume manager sometimes is still on "pending" state, and the insertion mount will fail. This patch calls the doMount command on insert only after the state has changed to idle. This way, the mount will not fail, because the state is pending. Change-Id: I1f8f13c8e232a6b9159eeb78a9484838f1c600af Signed-off-by: Axel Haslam <axelhaslam@ti.com>
* | Support AP which only has a "space" character in its SSIDMurron Li2010-10-171-1/+1
| | | | | | | | | | | | | | | | Now we can connect to an AP which only has a space character in its SSID. Names with space at the beginning and/or will also work. The earlier troublesome "-=^-^=-" still works. Change-Id: Ie1de3bd162fbd992ccad5e1b5bca9c163e49e36d
* | Check if we are in daylight time when calculating timezoneLavettacn Xiao2010-10-171-3/+5
| | | | | | | | | | | | | | | | | | The code that calculates the Kernel TimeZone does not check if we are actually in daylite time prior updating the kernel time zone. Add a call to TimeZone.inDaylightTime to get correct time zone. Change-Id: I44565bc8df48e81370ea3bfbb099a6a5675e343d
* | Handle stopping of services with still bound applications.Per Edelberg2010-10-171-2/+4
| | | | | | | | | | | | | | | | | | | | When a service is stopping we get unbindFinished when all connections are unbinded. If applications are still bound to this Service we will rebind the connection making the service hang in stopping state. This fixed issues with ANR during CTS test android.os.cts.BinderTest#testTransact Change-Id: I9402aebd0d2d0fa3e0e6381fb51d3189d530f31b
* | frameworks/base: Handle null from topRunningNonDelayedActivityLockedVairavan Srinivasan2010-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | startActivityUncheckedLocked tries to move the target task to front when it is not at front. topRunningNonDelayedActivityLocked is used to find the current task, however null value isn't handled. This null causes an unhandled exception leading to the android framework reboot. Change-Id: I2a43cda50483e28a4456846d8b3ccb30d7cf110e
* | InputMethodService: Fix ignore case in showInputMethodPickerFromClientVairavan Srinivasan2010-10-171-0/+1
| | | | | | | | | | | | | | | | Fix to avoid posting MSG_SHOW_IM_PICKER in showInputMethodPickerFromClient when ignoring the request from the client. Change-Id: Iff8a0809aea892b4493d5cffbb91adba2d74414e
* | Shutdown when capacity is 0% and no charging or when battery is deadImre Sunyi2010-10-171-4/+16
| | | | | | | | | | | | | | | | | | | | | | Android framework does not shutdown when battery capacity is 0% and a charger is attached (USB or AC). This handling is incomplete since a charger might very well be attached but charging has stopped because USB suspended or the charging algorithm has stopped because of battery safety handling. Also shutdown when battery is reported 'dead'. This might happen although charging is present. Change-Id: If328260ebf4d38f912e4d2fad204431cbb19c993