Searched refs:queryIndex (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsQueryScheduler.java | 100 if (!shouldUseQueryBackoff(lastConfig.queryIndex, lastConfig.queryMode, in maybeRescheduleCurrentRun() 106 lastConfig.queryIndex, lastConfig.queryMode, now, minRemainingTtl, lastSentTime, in maybeRescheduleCurrentRun() 133 final int newQueryIndex = currentConfig.getConfigForNextRun(queryMode).queryIndex; in scheduleNextRun() 162 int queryIndex, int queryMode, long now, long minRemainingTtl, long lastSentTime, in calculateTimeToRun() argument 164 final long baseDelayInMs = getDelayBeforeTaskWithoutBackoff(queryIndex, queryMode); in calculateTimeToRun() 166 || shouldUseQueryBackoff(queryIndex, queryMode, numOfQueriesBeforeBackoff))) { in calculateTimeToRun() 184 private static int getBurstIndex(int queryIndex, int queryMode) { in getBurstIndex() argument 185 if (queryMode == PASSIVE_QUERY_MODE && queryIndex >= QUERIES_PER_BURST) { in getBurstIndex() 188 final int queryIndexAfterFirstBurst = queryIndex - QUERIES_PER_BURST; in getBurstIndex() 191 return queryIndex / QUERIES_PER_BURST; in getBurstIndex() [all …]
|
D | QueryTaskConfig.java | 33 final int queryIndex; field in QueryTaskConfig 36 QueryTaskConfig(int queryMode, int queryIndex) { in QueryTaskConfig() argument 38 this.queryIndex = queryIndex; in QueryTaskConfig() 50 final int newQueryIndex = queryIndex + 1; in getConfigForNextRun() 55 return (queryIndex % (UNSIGNED_SHORT_MAX_VALUE - 1)) + 1; in getTransactionId() 60 if (MdnsQueryScheduler.isFirstQueryInBurst(queryIndex, queryMode)) { in getExpectUnicastResponse() 64 return queryIndex == 0 || alwaysAskForUnicastResponse; in getExpectUnicastResponse()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
D | QueryFilteringUtil.java | 78 int queryIndex = 0; in nameMatchesT9Query() local 81 for (int i = 0; i < names.length && queryIndex < query.length(); i++) { in nameMatchesT9Query() 86 if (getDigit(names[i].charAt(0), context) == query.charAt(queryIndex)) { in nameMatchesT9Query() 87 queryIndex++; in nameMatchesT9Query() 91 return queryIndex == query.length(); in nameMatchesT9Query()
|