summaryrefslogtreecommitdiffstats
path: root/services/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix testAmith Yamasani2013-03-301-12/+12
| | | | Change-Id: I329ceff03d3707e10c2e4eabfb8e6ea61082ae6d
* am 24948d3c: am 946a5c91: Merge "Save off the seinfo value with packages.list."Geremy Condra2013-03-281-3/+3
|\ | | | | | | | | * commit '24948d3ca7ff7fa70ee85e9aa7530239d7b482b2': Save off the seinfo value with packages.list.
| * Save off the seinfo value with packages.list.Robert Craig2013-03-261-3/+3
| | | | | | | | | | | | | | | | | | | | Patch adds the seinfo label per package to the file. This is of particular interest to the run-as program which uses the seinfo tag to correctly label the app security context before running the shell. Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
* | Fix build.Dianne Hackborn2013-03-271-2/+2
| | | | | | | | Change-Id: I38a25dc63107fc907a520169e1b58f00e51dbb9d
* | Match tests to new API.Amith Yamasani2013-03-261-7/+7
| | | | | | | | Change-Id: I9a537a437c721ae64d9307b889b9de5d5429670f
* | Always specify an interface for host routes.Lorenzo Colitti2013-03-081-7/+11
| | | | | | | | Change-Id: I05b4d87e7d7e8237c6f4a70f1fedae00f416f581
* | EntropyMixer: Write entropy at shutdown / reboot / powerNick Kralevich2013-03-041-1/+1
| | | | | | | | | | | | | | | | Write out entropy if we're shutting down or rebooting, or if someone plugs in the power. Bug: 8312061 Change-Id: Id9a48064a7bdfe6c05a9227ea95a1bdbd0e9b8ae
* | Add location sharing toggle user restriction.Maggie Benthall2013-02-251-2/+3
| | | | | | | | | | | | And add support for respecting it. Change-Id: Ia5cf9134c5f5741c3f55afadbe54f862da7bfe5b
* | Migrate to using Mockito directly.Jeff Sharkey2013-02-193-14/+30
| | | | | | | | Change-Id: I1fcc5d1a780f5831bd6685f0735d4c0c6d245735
* | Fix UserManager testAmith Yamasani2013-02-111-2/+3
| | | | | | | | Change-Id: I927ffdda3dd5f69dc136e65c8069f2e480badfe9
* | Starting point for User Restrictions APIAmith Yamasani2013-02-081-0/+16
| | | | | | | | | | | | | | | | | | | | | | Restrictions saved as key/value pairs, mostly booleans right now but might be expanded to other types later. Save and restore restrictions in the user manager service. Enforce some of the restrictions at the framework level. Some are enforced (also) at the app level, such as in Settings. Change-Id: Id11ffe129cb6a177e094edf79635727388c26f40
* | App ops: vibration, neighboring cells, dialing, etc.Dianne Hackborn2013-02-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve handling of vibration op, so that apps are better blamed (there is now a hidden vibrator API that supplies the app to blame, and the system now uses this when vibrating on behalf of an app). Add operation for retrieving neighboring cell information. Add a new op for calling a phone number. This required plumbing information about the launching package name through the activity manager, which required changing the internal startActivity class, which required hitting a ton of code that uses those internal APIs. Change-Id: I3f8015634fdb296558f07fe654fb8d53e5c94d07
* | Maybe fix build.Dianne Hackborn2013-01-291-4/+4
| | | | | | | | Change-Id: Ibad8edb15e7cc332d6c29958a386d32a96f4e755
* | Merge "Tests to assert correct January behavior."Jeff Sharkey2013-01-231-0/+19
|\ \
| * | Tests to assert correct January behavior.Jeff Sharkey2013-01-221-0/+19
| | | | | | | | | | | | Change-Id: I162102b6f1b892b79e2f5b96cb0184abb85d00bc
* | | Removed Throttle Manager as obsoleteSasha Levitskiy2013-01-141-353/+0
|/ / | | | | | | Change-Id: I63e8514f34c880d0badaab33a347f54a80c84da6
* | Move Observer test to servicetestsAmith Yamasani2012-12-111-0/+100
| | | | | | | | Change-Id: Ib3493af4eb3185db79004a3cad5473161ed51f71
* | Merge "Move one more test."Amith Yamasani2012-12-111-0/+449
|\ \
| * | Move one more test.Amith Yamasani2012-12-111-0/+449
| | | | | | | | | | | | Change-Id: Iea0e0b5727746f2332db2ab1c1b216326eb50f13
* | | Fix build. Forgot to move this test.Amith Yamasani2012-12-111-0/+470
|/ / | | | | | | Change-Id: I06aab8ec6e2dac86b65bbeed3587444260fec2e8
* | Move lingering services to services.jar.Jeff Sharkey2012-12-112-0/+367
|/ | | | | | | | This helps reduce the pressure on framework.jar, and makes it clear that it should only be used by the system_server. Bug: 7333397 Change-Id: I0858904239535380fbf30562b793e277d8c3f054
* am b443ddbb: am 2c41c4a2: Fix build.Dianne Hackborn2012-11-291-4/+4
|\ | | | | | | | | * commit 'b443ddbbc7f1c7ed2d30310f80323cd4a5bf3e8d': Fix build.
| * am 2c41c4a2: Fix build.Dianne Hackborn2012-11-281-4/+4
| |\ | | | | | | | | | | | | * commit '2c41c4a2766dcce506fc0e9e361fc8198553293c': Fix build.
| | * Fix build.Dianne Hackborn2012-11-281-4/+4
| | | | | | | | | | | | Change-Id: Icc1f2913b4e889609066b0ff1dddcd9be0230897
* | | am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-071-0/+0
|\ \ \ | | | | | | | | | | | | | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| * | | Correct executable bit for source filesKenny Root2012-11-071-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
* | | | am f624d72c: am 8074e98b: Merge "Fix crashes when quickly adding and ↵Amith Yamasani2012-10-212-8/+56
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | removing users" into jb-mr1-dev * commit 'f624d72cb0fe40fd5748d4f0d1a93bf267aa3ed8': Fix crashes when quickly adding and removing users
| * | | am 8074e98b: Merge "Fix crashes when quickly adding and removing users" into ↵Amith Yamasani2012-10-212-8/+56
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | jb-mr1-dev * commit '8074e98b20ac04fdc032a1ed00dd6763b7e04147': Fix crashes when quickly adding and removing users
| | * | Fix crashes when quickly adding and removing usersAmith Yamasani2012-10-192-8/+56
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make USER_REMOVED an ordered broadcast and send it before the user's state is completely removed from the system. This gives services the opportunity to clean up their state, while still having access to the user's directory and UserInfo object (such as serial number). Tell SyncManager to skip over dying/partially created users. Improve UserManager tests, waiting for users to be removed fully. Bug: 7382252 Change-Id: I93cfb39c9efe6f15087bf83c569a2d154ef27168
| * | am 3a8af8ef: Merge "Migrate more Secure settings to Global." into jb-mr1-devJeff Sharkey2012-09-271-10/+10
| |\ \ | |/ / |/| | | | | | | | * commit '3a8af8efff93ca8ee80fc8c7841e7bee9a8b7786': Migrate more Secure settings to Global.
| * | am 68b7a6d1: Merge "First step towards cleaning up Global settings." into ↵Jeff Sharkey2012-09-261-6/+6
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit '68b7a6d14b68b38324ffd275c7227805c7d99b2d': First step towards cleaning up Global settings.
| * \ \ am 6e065a72: Merge "Handle multi-user mountObb() requests." into jb-mr1-devJeff Sharkey2012-09-254-0/+317
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '6e065a729dbf08f99209a7710da80442a394ec0d': Handle multi-user mountObb() requests.
| * \ \ \ am 0a5c5567: Merge "Multi-user support for the accessibility layer." into ↵Svetoslav Ganov2012-09-212-36/+48
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit '0a5c5567f2d7e203d95c80a8d3353d0acd98b5f9': Multi-user support for the accessibility layer.
| * \ \ \ \ am d0c6ccba: Move NetworkPolicy from apps to UID.Jeff Sharkey2012-09-151-54/+11
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd0c6ccbafdebc73d03cf3cd47f02f9f6c78a69ff': Move NetworkPolicy from apps to UID.
* | | | | | | Migrate more Secure settings to Global.Jeff Sharkey2012-09-271-10/+10
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate networking, storage, battery, DropBox, and PackageManager related Secure settings to Global table. Bug: 7232014, 7231331, 7231198 Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
* | | | | | First step towards cleaning up Global settings.Jeff Sharkey2012-09-261-6/+6
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all @Deprecated @hide settings, and clean up any stragglers. Bug: 7232125 Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
* | | | | Handle multi-user mountObb() requests.Jeff Sharkey2012-09-254-0/+317
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since emulated external storage paths differ based on execution context, carefully fix up paths for various use-cases: 1. When sending paths to DefaultContainerService, always scope OBB paths as belonging to USER_OWNER. 2. When sending paths to vold, always build emulated storage paths visible to root. 3. Always use the original untouched path when talking with apps. Mount OBB containers using shared app GID, so that an app can read the mount point across users. Handle legacy paths like "/sdcard" by resolving the canonical path before sending to MountService. Move tests to servicestests, and add tests for new path generation logic. Bug: 7212801 Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
* | | | Multi-user support for the accessibility layer.Svetoslav Ganov2012-09-212-36/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. This change converts the accessibility manager service to maintain a state per user. When the user changes the services for the user that is going away are disconnected, the local accessibility managers in the processes for this user are disabled, the state is swapped with the new user's one, and the new user state is refreshed. This change updates all calls into the system to use their user specific versions when applicable. For example, regisetring content observers, package monitors, calls into other system services, etc. There are some components that are shared across users such as UI created by the system process and the SystemUI package. Such components are managed as a global state shared across all users and are updated accordingly on a user switch. Since the SystemUI is running in a normal app process this change adds hidden APIs on the local window manager to allow the SystemUI to notify the accessibility layer that it will run accross users. Calls to AccessibiltyManager's isEnabled(), isTouchExplorationEnabled() and sendAccessibilityEvent return false or a are a nop for a background user sice he should not send accessibility events, and should not perform touch exploration. Update the internal accessibility tests due to changes in the AccessibilityManager. This change also fixes several issues that were encountered such as calling out the accessibility manager service with a lock held. Removed some incorrect debugging code from the TouchExplorer that was leading to a system crash. bug:6967373 Change-Id: I2cf32ffdee1d827a8197ae4ce717dc0ff798b259
* | | | Move files to make eclipse-java happyAndy Stadler2012-09-181-0/+0
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | No changes to text at all, just moving the java files to match their declared packages. There was no original bug# but this cleans up the code submitted in the original Change-Id: I42307f58074157b33b6e01216aab10022340d449 Change-Id: I233fa7f21167a42565aadb7ad109600b1a1a5721
* | | Move NetworkPolicy from apps to UID.Jeff Sharkey2012-09-141-54/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | For multi-user devices, switch to storing policy per-user instead of per-app. Also watch for user added/removed broadcasts to clean up policies and apply global restrictions. Bug: 7121279 Change-Id: Ia7326bd0ebe0586fa4ec6d3a62f6313dc8814007
* | | DO NOT MERGE Add components for the Android Config Updater to system server.Geremy Condra2012-09-121-0/+243
|/ / | | | | | | | | | | | | | | This adds the necessary bits to verify and install configuration updates using system server. It also includes the cert pinning updater as the first user. Change-Id: I42307f58074157b33b6e01216aab10022340d449
* | Remove Binder.getOrigCallingUid().Dianne Hackborn2012-08-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced all remaining places that used it with explicit user specification. While doing this, I ran into stuff that was creating PendingIntent objects (that now need to specify the explicit user they are for), which are also posting notifications... but have no way to specify the user for the notification. So the notification manager in the system process now also gets a formal concept of a user associated with the notification, which is passed in to all the necessary aidl calls. I also removed the old deprecated aidl interface for posting/cancelling notifications, since we now always need a user supplied. There is more work that needs to be done here, though. For example I think we need to be able to specify USER_ALL for a notification that should be shown to all users (such as low storage or low battery). Along with that, the PendingIntent creation needs to be tweaked to be able to handle USER_CURRENT by evaluating the user at the point the pending intent is sent. That's for another change, however. Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
* | Remove permission requirement for some UserManager callsAmith Yamasani2012-08-221-1/+2
| | | | | | | | | | | | | | Update javadocs to be explicit about permissions. Minor fixes in UserManagerService Change-Id: I0d355e0a60e5dbdb49ed06091111d480ff249f3d
* | UserHandle to UserSerialNo mappingAmith Yamasani2012-08-172-29/+29
| | | | | | | | | | | | | | | | | | 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
* | Rename UserId to UserHandle.Dianne Hackborn2012-08-161-5/+5
| | | | | | | | | | | | This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
* | User Manager service to manage users and query user detailsAmith Yamasani2012-08-113-18/+11
| | | | | | | | | | | | | | | | | | | | Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
* | Isolate NetworkStateTracker creation, test.Jeff Sharkey2012-08-082-1/+226
| | | | | | | | | | | | | | | | | | Change ConnectivityService to use a factory when creating NetworkStateTrackers, which gives us a good place to inject mocks for testing. Add initial tests to verify that network routes are added and removed as networks changed. Change-Id: I11cbc61a84c2ed4afa2670036295b1494eab26e1
* | Add an icon to the user information.Amith Yamasani2012-06-121-1/+1
|/ | | | | | | Store the icon in the user folder under /data/system, similar to how the wallpaper is stored. Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
* Merge "Transition from DEV network stats to XT." into jb-devJeff Sharkey2012-05-182-3/+127
|\
| * Transition from DEV network stats to XT.Jeff Sharkey2012-05-172-3/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When XT stats are available, transition to prefer them over DEV, since they aren't subject to hardware driver bugs. Only switches at the first atomic XT bucket, and adds a Settings.Secure flag to force back to DEV if needed. Includes tests to cover transition. Fix tests where device overlay would change which network types reflected data usage. Test both history and summary APIs. Fixed collection timestamps to reflect full buckets. Bug: 6504744 Change-Id: Idd7f3b2fdb064c36547c85c51c214fd938c59b7e