summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Make NetworkMonitor less aggressive on broken networks." into lmp-mr1-devLorenzo Colitti2015-01-271-13/+30
|\
| * Make NetworkMonitor less aggressive on broken networks.Lorenzo Colitti2015-01-261-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Retry validation 3 times instead of 10. Reducing the number of retries speeds up dead network detection and saves battery on networks that are don't have Internet access (or block our connectivity checks). Retrying 10 times is overkill. Each attempt sends 5-10 DNS requests, waits 10 seconds to transfer only 3 or 4 packets, and can last up to tens of seconds. Also, in MR1 we now retry every 10 minutes. 2. Make periodic revalidation only try once. When validating periodically to see if a non-working connection is working again, only make one attempt every 10 minutes, not three. 3. Rename "retries" to "attempts" to make things a bit clearer. Bug: 18922569 Bug: 18869302 Change-Id: I5f70b420c4f1bac0c33bb9ab6afb322902cdac4b
* | Merge "Stop logging service starts and stops." into lmp-mr1-devCraig Mautner2015-01-271-1/+1
|\ \
| * | Stop logging service starts and stops.Craig Mautner2015-01-261-1/+1
| | | | | | | | | | | | | | | | | | Completes work on bug 18201239. Change-Id: I80686351ac91e48bf113976a000b351b423d8dd2
* | | TIF: fix loud volume after input switch when volume is 0Wonsik Kim2015-01-271-1/+3
|/ / | | | | | | | | Bug: 19134440 Change-Id: I6291f299a27315e79b505ea36bf96c79437e6b53
* | Merge "Only try to fetch time from NTP if there is a network connection." ↵Lorenzo Colitti2015-01-261-14/+4
|\ \ | |/ | | | | into lmp-mr1-dev
| * Only try to fetch time from NTP if there is a network connection.Lorenzo Colitti2015-01-261-14/+4
| | | | | | | | | | Bug: 19046107 Change-Id: Iff647ee33fe0eb9b530d7baad636d32b386e4fa7
* | Merge "Add reason string for bringing stack to front" into lmp-mr1-devCraig Mautner2015-01-265-93/+85
|\ \
| * | Add reason string for bringing stack to frontCraig Mautner2015-01-265-93/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional debug and useful information. Also removed am_resume_activity verbosity and refactored method to eliminate unused parameter. For bug 17721767. Change-Id: Ie1c0652a38a0c6ae6db27a52a9e5da29e252e300
* | | Merge "Avoid NullPointerException if createUser returns null" into lmp-mr1-devBenjamin Franz2015-01-261-0/+3
|\ \ \
| * | | Avoid NullPointerException if createUser returns nullBenjamin Franz2015-01-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If createUser returns null, we run into a NullPointerException in createAndInitializeUser. This can happen when the policy DISALLOW_ADD_USER is set. Bug: 19121141 Change-Id: Id4bda832a243fa42c31eb5a176ecaa248aee68f5
* | | | Merge "Ensure notifications are sent when locking/unlocking location share" ↵Zoltan Szatmary-Ban2015-01-261-0/+13
|\ \ \ \ | |_|_|/ |/| | | | | | | into lmp-mr1-dev
| * | | Ensure notifications are sent when locking/unlocking location shareZoltan Szatmary-Ban2015-01-231-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the restriction 'DISALLOW_SHARE_LOCATION' is applied or removed on a user it is important to send out notifications to content observers of LOCATION_PROVIDERS_ALLOWED. Bug: 18995405 Change-Id: I8b3910a423a012ea9d15470eec101723c9f0eaf7
* | | | Accessibility: Sometimes cannot interact with nav bar items.Svetoslav2015-01-231-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is a window with the accessibility focus we want to click on the accessibility focused view in this window. The logic to compute the bounds of the window was using the wrong window id, hence getting an incorrect result. As a consequence in some cases the user could not click on accessiiblity focused controls in the nav bar. bug:18889611 Change-Id: I89aee3ae2ffe27fe29819049c287a7155154c65b
* | | | Merge "CEC: Handles initiation of press-and-hold correctly" into lmp-mr1-devJinsuk Kim2015-01-231-12/+34
|\ \ \ \ | |_|/ / |/| | |
| * | | CEC: Handles initiation of press-and-hold correctlyJinsuk Kim2015-01-231-12/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the time gap between the first and the second key event for repeated keys(press-and-hold) can be bigger than the threshold, which violates CEC spec. This CL rectifies it by managing its own state rather than relying on Android key handler. Bug: 19117830 Change-Id: Iedfa48f9ab826252e8616d1c3b7491e8b8333c81
* | | | Merge "Avoid SecurityException when calling getUserData" into lmp-mr1-devBenjamin Franz2015-01-231-21/+42
|\ \ \ \ | |_|/ / |/| | |
| * | | Avoid SecurityException when calling getUserDataBenjamin Franz2015-01-221-21/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we risk getting a SecurityException in a number of places, where getUserData is called for a different user than the calling user. To avoid this, the caller is cleared in a helper function. Bug: 18662452 Change-Id: Ibc131c602e52d9f013fe739a9c18e693181ded67
* | | | Merge "CEC: Add logic to return to internal source" into lmp-mr1-devJinsuk Kim2015-01-232-12/+21
|\ \ \ \ | |_|_|/ |/| | |
| * | | CEC: Add logic to return to internal sourceJinsuk Kim2015-01-222-12/+21
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL introduces a logic that, upon receiving <Inactive Source> from the active source or a corresponding MHL subcommand, lets the service return to one of internal inputs. Introduced to handle it is a new type for HdmiDevice (INACTIVE) that will be passed to input change listeners. The callback is expected to transform to other mechanism such as intent, to let TV app to decide which input to switch to, which will be one of non-HDMI input that was viewed previously. Bug: 19008579 Change-Id: I1922f4cd20e9220411061bb9d9fbe5fbc5676d48
* | | Merge "Even more debug for bug 17721767." into lmp-mr1-devCraig Mautner2015-01-223-1/+13
|\ \ \
| * | | Even more debug for bug 17721767.Craig Mautner2015-01-223-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | This time adding events for stack movement and focus change. Change-Id: Icdff9763ac2daf85c615992fa2c8e418e907908c
* | | | Merge "Log interface name and uid when filtering a blocked network." into ↵Erik Kline2015-01-221-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | Log interface name and uid when filtering a blocked network.Erik Kline2015-01-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18707263 Change-Id: Ide9a1670a97eae787b785933de0c80750c2b5601
* | | | | Merge "CEC: Let playback device switch TV input after bootup" into lmp-mr1-devJinsuk Kim2015-01-221-0/+4
|\ \ \ \ \
| * | | | | CEC: Let playback device switch TV input after bootupJinsuk Kim2015-01-211-0/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Saves users from having to switch TV input manually to a playback device after it boots up. Bug: 19046176 Change-Id: I0a4fae1036138ce2e19cbac9fdd9dda41bdcf89f
* | | | | Merge "TIF: TvInputHardwareManager puts multiple sink ports into audio ↵Wonsik Kim2015-01-221-50/+66
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | patch" into lmp-mr1-dev
| * | | | | TIF: TvInputHardwareManager puts multiple sink ports into audio patchWonsik Kim2015-01-201-50/+66
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Bug: 18823504 Change-Id: Id1dfe6c87bb26a8cb3ffafae8b256fa9e87d9d8c
* | | | | Merge "Resume home activity can skip resume and cause ANR. DO NOT MERGE" ↵Craig Mautner2015-01-221-5/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into lmp-mr1-dev
| * | | | | Resume home activity can skip resume and cause ANR. DO NOT MERGElouis_chang2015-01-211-5/+5
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symptom: In some scenario, there might have two home tasks in the home stack. If the top home task was finishing and expected to return to home stack, no activity will resume. Root Cause: Unable to perform resumeHomeStackTask() because the resumeTopActivityLocked() has been prevented to invoke recursively. Solution: Just resume the next activity if already in home stack Change-Id: I24ecbcac6cee4ddbd90cdd27c4f4915cffb9b354
* | | | | Merge "Fix legacy request removal." into lmp-mr1-devRobert Greenwalt2015-01-211-4/+27
|\ \ \ \ \
| * | | | | Fix legacy request removal.Robert Greenwalt2015-01-161-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't say we're disconnected from a legacy type until there are no outstanding requests for it. bug:18946574 Change-Id: I8e45c4a7558f7ced0840b71c50081989ba13c1c7
* | | | | | Merge "Rerun entitlementcheck on sim change." into lmp-mr1-devRobert Greenwalt2015-01-211-0/+113
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Rerun entitlementcheck on sim change.Robert Greenwalt2015-01-141-0/+113
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only run if entitlement is needed and tethering is running. bug:18356505 Change-Id: Ifc50189bf573e4575f747975edcce093c4870356
* | | | | Merge "Work on issue #18201239: ANRs in com.google.process.gapps:" into ↵Dianne Hackborn2015-01-212-4/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | Work on issue #18201239: ANRs in com.google.process.gapps:Dianne Hackborn2015-01-212-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reason: Executing service com.google.android.syncadapters.contacts /.SyncHighResPhotoIntentService Make the code more robust when destroying services, so that if the nesting count gets out of sync we don't just hang. Change-Id: If117d5ef242e7c148fd9576bd89a1a092583d6ad
* | | | | | Merge "CEC: Switch active input after routing control" into lmp-mr1-devJinsuk Kim2015-01-211-2/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | CEC: Switch active input after routing controlJinsuk Kim2015-01-211-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes sure the previous HDMI input gets switched to upon receiving <Inactive Source> from the current active source device. Bug: 18986597 Change-Id: I7120e81d75b5fd4cafd4b483e9b232b96e50f597
* | | | | | Merge "Fix issue #19020826: Including timing issues in ANR reason breaks ↵Dianne Hackborn2015-01-211-17/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | clustering" into lmp-mr1-dev
| * | | | | | Fix issue #19020826: Including timing issues in ANR reason breaks clusteringDianne Hackborn2015-01-201-17/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also improve service ANR debugging. Change-Id: I2118ef2811ca3ba676c110639f58d5c21abfb8eb
* | | | | | | Merge "Revert "Remove debugging and skip InputMethod windows"" into lmp-mr1-devCraig Mautner2015-01-201-10/+5
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | |
| * | | | | | Revert "Remove debugging and skip InputMethod windows"Craig Mautner2015-01-201-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 668cae1d4724cf794571f1ee2a3e896984b97db7. Too soon. I need this for debug. Change-Id: Ibeaec0139f511cf389049bdb7dae368a7bd8186b
* | | | | | | Merge "More debugging for bug 17721767" into lmp-mr1-devCraig Mautner2015-01-201-2/+4
|\ \ \ \ \ \ \
| * | | | | | | More debugging for bug 17721767Craig Mautner2015-01-201-2/+4
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Narrow down why GEL is being resumed instead of the top stack. Change-Id: I79c0be4adf0ccee30e1a5aa4308ee91148f239fa
* | | | | | | Merge "Remove debugging and skip InputMethod windows" into lmp-mr1-devCraig Mautner2015-01-201-5/+10
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Remove debugging and skip InputMethod windowsCraig Mautner2015-01-161-5/+10
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Remove debug for bug 17721767. 2. When adding activity windows based on base layer skip over InputMethod windows. Change-Id: I3600e9acd997002ce87d34df2af577cc7b648480
* | | | | | Merge "Do not defer removal for empty tasks or activities" into lmp-mr1-devCraig Mautner2015-01-201-3/+8
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Do not defer removal for empty tasks or activitiesCraig Mautner2015-01-201-3/+8
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible for empty activities to be leaked if their last window is removed before animations finish. This change keeps tasks and activities from having removal deferred if they have no windows. Fixes bug 19047432 Change-Id: If6562f46bbfcac9ba987e2c834a1d55a9a8f3766
* | | | | Merge "Don't write widget metadata to backup unless it's new/changed" into ↵Christopher Tate2015-01-201-11/+80
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | lmp-mr1-dev
| * | | | | Don't write widget metadata to backup unless it's new/changedChristopher Tate2015-01-151-11/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redundant backup traffic is bad. Don't commit the widget metadata payload (or the deletion operation for it) unless the widget state of the app has actually changed since the last backup. Bug 19003911 Change-Id: I93819173c0e2357b030d9e2b3d2ee57f2410bb57