Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/service/notification/
DCondition.java36 public final class Condition implements Parcelable { class
102 public Condition(Uri id, String summary, int state) { in Condition() method in Condition
107 public Condition(Uri id, String summary, String line1, String line2, int icon, in Condition() method in Condition
121 public Condition(Parcel source) { in Condition() method in Condition
122 this((Uri)source.readParcelable(Condition.class.getClassLoader()), in Condition()
148 return new StringBuilder(Condition.class.getSimpleName()).append('[') in toString()
179 if (!(o instanceof Condition)) return false; in equals()
181 final Condition other = (Condition) o; in equals()
202 public Condition copy() { in copy()
207 return new Condition(parcel); in copy()
[all …]
DIConditionListener.aidl20 import android.service.notification.Condition;
24 void onConditionsReceived(in Condition[] conditions); in onConditionsReceived()
DZenModeConfig.java528 public static Condition readConditionXml(XmlPullParser parser) { in readConditionXml()
538 return new Condition(id, summary, line1, line2, icon, state, flags); in readConditionXml()
545 public static void writeConditionXml(Condition c, XmlSerializer out) throws IOException { in writeConditionXml()
697 public static Condition toTimeCondition(Context context, int minutesFromNow, int userHandle) { in toTimeCondition()
701 public static Condition toTimeCondition(Context context, int minutesFromNow, int userHandle, in toTimeCondition()
708 public static Condition toTimeCondition(Context context, long time, int minutes, in toTimeCondition()
739 return new Condition(id, summary, line1, line2, 0, Condition.STATE_TRUE, in toTimeCondition()
740 Condition.FLAG_RELEVANT_NOW); in toTimeCondition()
743 public static Condition toNextAlarmCondition(Context context, long now, long alarm, in toNextAlarmCondition()
749 return new Condition(id, "", line1, "", 0, Condition.STATE_TRUE, in toNextAlarmCondition()
[all …]
DConditionProviderService.java136 public final void notifyCondition(Condition condition) { in notifyCondition()
138 notifyConditions(new Condition[]{ condition }); in notifyCondition()
146 public final void notifyConditions(Condition... conditions) { in notifyConditions()
/frameworks/base/libs/hwui/thread/
DBarrier.h27 Barrier(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mOpened(false) { } in mType()
44 Condition::WakeUpType mType;
47 mutable Condition mCondition;
DSignal.h29 Signal(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mSignaled(false) { } in mType()
49 Condition::WakeUpType mType;
52 mutable Condition mCondition;
DFuture.h30 Future(Condition::WakeUpType type = Condition::WAKE_UP_ONE): mBarrier(type), mResult() { } in mBarrier()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java34 import android.service.notification.Condition;
113 private Condition mExitCondition;
120 private Condition mSessionExitCondition;
121 private Condition[] mConditions;
122 private Condition mTimeCondition;
130 mForeverId = Condition.newId(mContext).appendPath("forever").build(); in ZenModePanel()
254 private void setSessionExitCondition(Condition condition) { in setSessionExitCondition()
340 private void setExitCondition(Condition exitCondition) { in setExitCondition()
347 private static Uri getConditionId(Condition condition) { in getConditionId()
351 private Uri getRealConditionId(Condition condition) { in getRealConditionId()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCaptureSequencer.h84 Condition mStartCaptureSignal;
89 Condition mNewNotifySignal;
94 Condition mNewFrameSignal;
100 Condition mNewCaptureSignal;
105 Condition mShutterNotifySignal;
136 Condition mStateChanged;
/frameworks/base/services/core/java/com/android/server/notification/
DEventConditionProvider.java34 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()
287 private Condition createCondition(Uri id, int state) { in createCondition()
291 return new Condition(id, summary, line1, line2, 0, state, Condition.FLAG_RELEVANT_ALWAYS); in createCondition()
DConditionProviders.java30 import android.service.notification.Condition;
170 private Condition[] removeDuplicateConditions(String pkg, Condition[] conditions) { in removeDuplicateConditions()
173 final ArrayMap<Uri, Condition> valid = new ArrayMap<Uri, Condition>(N); in removeDuplicateConditions()
184 final Condition[] rt = new Condition[valid.size()]; in removeDuplicateConditions()
208 public void notifyConditions(String pkg, ManagedServiceInfo info, Condition[] conditions) { in notifyConditions()
216 final Condition c = conditions[i]; in notifyConditions()
224 final Condition c = conditions[i]; in notifyConditions()
241 public Condition findCondition(ComponentName component, Uri conditionId) { in findCondition()
367 public Condition condition;
388 void onConditionChanged(Uri id, Condition condition); in onConditionChanged()
DCountdownConditionProvider.java27 import android.service.notification.Condition;
126 notifyCondition(newCondition(mTime, Condition.STATE_FALSE)); in onSubscribe()
151 notifyCondition(newCondition(time, Condition.STATE_FALSE)); in onReceive()
157 private static final Condition newCondition(long time, int state) { in newCondition()
158 return new Condition(ZenModeConfig.toCountdownConditionId(time), in newCondition()
159 "", "", "", 0, state,Condition.FLAG_RELEVANT_NOW); in newCondition()
DScheduleConditionProvider.java28 import android.service.notification.Condition;
118 notifyCondition(conditionId, Condition.STATE_FALSE, "badCondition"); in onSubscribe()
153 notifyCondition(conditionId, Condition.STATE_TRUE, "meetsSchedule"); in evaluateSubscriptions()
156 notifyCondition(conditionId, Condition.STATE_FALSE, "!meetsSchedule"); in evaluateSubscriptions()
228 + " " + Condition.stateToString(state) in notifyCondition()
233 private Condition createCondition(Uri id, int state) { in createCondition()
237 return new Condition(id, summary, line1, line2, 0, state, Condition.FLAG_RELEVANT_ALWAYS); in createCondition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java35 import android.service.notification.Condition;
58 private final LinkedHashMap<Uri, Condition> mConditions = new LinkedHashMap<Uri, Condition>();
192 private void fireConditionsChanged(Condition[] conditions) { in fireConditionsChanged()
210 private void updateConditions(Condition[] conditions) { in updateConditions()
212 for (Condition c : conditions) { in updateConditions()
213 if ((c.flags & Condition.FLAG_RELEVANT_NOW) == 0) continue; in updateConditions()
217 mConditions.values().toArray(new Condition[mConditions.values().size()])); in updateConditions()
233 public void onConditionsReceived(Condition[] conditions) {
DZenModeController.java21 import android.service.notification.Condition;
42 public void onConditionsChanged(Condition[] conditions) {} in onConditionsChanged()
/frameworks/base/libs/hwui/renderthread/
DRenderTask.h25 class Condition; variable
62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) in SignalingRenderTask()
69 Condition* mSignal;
/frameworks/native/libs/gui/tests/
DDisconnectWaiter.h72 Condition mDisconnectCondition;
75 Condition mFrameCondition;
/frameworks/av/include/media/stagefright/
DMediaAdapter.h62 Condition mBufferReadCond;
64 Condition mBufferReturnedCond;
DCameraSource.h167 Condition mFrameAvailableSignal;
239 Condition mFrameAvailableCondition;
240 Condition mFrameCompleteCondition;
268 Condition mMemoryBaseAvailableCond;
DAudioSource.h77 Condition mFrameAvailableCondition;
78 Condition mFrameEncodingCompletionCondition;
/frameworks/base/tools/aapt/
DWorkQueue.h107 Condition mWorkChangedCondition;
108 Condition mWorkDequeuedCondition;
/frameworks/base/core/java/android/speech/tts/
DSynthesisPlaybackQueueItem.java23 import java.util.concurrent.locks.Condition;
46 private final Condition mReadReady = mListLock.newCondition();
47 private final Condition mNotFull = mListLock.newCondition();
/frameworks/av/include/media/stagefright/foundation/
DALooper.h73 Condition mQueueChangedCondition;
86 Condition mRepliesCondition;
/frameworks/av/cmds/screenrecord/
DOverlay.h105 Condition mStartCond;
116 Condition mEventCond;
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.h230 Condition mStatusChanged;
603 Condition mRequestSignal;
619 Condition mDoPauseSignal;
621 Condition mPausedSignal;
629 Condition mLatestRequestSignal;
801 Condition mResultSignal;

12345