Home
last modified time | relevance | path

Searched refs:Condition (Results 1 – 25 of 133) sorted by relevance

123456

/frameworks/base/core/java/android/service/notification/
DCondition.java35 public final class Condition implements Parcelable { class
97 public Condition(Uri id, String summary, int state) { in Condition() method in Condition
101 public Condition(Uri id, String summary, String line1, String line2, int icon, in Condition() method in Condition
115 public Condition(Parcel source) { in Condition() method in Condition
116 this((Uri)source.readParcelable(Condition.class.getClassLoader()), in Condition()
142 return new StringBuilder(Condition.class.getSimpleName()).append('[') in toString()
187 if (!(o instanceof Condition)) return false; in equals()
189 final Condition other = (Condition) o; in equals()
209 public Condition copy() { in copy()
214 return new Condition(parcel); in copy()
[all …]
DIConditionListener.aidl20 import android.service.notification.Condition;
24 void onConditionsReceived(in Condition[] conditions); in onConditionsReceived()
DConditionProviderService.java201 public final void notifyCondition(Condition condition) { in notifyCondition()
203 notifyConditions(new Condition[]{ condition }); in notifyCondition()
215 public final void notifyConditions(Condition... conditions) { in notifyConditions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleConditionProviderTest.java10 import android.service.notification.Condition;
60 assertEquals(Condition.STATE_ERROR, in testIsValidConditionId_incomplete()
96 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_InSchedule()
99 assertEquals(Condition.STATE_TRUE, condition.state); in testEvaluateSubscription_noAlarmExit_InSchedule()
122 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
125 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
150 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_beforeSchedule()
153 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_beforeSchedule()
173 Condition condition = mService.evaluateSubscriptionLocked( in testEvaluateSubscription_noAlarmExit_endSchedule()
176 assertEquals(Condition.STATE_FALSE, condition.state); in testEvaluateSubscription_noAlarmExit_endSchedule()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleConditionProvider.java30 import android.service.notification.Condition;
132 notifyCondition(createCondition(conditionId, Condition.STATE_ERROR, "invalidId")); in onSubscribe()
168 List<Condition> conditionsToNotify = new ArrayList<>(); in evaluateSubscriptions()
172 Condition condition = in evaluateSubscriptions()
180 notifyConditions(conditionsToNotify.toArray(new Condition[conditionsToNotify.size()])); in evaluateSubscriptions()
186 Condition evaluateSubscriptionLocked(Uri conditionId, ScheduleCalendar cal, in evaluateSubscriptionLocked()
190 Condition condition; in evaluateSubscriptionLocked()
192 condition = createCondition(conditionId, Condition.STATE_ERROR, "!invalidId"); in evaluateSubscriptionLocked()
198 condition = createCondition(conditionId, Condition.STATE_FALSE, "snoozed"); in evaluateSubscriptionLocked()
200 condition = createCondition(conditionId, Condition.STATE_FALSE, "alarmCanceled"); in evaluateSubscriptionLocked()
[all …]
DEventConditionProvider.java33 import android.service.notification.Condition;
148 notifyCondition(createCondition(conditionId, Condition.STATE_FALSE)); in onSubscribe()
208 List<Condition> conditionsToNotify = new ArrayList<>(); in evaluateSubscriptionsW()
219 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW()
241 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW()
251 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_FALSE)); in evaluateSubscriptionsW()
254 conditionsToNotify.add(createCondition(conditionId, Condition.STATE_TRUE)); in evaluateSubscriptionsW()
258 for (Condition condition : conditionsToNotify) { in evaluateSubscriptionsW()
286 private Condition createCondition(Uri id, int state) { in createCondition()
290 return new Condition(id, summary, line1, line2, 0, state, Condition.FLAG_RELEVANT_ALWAYS); in createCondition()
DConditionProviders.java30 import android.service.notification.Condition;
206 private Condition[] removeDuplicateConditions(String pkg, Condition[] conditions) { in removeDuplicateConditions()
209 final ArrayMap<Uri, Condition> valid = new ArrayMap<Uri, Condition>(N); in removeDuplicateConditions()
220 final Condition[] rt = new Condition[valid.size()]; in removeDuplicateConditions()
244 public void notifyConditions(String pkg, ManagedServiceInfo info, Condition[] conditions) { in notifyConditions()
252 final Condition c = conditions[i]; in notifyConditions()
260 final Condition c = conditions[i]; in notifyConditions()
277 public Condition findCondition(ComponentName component, Uri conditionId) { in findCondition()
380 public Condition condition;
401 void onConditionChanged(Uri id, Condition condition); in onConditionChanged()
DCountdownConditionProvider.java27 import android.service.notification.Condition;
129 notifyCondition(newCondition(mTime, mIsAlarm, Condition.STATE_FALSE)); in onSubscribe()
155 notifyCondition(newCondition(time, alarm, Condition.STATE_FALSE)); in onReceive()
161 private static final Condition newCondition(long time, boolean alarm, int state) { in newCondition()
162 return new Condition(ZenModeConfig.toCountdownConditionId(time, alarm), in newCondition()
163 "", "", "", 0, state,Condition.FLAG_RELEVANT_NOW); in newCondition()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java28 import android.service.notification.Condition;
105 mForeverId = Condition.newId(mContext).appendPath("forever").build(); in createDialog()
186 protected void bind(final Condition condition, final View row, final int rowId) { in bind()
189 final boolean enabled = condition.state == Condition.STATE_TRUE; in bind()
225 protected void bindConditions(Condition c) { in bindConditions()
252 public static Uri getConditionId(Condition condition) { in getConditionId()
256 public Condition forever() { in forever()
257 Uri foreverId = Condition.newId(mContext).appendPath("forever").build(); in forever()
258 return new Condition(foreverId, foreverSummary(mContext), "", "", 0 /*icon*/, in forever()
259 Condition.STATE_TRUE, 0 /*flags*/); in forever()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCaptureSequencer.h87 Condition mStartCaptureSignal;
92 Condition mNewNotifySignal;
97 Condition mNewFrameSignal;
103 Condition mNewCaptureSignal;
108 Condition mShutterNotifySignal;
139 Condition mStateChanged;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledOverride.java34 …ort com.android.internal.telephony.dataconnection.DataEnabledOverride.OverrideConditions.Condition;
127 boolean isSatisfiedByConditions(@ApnType int apnType, @Condition int providedConditions) { in isSatisfiedByConditions()
195 public @interface Condition {} annotation in DataEnabledOverride.OverrideConditions
222 private final @Condition int mConditions;
238 OverrideConditions(@Condition int conditions) { in OverrideConditions()
242 private static String getStringFromBitmask(@Condition int conditions) { in getStringFromBitmask()
255 private static @Condition int getBitmaskFromString(@NonNull String str) { in getBitmaskFromString()
281 boolean allMet(@Condition int providedConditions) { in allMet()
369 @Condition int providedConditions) { in canSatisfyAnyRule()
378 private @Condition int getCurrentConditions(Phone phone) { in getCurrentConditions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java34 import android.service.notification.Condition;
121 private Condition mExitCondition;
128 private Condition mSessionExitCondition;
146 mForeverId = Condition.newId(mContext).appendPath("forever").build(); in ZenModePanel()
333 private void setSessionExitCondition(Condition condition) { in setSessionExitCondition()
386 private void setExitCondition(Condition exitCondition) { in setExitCondition()
393 private static Uri getConditionId(Condition condition) { in getConditionId()
397 private Uri getRealConditionId(Condition condition) { in getRealConditionId()
401 private static Condition copy(Condition condition) { in copy()
413 final Condition c = rule == null ? null in handleUpdateManualRule()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java37 import android.service.notification.Condition;
63 private Condition mCountdownCondition;
64 private Condition mAlarmCondition;
78 mController.mForeverId = Condition.newId(mContext).appendPath("forever").build(); in setup()
95 Uri alarm = Condition.newId(mContext).appendPath("alarm").build(); in setup()
96 mAlarmCondition = new Condition(alarm, "alarm", "", "", 0, 0, 0); in setup()
97 Uri countdown = Condition.newId(mContext).appendPath("countdown").build(); in setup()
98 mCountdownCondition = new Condition(countdown, "countdown", "", "", 0, 0, 0); in setup()
/frameworks/base/libs/hwui/renderthread/
DRenderTask.h25 class Condition; variable
62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) in SignalingRenderTask()
70 Condition* mSignal;
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaAdapter.h62 Condition mBufferReadCond;
64 Condition mBufferReturnedCond;
DCameraSource.h172 Condition mFrameAvailableSignal;
251 Condition mFrameAvailableCondition;
252 Condition mFrameCompleteCondition;
281 Condition mMemoryBaseAvailableCond;
/frameworks/native/libs/gui/tests/
DDisconnectWaiter.h72 Condition mDisconnectCondition;
75 Condition mFrameCondition;
/frameworks/av/camera/tests/
DCameraZSLTests.cpp59 status_t waitForEvent(Mutex &mutex, Condition &condition, bool &flag);
62 mutable Condition mPreviewCondition;
64 mutable Condition mAutoFocusCondition;
66 mutable Condition mSnapshotCondition;
148 Condition &condition, bool &flag) { in waitForEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java52 public static void waitForCondition(Condition p) { in waitForCondition()
62 public interface Condition { interface
/frameworks/base/tools/aapt/
DWorkQueue.h107 Condition mWorkChangedCondition;
108 Condition mWorkDequeuedCondition;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeController.java22 import android.service.notification.Condition;
45 default void onConditionsChanged(Condition[] conditions) {} in onConditionsChanged()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DALooper.h73 Condition mQueueChangedCondition;
86 Condition mRepliesCondition;
DMutexed.h123 inline status_t waitForCondition(Condition &cond) { return cond.wait(mLock); } in waitForCondition()
126 inline status_t waitForConditionRelative(Condition &cond, nsecs_t reltime) { in waitForConditionRelative()
/frameworks/av/cmds/screenrecord/
DOverlay.h106 Condition mStartCond;
117 Condition mEventCond;
/frameworks/base/core/java/android/speech/tts/
DSynthesisPlaybackQueueItem.java26 import java.util.concurrent.locks.Condition;
50 private final Condition mReadReady = mListLock.newCondition();
51 private final Condition mNotFull = mListLock.newCondition();

123456