summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ClipboardService.java
Commit message (Collapse)AuthorAgeFilesLines
* Move some system services to their own sub package.Amith Yamasani2013-11-121-366/+0
| | | | | | | | | | | As a next step they can be moved into separate directories to be built as separate modules that may or may not be included in a particular configuration. Moves AppWidgetService, BackupManagerService, ClipboardService, DevicePolicyMS, and WallpaperMS. Change-Id: I33e48d070f38186819d3a1d7a4dc3984b75a9eda
* Fix issue #11005453: [SUW] G+ profile creation for new user brokenDianne Hackborn2013-10-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main problem here was a mistake when turning a single process structure to a multi-package-process structure with a common process. When we cloned the original process state, if there were any services already created for the process for that package, they would be left with their process pointer still referencing the original now common process instead of the package-specific process, allowing the active counts to get bad. Now we switch any of those processes over to the new package-specific process. There was also another smaller issue with how ServiceRecord is associated with a ServiceState -- we could be waiting for an old ServiceRecord to be destroyed while at the same time creating a new ServiceRecord for that same service class. These would share the same ServiceState, so when the old record finally finished destroying itself it would trample over whatever the new service is doing. This is fixed by changing the model to instead of using an "active" reference count, we have an object identifying the current owner of the ServiceState. Then when the old ServiceRecord is cleaning up, we know if it is still the owner at that point. Also some other small things along the way -- new Log.wtfStack() method that is convenient, new suite of Slog.wtf methods, fixed some services to use Slog.wtf when catching exceptions being returned to the caller so that we actually know about them. Change-Id: I75674ce38050b6423fd3c6f43d1be172b470741f
* Fix pub issue #58043: Copy crash in Android 4.3...Dianne Hackborn2013-07-291-15/+20
| | | | | | | | | | ...when clipboard listener attached We need to clear the calling identity before dispatching change notifications. Also make this more robust, so that in the face of any failure we will clean up the broadcast state. Change-Id: I305a8a62738595f1fe5643a063099de5ed7cb062
* App ops: adding operations for reading/writing clipboard.Dianne Hackborn2013-02-251-7/+47
| | | | Change-Id: Ic4cade153618fe86954754a3b3edde64a52a0a9c
* Get correct user's package info during clip processingChristopher Tate2012-09-141-5/+13
| | | | | | | | | Also clear the binder identity correctly for purposes of doing that query. Bug 7162477 Change-Id: Ie9e43a2d8fc964d1be649887905244dcceaa3c80
* UserHandle to UserSerialNo mappingAmith Yamasani2012-08-171-1/+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
* Rename UserId to UserHandle.Dianne Hackborn2012-08-161-3/+3
| | | | | | This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
* Clipboard service keeps separate clipboards per user.Amith Yamasani2012-04-201-25/+80
| | | | | | No leaking personal information via the clipboard. Change-Id: I11125288e2e640eb0c0e4c73dae2b4d9aa7c0f3b
* User management and switchingAmith Yamasani2012-03-271-1/+2
| | | | | | | | | | | | | | | | | | | Broadcast intents that get sent out when users are added/removed/switched. More work on generating user-specific information in package manager queries. APIs to update user name and query a user by id. Removed Package.mSetStopped and mSetEnabled, since they're not user specific. User removal: - Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService and AccountManager. - Shutdown processes belonging to the user. Don't show vibrate option in long-press power if there's no vibrator. Lock the screen when switching users, to force unlocking. Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
* Fix a bunch of API review bugs.Dianne Hackborn2011-01-171-4/+4
| | | | | | | | | | 3362464 API REVIEW: android.content potpourri 3362445 API REVIEW: Fragment transaction stuff 3362428 API REVIEW: Fragment stuff 3362418 API REVIEW: Loader stuff 3362414 API REVIEW: android.content.pm.ActivityInfo Change-Id: I6475421a4735759b458acb67df4380cc6234f147
* Fix issue #3299143: Problem report for Hanping Chinese Dictionary ProDianne Hackborn2010-12-221-2/+2
| | | | | | Let's not crash if there is no clip. Change-Id: I295031adf37fdd0997c39a2cffc2c6f602d7694e
* ClipDescription no longer inherits from ClipData.Dianne Hackborn2010-10-261-1/+1
| | | | Change-Id: Ie4939f87c7e1628d9c19ecb5c0b3036d1f76ef29
* Implement permission granting in clipboard.Dianne Hackborn2010-10-051-3/+159
| | | | Change-Id: I9a7a949d1aaf4b3beabceaf807fb7d3b040e4ea8
* Improve clipboard API.Dianne Hackborn2010-08-271-4/+11
| | | | | | | | | | - Rename ClippedData to ClipData. - Introudce ClipDescription subclass. - Add convenience APIs for creating a ClipData. - Add ClipboardManager API to get just the ClipDescription. - Define MIME types associated with a clip. Change-Id: If97ef91aa99a4dd0ec74ccaea504345c9ef12b5c
* First pass at a new clipboard API.Dianne Hackborn2010-08-051-12/+47
| | | | | | | | | | | | | | | ClipboardManager was in android.text(!!) so it needed to be moved up to android.content to have access to the richer data types we now need. ClippedData is the data representation. Still needs a lot of fleshing out to allow holding more than one data type at a time and perhaps conversions between them. (MIME-oriented interrogation and conversion will be done through ContentProvider, which needs to grow an ability to report multiple MIME types and accept a desired MIME type when a stream is being opened.) Change-Id: Ifa51bedcd084a677813b255d171804e8496b0cb5
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+57
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-57/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+57