FileDocCategorySizeDatePackage
PolicyManager.javaAPI DocAndroid 1.5 API2283Wed May 06 22:41:56 BST 2009com.android.internal.policy

PolicyManager

public final class PolicyManager extends Object
{@hide}

Fields Summary
private static final String
POLICY_IMPL_CLASS_NAME
private static final com.android.internal.policy.IPolicy
sPolicy
Constructors Summary
private PolicyManager()


     
        // Pull in the actual implementation of the policy at run-time
        try {
            Class policyClass = Class.forName(POLICY_IMPL_CLASS_NAME);
            sPolicy = (IPolicy)policyClass.newInstance();
        } catch (ClassNotFoundException ex) {
            throw new RuntimeException(
                    POLICY_IMPL_CLASS_NAME + " could not be loaded", ex);
        } catch (InstantiationException ex) {
            throw new RuntimeException(
                    POLICY_IMPL_CLASS_NAME + " could not be instantiated", ex);
        } catch (IllegalAccessException ex) {
            throw new RuntimeException(
                    POLICY_IMPL_CLASS_NAME + " could not be instantiated", ex);
        }
    
Methods Summary
public static android.view.LayoutInflatermakeNewLayoutInflater(android.content.Context context)

        return sPolicy.makeNewLayoutInflater(context);
    
public static android.view.WindowmakeNewWindow(android.content.Context context)

        return sPolicy.makeNewWindow(context);
    
public static android.view.WindowManagerPolicymakeNewWindowManager()

        return sPolicy.makeNewWindowManager();