Lines Matching refs:id
77 final Uri id = mSubscriptions.keyAt(i);
80 if (!current.contains(id)) {
81 mConditionProviders.unsubscribeIfNecessary(component, id);
106 public void onConditionChanged(Uri id, Condition condition) {
107 if (DEBUG) Log.d(TAG, "onConditionChanged " + id + " " + condition);
110 boolean updated = updateCondition(id, condition, config.manualRule);
112 updated |= updateCondition(id, condition, automaticRule);
122 final Uri id = rule.conditionId;
125 if (sp.isValidConditionId(id)) {
126 mConditionProviders.ensureRecordExists(sp.getComponent(), id, sp.asInterface());
133 if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id);
135 mConditionProviders.ensureRecordExists(rule.component, id, cp);
144 current.add(id);
181 private boolean updateCondition(Uri id, Condition condition, ZenRule rule) {
182 if (id == null || rule == null || rule.conditionId == null) return false;
183 if (!rule.conditionId.equals(id)) return false;