Lines Matching refs:context
54 public static boolean shouldStartDockApp(Context context, Intent intent) {
55 ComponentName name = intent.resolveActivity(context.getPackageManager());
62 public static void startDreamByUserRequest(Context context) {
63 startDream(context, false);
70 public static void startDreamWhenDockedIfAppropriate(Context context) {
71 if (!isScreenSaverEnabled(context)
72 || !isScreenSaverActivatedOnDock(context)) {
77 startDream(context, true);
80 private static void startDream(Context context, boolean docked) {
94 (PowerManager)context.getSystemService(Context.POWER_SERVICE);
108 private static boolean isScreenSaverEnabled(Context context) {
109 int def = context.getResources().getBoolean(
111 return Settings.Secure.getIntForUser(context.getContentResolver(),
116 private static boolean isScreenSaverActivatedOnDock(Context context) {
117 int def = context.getResources().getBoolean(
119 return Settings.Secure.getIntForUser(context.getContentResolver(),