Searched refs:isNeeded (Results 1 – 5 of 5) sorted by relevance
51 return isNeeded(params) ? new DozeSuspendScreenStatePreventingAdapter(inner, bgExecutor) in wrapIfNeeded()55 private static boolean isNeeded(DozeParameters params) { in isNeeded() method in DozeSuspendScreenStatePreventingAdapter
53 return isNeeded(params) ? new DozeScreenStatePreventingAdapter(inner, bgExecutor) : inner; in wrapIfNeeded()56 private static boolean isNeeded(DozeParameters params) { in isNeeded() method in DozeScreenStatePreventingAdapter
91 assertTrue(KeyguardClockAccessibilityDelegate.isNeeded(mContext)); in isNeeded_returnsTrueIfDateFormatsContainNonAscii()100 assertEquals(hasFancyColon, KeyguardClockAccessibilityDelegate.isNeeded(mContext)); in isNeeded_returnsWhetherFancyColonExists()
83 public static boolean isNeeded(Context context) { in isNeeded() method in KeyguardClockAccessibilityDelegate
74 if (KeyguardClockAccessibilityDelegate.isNeeded(mContext)) { in onFinishInflate()