Lines Matching refs:pattern
392 public void start(View layout, int[] pattern) { in start() argument
393 if (layout == null || pattern == null || pattern.length == 0) { in start()
405 mHighlightColor = pattern[0]; in start()
407 if (pattern.length > 1) { in start()
408 if (pattern[1] < 0 || pattern[1] > PULSATION_MAX_DURATION_MSEC) { in start()
409 Log.wtf(TAG, "Invalid pulsation duration: " + pattern[1]); in start()
411 mDuration = pattern[1]; in start()
416 if (pattern.length > 2) { in start()
417 if (pattern[2] < 0 || pattern[2] > PULSATION_MAX_ON_OFF_DURATION_MSEC) { in start()
418 Log.wtf(TAG, "Invalid pulsation on interval: " + pattern[2]); in start()
420 mOnInterval = pattern[2]; in start()
425 if (pattern.length > 3) { in start()
426 if (pattern[3] < 0 || pattern[3] > PULSATION_MAX_ON_OFF_DURATION_MSEC) { in start()
427 Log.wtf(TAG, "Invalid pulsation off interval: " + pattern[3]); in start()
429 mOffInterval = pattern[3]; in start()