Searched refs:condition (Results 26 - 50 of 96) sorted by relevance

1234

/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DADebug.h59 #define CHECK(condition) \
61 !(condition), \
64 " CHECK(" #condition ") failed.")
133 #define CHECK_DBG(condition)
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DADebug.h59 #define CHECK(condition) \
61 !(condition), \
64 " CHECK(" #condition ") failed.")
133 #define CHECK_DBG(condition)
/frameworks/base/services/core/java/com/android/server/notification/
H A DScheduleConditionProvider.java50 * Built-in zen condition provider for daily scheduled time-based conditions.
172 Condition condition =
175 if (condition != null) {
176 conditionsToNotify.add(condition);
190 Condition condition;
192 condition = createCondition(conditionId, Condition.STATE_ERROR, "!invalidId");
194 return condition;
198 condition = createCondition(conditionId, Condition.STATE_FALSE, "snoozed");
200 condition = createCondition(conditionId, Condition.STATE_FALSE, "alarmCanceled");
203 condition
[all...]
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
H A DMaxDurationTracker.h43 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime,
57 void onConditionChanged(bool condition, const int64_t timestamp) override;
H A DOringDurationTracker.h42 void noteStart(const HashableDimensionKey& key, bool condition, const int64_t eventTime,
49 void onConditionChanged(bool condition, const int64_t timestamp) override;
65 // 2) which keys are paused (started but condition was false)
H A DMaxDurationTracker.cpp82 void MaxDurationTracker::noteStart(const HashableDimensionKey& key, bool condition, argument
93 VLOG("MaxDuration: key %s start condition %d", key.toString().c_str(), condition);
103 if (!condition) {
104 // event started, but we need to wait for the condition to become true.
250 // Now for each of the on-going event, check if the condition has changed for them.
266 VLOG("key: %s, condition: %d", pair.first.toString().c_str(), conditionMet);
271 void MaxDurationTracker::onConditionChanged(bool condition, const int64_t timestamp) { argument
273 noteConditionChanged(pair.first, condition, timestamp);
286 // If condition become
[all...]
H A DDurationTracker.h21 #include "condition/ConditionWizard.h"
32 kPaused = 2, // The event is started, but condition is false, clock is paused. When condition
47 // TODO: Optimize the way we track sliced condition in duration metrics.
48 // cache the HashableDimensionKeys we need to query the condition for this duration event.
89 virtual void noteStart(const HashableDimensionKey& key, bool condition,
96 virtual void onConditionChanged(bool condition, const int64_t timestamp) = 0;
/frameworks/base/telephony/java/android/telephony/ims/
H A DImsCallForwardInfo.java63 public ImsCallForwardInfo(int condition, int status, int toA, int serviceClass, String number, argument
65 mCondition = condition;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DIfElseFilter.java47 .addInputPort("condition", Signature.PORT_REQUIRED, FrameType.single(boolean.class))
57 FrameValue boolFrameValue = getConnectedInputPort("condition").pullFrame().asFrameValue();
58 boolean condition = (Boolean) boolFrameValue.getValue();
60 // If the condition is true, then we want to use the camera, else use the gallery
61 if (condition) {
/frameworks/support/leanback/src/main/java/androidx/leanback/util/
H A DStateMachine.java107 Transition(State fromState, State toState, Condition condition) { argument
108 if (condition == null) {
114 mCondition = condition;
291 public void addTransition(State fromState, State toState, Condition condition) { argument
292 Transition transition = new Transition(fromState, toState, condition);
/frameworks/base/cmds/statsd/src/metrics/
H A DEventMetricProducer.cpp62 mc.conditionId = link.condition();
135 const ConditionKey& conditionKey, bool condition,
137 if (!condition) {
133 onMatchedLogEventInternalLocked( const size_t matcherIndex, const MetricDimensionKey& eventKey, const ConditionKey& conditionKey, bool condition, const LogEvent& event) argument
H A DDurationMetricProducer.h24 #include "../condition/ConditionTracker.h"
57 const ConditionKey& conditionKeys, bool condition,
62 bool condition, const LogEvent& event);
71 // Internal interface to handle condition change.
74 // Internal interface to handle sliced condition change.
114 // Caches the current unsliced part condition.
H A DEventMetricProducer.h24 #include "../condition/ConditionTracker.h"
46 const ConditionKey& conditionKey, bool condition,
55 // Internal interface to handle condition change.
58 // Internal interface to handle sliced condition change.
H A DMetricProducer.h24 #include "condition/ConditionWizard.h"
99 void onConditionChanged(const bool condition, const int64_t eventTime) { argument
101 onConditionChangedLocked(condition, eventTime);
181 virtual void onConditionChangedLocked(const bool condition, const int64_t eventTime) = 0;
262 // True iff the condition dimensions equal to the sliced dimensions in the simple condition
263 // tracker. This field is always false for combinational condition trackers.
266 // True iff the metric to condition links cover all dimension fields in the condition tracker.
267 // This field is always false for combinational condition tracker
[all...]
H A DDurationMetricProducer.cpp115 mc.conditionId = link.condition();
179 // 1. If combination condition, logical operation is AND, only one sliced child predicate.
180 // 2. No condition in dimension
181 // 3. The links covers all dimension fields in the sliced child condition predicate.
182 void DurationMetricProducer::onSlicedConditionMayChangeLocked_opt1(bool condition, argument
206 // The condition change is from the unsliced predicates.
207 // We need to find out the true dimensions from the sliced predicate and flip their condition
208 // state based on the new unsliced condition state.
227 // Handle the condition change from the sliced predicate.
253 // 1. If combination condition, logica
255 onSlicedConditionMayChangeLocked_opt2(bool condition, const int64_t eventTime) argument
652 handleStartEvent(const MetricDimensionKey& eventKey, const ConditionKey& conditionKeys, bool condition, const LogEvent& event) argument
692 onMatchedLogEventInternalLocked( const size_t matcherIndex, const MetricDimensionKey& eventKey, const ConditionKey& conditionKeys, bool condition, const LogEvent& event) argument
752 bool condition; local
778 conditionKey, condition, event); local
794 condition, event); local
[all...]
H A DCountMetricProducer.h25 #include "../condition/ConditionTracker.h"
53 const ConditionKey& conditionKey, bool condition,
65 // Internal interface to handle condition change.
68 // Internal interface to handle sliced condition change.
/frameworks/base/cmds/statsd/src/
H A Dstatsd_config.proto156 optional int64 condition = 1;
173 optional int64 condition = 3;
183 optional int64 condition = 3;
199 optional int64 condition = 3;
224 optional int64 condition = 4;
252 optional int64 condition = 4;
/frameworks/base/core/java/android/service/notification/
H A DConditionProviderService.java115 * @param conditionId the Uri describing the criteria of the condition.
121 * @param conditionId the Uri describing the criteria of the deleted condition.
175 * @param condition the condition that has changed.
177 public final void notifyCondition(Condition condition) { argument
178 if (condition == null) return;
179 notifyConditions(new Condition[]{ condition });
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsUserLifecycleTests.java156 private void waitUntilTrue(String message, Condition condition, long timeout) throws Exception { argument
158 while (System.currentTimeMillis() <= deadLine && !condition.isTrue()) {
161 assertTrue(message, condition.isTrue());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
H A DVolumeDialogImplTest.java101 private void navigateViews(View view, Predicate<View> condition) { argument
105 navigateViews(viewGroup.getChildAt(i), condition);
113 + " failed test", condition.test(view));
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityManagerTest.java66 // TODO force another process into an error condition. How?
122 assertTrue((info.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) ||
123 (info.condition == ActivityManager.ProcessErrorStateInfo.NOT_RESPONDING));
/frameworks/base/cmds/statsd/
H A DAndroid.mk29 src/condition/CombinationConditionTracker.cpp \
30 src/condition/condition_util.cpp \
31 src/condition/SimpleConditionTracker.cpp \
32 src/condition/ConditionWizard.cpp \
33 src/condition/StateTracker.cpp \
197 tests/condition/CombinationConditionTracker_test.cpp \
198 tests/condition/SimpleConditionTracker_test.cpp \
199 tests/condition/StateTracker_test.cpp \
/frameworks/base/core/java/android/service/autofill/
H A DCustomDescription.java176 * Updates the {@link RemoteViews presentation template} when a condition is satisfied by
247 * @param condition condition used to trigger the updates.
249 * {@link #CustomDescription.Builder(RemoteViews) template presentation} when the condition
253 * @throws IllegalArgumentException if {@code condition} is not a class provided
256 public Builder batchUpdate(@NonNull Validator condition, @NonNull BatchUpdates updates) { argument
258 Preconditions.checkArgument((condition instanceof InternalValidator),
259 "not provided by Android System: " + condition);
264 mUpdates.add(new Pair<>((InternalValidator) condition, updates));
/frameworks/base/core/java/android/hardware/display/
H A DBrightnessConfiguration.java230 String condition = strictlyIncreasing ? "strictly increasing" : "monotonic";
231 throw new IllegalArgumentException(name + " values must be " + condition);
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/expr/
H A DExprWriters.kt74 val condition = with(myTrue.conditional) {
81 block("if ($condition)") {

Completed in 350 milliseconds

1234