/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | ConditionTest.java | 58 Condition cond1 = new Condition(longUri, longString, Condition.STATE_TRUE); in testLongFields_inConstructors_classic() 60 assertEquals(Condition.MAX_STRING_LENGTH, cond1.id.toString().length()); in testLongFields_inConstructors_classic() 61 assertEquals(Condition.MAX_STRING_LENGTH, cond1.summary.length()); in testLongFields_inConstructors_classic() 64 Condition cond2 = new Condition(longUri, longString, longString, longString, in testLongFields_inConstructors_classic() 65 -1, Condition.STATE_TRUE, Condition.FLAG_RELEVANT_ALWAYS); in testLongFields_inConstructors_classic() 67 assertEquals(Condition.MAX_STRING_LENGTH, cond2.id.toString().length()); in testLongFields_inConstructors_classic() 68 assertEquals(Condition.MAX_STRING_LENGTH, cond2.summary.length()); in testLongFields_inConstructors_classic() 69 assertEquals(Condition.MAX_STRING_LENGTH, cond2.line1.length()); in testLongFields_inConstructors_classic() 70 assertEquals(Condition.MAX_STRING_LENGTH, cond2.line2.length()); in testLongFields_inConstructors_classic() 77 Condition cond = new Condition(Uri.parse("uri://placeholder"), "placeholder", in testLongFields_viaParcel_classic() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ConditionProvidersTest.java | 19 import static android.service.notification.Condition.SOURCE_USER_ACTION; 20 import static android.service.notification.Condition.STATE_FALSE; 21 import static android.service.notification.Condition.STATE_TRUE; 42 import android.service.notification.Condition; 81 Condition[] conditions = new Condition[] { in notifyConditions_findCondition() 82 new Condition(Uri.parse("a"), "summary", STATE_TRUE), in notifyConditions_findCondition() 83 new Condition(Uri.parse("b"), "summary2", STATE_TRUE) in notifyConditions_findCondition() 99 Condition[] conditionsToNotify = new Condition[] { in notifyConditions_callbackOnConditionChanged() 100 new Condition(Uri.parse("a"), "summary", STATE_TRUE), in notifyConditions_callbackOnConditionChanged() 101 new Condition(Uri.parse("b"), "summary2", STATE_TRUE), in notifyConditions_callbackOnConditionChanged() [all …]
|
D | ScheduleConditionProviderTest.java | 13 import android.service.notification.Condition; 64 assertEquals(Condition.STATE_ERROR, in testIsValidConditionId_incomplete() 100 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_InSchedule() 103 assertEquals(Condition.STATE_TRUE, condition.state); in testEvaluateSubscription_noAlarmExit_InSchedule() 126 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 129 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 154 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_beforeSchedule() 157 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 177 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_endSchedule() 180 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_endSchedule() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/ |
D | ConditionTest.java | 58 final Condition.Callback callback = mock( in addCallback_addFirstCallback_triggerStart() 59 Condition.Callback.class); in addCallback_addFirstCallback_triggerStart() 66 final Condition.Callback callback1 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 67 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 68 final Condition.Callback callback2 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 69 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 70 final Condition.Callback callback3 = mock( in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 71 Condition.Callback.class); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 82 final Condition.Callback callback1 = mock( in addCallback_alreadyStarted_triggerUpdate() 83 Condition.Callback.class); in addCallback_alreadyStarted_triggerUpdate() [all …]
|
D | ConditionMonitorTest.java | 59 private HashSet<Condition> mConditions; 87 private Condition createMockCondition() { in createMockCondition() 88 final Condition condition = Mockito.mock( in createMockCondition() 89 Condition.class); in createMockCondition() 96 final Condition overridingCondition = createMockCondition(); in testOverridingCondition() 97 final Condition regularCondition = createMockCondition(); in testOverridingCondition() 122 final ArgumentCaptor<Condition.Callback> mCallbackCaptor = in testOverridingCondition() 123 ArgumentCaptor.forClass(Condition.Callback.class); in testOverridingCondition() 151 final Condition overridingCondition = createMockCondition(); in testMultipleOverridingConditions() 152 final Condition overridingCondition2 = createMockCondition(); in testMultipleOverridingConditions() [all …]
|
D | ConditionExtensionsTest.kt | 35 val condition = flow.toCondition(scope = this, Condition.START_EAGERLY) in flowInitiallyTrue() 50 val condition = flow.toCondition(scope = this, Condition.START_EAGERLY) in flowInitiallyFalse() 65 val condition = flow.toCondition(scope = this, Condition.START_EAGERLY) in emptyFlowWithNoInitialValue() 80 strategy = Condition.START_EAGERLY, in emptyFlowWithInitialValueOfTrue() 97 strategy = Condition.START_EAGERLY, in emptyFlowWithInitialValueOfFalse() 111 val condition = flow.toCondition(scope = this, strategy = Condition.START_EAGERLY) in conditionUpdatesWhenFlowEmitsNewValue() 133 val condition = flow.toCondition(scope = this, strategy = Condition.START_EAGERLY) in stoppingConditionUnsubscribesFromFlow()
|
D | CombinedConditionTest.kt | 22 import com.android.systemui.shared.condition.Condition.START_EAGERLY 23 import com.android.systemui.shared.condition.Condition.START_LAZILY 24 import com.android.systemui.shared.condition.Condition.START_WHEN_NEEDED 44 ) : Condition(scope, initialValue, overriding) { 87 val callback = Condition.Callback {} in <lambda>() 136 val callback = Condition.Callback {} in <lambda>() 186 val callback = Condition.Callback {} in <lambda>() 225 val callback = Condition.Callback {} in <lambda>() 273 val callback = Condition.Callback {} in <lambda>() 308 val callback = Condition.Callback {} in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/ |
D | Condition.java | 42 public abstract class Condition { class 54 public Condition(CoroutineScope scope) { in Condition() method in Condition 64 protected Condition(CoroutineScope scope, Boolean initialConditionMet, boolean overriding) { in Condition() method in Condition 261 public Condition and(@NonNull Collection<Condition> others) { in and() 262 final List<Condition> conditions = new ArrayList<>(); in and() 272 public Condition and(@NonNull Condition... others) { in and() 280 public Condition or(@NonNull Collection<Condition> others) { in or() 281 final List<Condition> conditions = new ArrayList<>(); in or() 291 public Condition or(@NonNull Condition... others) { in or() 304 void onConditionChanged(Condition condition); in onConditionChanged()
|
D | Monitor.java | 44 private final Set<Condition> mPreconditions; 47 private final HashMap<Condition, ArraySet<Subscription.Token>> mConditions = new HashMap<>(); 63 public Set<Condition> getConditions() { in getConditions() 146 private final Condition.Callback mConditionCallback = new Condition.Callback() { 148 public void onConditionChanged(Condition condition) { 164 public Monitor(Executor executor, Set<Condition> preconditions) { in Monitor() 171 public Monitor(Executor executor, Set<Condition> preconditions, TableLogBufferBase logBuffer) { in Monitor() 177 private void updateConditionMetState(Condition condition) { in updateConditionMetState() 204 Set<Condition> preconditions) { in addSubscription() 280 private final Set<Condition> mConditions; [all …]
|
D | ConditionExtensions.kt | 3 import com.android.systemui.shared.condition.Condition.StartStrategy in <lambda>() 18 ): Condition { in <lambda>() 19 return object : Condition(scope, initialValue, false) { in <lambda>() 36 fun Condition.toFlow(): Flow<Boolean?> { in Condition() method 39 Condition.Callback { condition -> in Condition()
|
/frameworks/base/core/java/android/service/notification/ |
D | Condition.java | 41 public final class Condition implements Parcelable { class 137 public Condition(Uri id, String summary, int state) { in Condition() method in Condition 149 public Condition(@Nullable Uri id, @Nullable String summary, @State int state, in Condition() method in Condition 155 public Condition(Uri id, String summary, String line1, String line2, int icon, in Condition() method in Condition 172 public Condition(@Nullable Uri id, @Nullable String summary, @Nullable String line1, in Condition() method in Condition 188 public Condition(Parcel source) { in Condition() method in Condition 192 this((Uri)source.readParcelable(Condition.class.getClassLoader(), android.net.Uri.class), in Condition() 238 StringBuilder sb = new StringBuilder(Condition.class.getSimpleName()).append('[') in toString() 301 if (!(o instanceof Condition)) return false; in equals() 303 final Condition other = (Condition) o; in equals() [all …]
|
/frameworks/libs/binary_translation/assembler/include/berberis/assembler/ |
D | common_x86.h | 49 enum class Condition { enum 236 void Jcc(Condition cc, int32_t offset) { in Jcc() 237 if (cc == Condition::kAlways) { in Jcc() 241 if (cc == Condition::kNever) { in Jcc() 336 static constexpr bool value = std::is_same_v<ArgumentType, Condition>; 655 template <typename Condition> 656 inline constexpr Condition ToReverseCond(Condition cond) { in ToReverseCond() 657 CHECK(cond != Condition::kInvalidCondition); in ToReverseCond() 660 return Condition(static_cast<int>(cond) ^ 1); in ToReverseCond() 663 template <typename Condition> [all …]
|
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/common_to_x86/ |
D | text_assembler_common.h | 42 enum class Condition { enum 386 void Instruction(const char* name, Condition cond, const Args&... args); 418 inline void TextAssemblerX86<Assembler>::Instruction(const char* name, Condition cond, const Args&.… in Instruction() 429 case Condition::kOverflow: in Instruction() 432 case Condition::kNoOverflow: in Instruction() 435 case Condition::kBelow: in Instruction() 438 case Condition::kAboveEqual: in Instruction() 441 case Condition::kEqual: in Instruction() 444 case Condition::kNotEqual: in Instruction() 447 case Condition::kBelowEqual: in Instruction() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleConditionProvider.java | 30 import android.service.notification.Condition; 133 notifyCondition(createCondition(conditionId, Condition.STATE_ERROR, "invalidId")); in onSubscribe() 169 List<Condition> conditionsToNotify = new ArrayList<>(); in evaluateSubscriptions() 173 Condition condition = in evaluateSubscriptions() 181 notifyConditions(conditionsToNotify.toArray(new Condition[conditionsToNotify.size()])); in evaluateSubscriptions() 187 Condition evaluateSubscriptionLocked(Uri conditionId, ScheduleCalendar cal, in evaluateSubscriptionLocked() 191 Condition condition; in evaluateSubscriptionLocked() 193 condition = createCondition(conditionId, Condition.STATE_ERROR, "!invalidId"); in evaluateSubscriptionLocked() 199 condition = createCondition(conditionId, Condition.STATE_FALSE, "snoozed"); in evaluateSubscriptionLocked() 201 condition = createCondition(conditionId, Condition.STATE_FALSE, "alarmCanceled"); in evaluateSubscriptionLocked() [all …]
|
D | EventConditionProvider.java | 33 import android.service.notification.Condition; 149 notifyCondition(createCondition(conditionId, Condition.STATE_FALSE)); in onSubscribe() 209 List<Condition> conditionsToNotify = new ArrayList<>(); in evaluateSubscriptionsW() 220 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW() 242 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW() 252 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW() 255 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_TRUE)); in evaluateSubscriptionsW() 259 for (Condition condition : conditionsToNotify) { in evaluateSubscriptionsW() 293 private Condition createCondition(Uri id, int state) { in createCondition() 297 return new Condition(id, summary, line1, line2, 0, state, Condition.FLAG_RELEVANT_ALWAYS); in createCondition()
|
D | CountdownConditionProvider.java | 27 import android.service.notification.Condition; 127 notifyCondition(newCondition(mTime, mIsAlarm, Condition.STATE_FALSE)); in onSubscribe() 163 notifyCondition(newCondition(time, alarm, Condition.STATE_FALSE)); in onReceive() 169 private static final Condition newCondition(long time, boolean alarm, int state) { in newCondition() 170 return new Condition(ZenModeConfig.toCountdownConditionId(time, alarm), in newCondition() 171 "", "", "", 0, state,Condition.FLAG_RELEVANT_NOW); in newCondition()
|
D | ConditionProviders.java | 19 import static android.service.notification.Condition.STATE_TRUE; 35 import android.service.notification.Condition; 272 private Condition[] getValidConditions(String pkg, Condition[] conditions) { in getValidConditions() 275 final ArrayMap<Uri, Condition> valid = new ArrayMap<Uri, Condition>(N); in getValidConditions() 290 final Condition[] rt = new Condition[valid.size()]; in getValidConditions() 314 public void notifyConditions(String pkg, ManagedServiceInfo info, Condition[] conditions) { in notifyConditions() 322 final Condition c = conditions[i]; in notifyConditions() 343 final Condition c = conditions[i]; in notifyConditions() 360 public Condition findCondition(ComponentName component, Uri conditionId) { in findCondition() 515 public Condition condition; [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | EnableZenModeDialog.java | 28 import android.service.notification.Condition; 124 mForeverId = Condition.newId(mContext).appendPath("forever").build(); in createDialog() 211 protected void bind(final Condition condition, final View row, final int rowId) { in bind() 214 final boolean enabled = condition.state == Condition.STATE_TRUE; in bind() 252 protected void bindConditions(Condition c) { in bindConditions() 279 public static Uri getConditionId(Condition condition) { in getConditionId() 283 public Condition forever() { in forever() 284 Uri foreverId = Condition.newId(mContext).appendPath("forever").build(); in forever() 285 return new Condition(foreverId, foreverSummary(mContext), "", "", 0 /*icon*/, in forever() 286 Condition.STATE_TRUE, 0 /*flags*/); in forever() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | CaptureSequencer.h | 87 Condition mStartCaptureSignal; 92 Condition mNewNotifySignal; 97 Condition mNewFrameSignal; 103 Condition mNewCaptureSignal; 108 Condition mShutterNotifySignal; 140 Condition mStateChanged;
|
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/ |
D | macro_assembler_bitmanip_impl.h | 31 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kBsrToClz<IntType>}); in MacroClz() 39 Cmov<IntType>(Condition::kZero, result, {.disp = constants_pool::kWidthInBits<IntType>}); in MacroCtz() 48 Cmov<IntType>(Condition::kLess, result, src2); in MacroMax() 50 Cmov<IntType>(Condition::kBelow, result, src2); in MacroMax() 60 Cmov<IntType>(Condition::kGreater, result, src2); in MacroMin() 62 Cmov<IntType>(Condition::kAbove, result, src2); in MacroMin() 121 Setcc(Condition::kCarry, result); in MacroBext()
|
D | macro_assembler_arith_impl.h | 36 Jcc(Condition::kZero, *zero); in MacroDiv() 43 Jcc(Condition::kNotEqual, *do_idiv); in MacroDiv() 51 Jcc(Condition::kEqual, *done); in MacroDiv() 95 Jcc(Condition::kZero, *zero); in MacroRem() 102 Jcc(Condition::kNotEqual, *do_idiv); in MacroRem() 110 Jcc(Condition::kEqual, *overflow); in MacroRem()
|
/frameworks/base/packages/SystemUI/src-release/com/android/systemui/flags/ |
D | FlagsModule.kt | 36 abstract fun bindsScreenIdleCondition(impl: ScreenIdleCondition): ConditionalRestarter.Condition in bindsFeatureFlagRelease() 40 abstract fun bindsPluggedInCondition(impl: PluggedInCondition): ConditionalRestarter.Condition in bindsFeatureFlagRelease() 46 ): ConditionalRestarter.Condition in bindsFeatureFlagRelease()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 39 import android.service.notification.Condition; 65 private Condition mCountdownCondition; 66 private Condition mAlarmCondition; 80 mController.mForeverId = Condition.newId(mContext).appendPath("forever").build(); in setup() 99 Uri alarm = Condition.newId(mContext).appendPath("alarm").build(); in setup() 100 mAlarmCondition = new Condition(alarm, "alarm", "", "", 0, 0, 0); in setup() 101 Uri countdown = Condition.newId(mContext).appendPath("countdown").build(); in setup() 102 mCountdownCondition = new Condition(countdown, "countdown", "", "", 0, 0, 0); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/condition/ |
D | ConditionalCoreStartable.java | 20 import com.android.systemui.shared.condition.Condition; 31 private final Set<Condition> mConditionSet; 39 public ConditionalCoreStartable(Monitor monitor, Set<Condition> conditionSet) { in ConditionalCoreStartable()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderTask.h | 25 class Condition; variable 62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) in SignalingRenderTask() 70 Condition* mSignal;
|