summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ClipboardService.java
AgeCommit message (Collapse)Author
2013-11-12Move some system services to their own sub package.Amith Yamasani
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
2013-10-01Fix issue #11005453: [SUW] G+ profile creation for new user brokenDianne Hackborn
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
2013-07-29Fix pub issue #58043: Copy crash in Android 4.3...Dianne Hackborn
...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
2013-02-25App ops: adding operations for reading/writing clipboard.Dianne Hackborn
Change-Id: Ic4cade153618fe86954754a3b3edde64a52a0a9c
2012-09-14Get correct user's package info during clip processingChristopher Tate
Also clear the binder identity correctly for purposes of doing that query. Bug 7162477 Change-Id: Ie9e43a2d8fc964d1be649887905244dcceaa3c80
2012-08-17UserHandle to UserSerialNo mappingAmith Yamasani
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
2012-08-16Rename UserId to UserHandle.Dianne Hackborn
This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
2012-04-20Clipboard service keeps separate clipboards per user.Amith Yamasani
No leaking personal information via the clipboard. Change-Id: I11125288e2e640eb0c0e4c73dae2b4d9aa7c0f3b
2012-03-27User management and switchingAmith Yamasani
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
2011-01-17Fix a bunch of API review bugs.Dianne Hackborn
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
2010-12-22Fix issue #3299143: Problem report for Hanping Chinese Dictionary ProDianne Hackborn
Let's not crash if there is no clip. Change-Id: I295031adf37fdd0997c39a2cffc2c6f602d7694e
2010-10-26ClipDescription no longer inherits from ClipData.Dianne Hackborn
Change-Id: Ie4939f87c7e1628d9c19ecb5c0b3036d1f76ef29
2010-10-05Implement permission granting in clipboard.Dianne Hackborn
Change-Id: I9a7a949d1aaf4b3beabceaf807fb7d3b040e4ea8
2010-08-27Improve clipboard API.Dianne Hackborn
- 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
2010-08-05First pass at a new clipboard API.Dianne Hackborn
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
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project