diff options
author | Amith Yamasani <yamasani@google.com> | 2013-12-20 16:36:48 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-12-20 16:36:48 -0800 |
commit | e58a49e411327e26b6ad9939833f53c7fa5aef20 (patch) | |
tree | a983bb17f76bcccef7cd94830525e7e7d02ce314 /services/devicepolicy | |
parent | 3c8a529b3c2a0bb1eceb3c1ec7afa58634ace044 (diff) | |
parent | 817ec49e7991d4cac50b2308cd7cf5f8641e1e29 (diff) | |
download | frameworks_base-e58a49e411327e26b6ad9939833f53c7fa5aef20.zip frameworks_base-e58a49e411327e26b6ad9939833f53c7fa5aef20.tar.gz frameworks_base-e58a49e411327e26b6ad9939833f53c7fa5aef20.tar.bz2 |
Merge commit '817ec49e' into manualmerge
Conflicts:
services/print/java/com/android/server/print/PrintManagerService.java
Change-Id: I1b9bf364ca50ee3c48f53d87ae0ce23e7f3c2bc2
Diffstat (limited to 'services/devicepolicy')
-rw-r--r-- | services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerSystemService.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerSystemService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerSystemService.java new file mode 100644 index 0000000..160aa39 --- /dev/null +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerSystemService.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2013 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.server.devicepolicy; + +import android.content.Context; + +import com.android.server.SystemService; + +/** + * SystemService wrapper for the DevicePolicyManager implementation. Publishes + * Context.DEVICE_POLICY_SERVICE. + */ +public final class DevicePolicyManagerSystemService extends SystemService { + private DevicePolicyManagerService mDevicePolicyManagerImpl; + + @Override + public void onCreate(Context context) { + mDevicePolicyManagerImpl = new DevicePolicyManagerService(context); + } + + @Override + public void onStart() { + publishBinderService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManagerImpl); + } + + @Override + public void onBootPhase(int phase) { + if (phase == PHASE_LOCK_SETTINGS_READY) { + mDevicePolicyManagerImpl.systemReady(); + } + } +}
\ No newline at end of file |