Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 69) sorted by relevance

123

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapResponseParser.java87 private int peek() throws IOException { in peek() method in ImapResponseParser
88 final int next = in.peek(); in peek()
225 final int ch = peek(); in parseResponse()
255 if (peek() == ' ') { in parseResponse()
261 final int next = peek(); in parseResponse()
264 if (peek() == ' ') { // Skip following space in parseResponse()
297 final int next = peek(); in parseElement()
331 final int ch = peek(); in parseBareString()
378 final int next = peek(); in parseElements()
DDigestMd5Utils.java270 char result = peek(); in pop()
275 private char peek() { in peek() method in DigestMd5Utils.DigestMessageParser
280 while (peek() != c) { in goToNext()
292 if (peek() == '"') { in parseValue()
/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqliteTokenFinder.java52 private static char peek(String s, int index) { in peek() method in SqliteTokenFinder
77 final char ch = peek(sql, pos); in findTokens()
83 while (isAlNum(peek(sql, pos))) { in findTokens()
104 if (peek(sql, pos + 1) != ch) { in findTokens()
153 if (ch == '-' && peek(sql, pos + 1) == '-') { in findTokens()
164 if (ch == '/' && peek(sql, pos + 1) == '*') { in findTokens()
/packages/apps/Dialer/java/com/android/dialer/commandline/
DArguments.java106 if (!iterator.peek().startsWith("--")) { in parseFlags()
111 String peek = iterator.peek(); in parseFlags() local
112 if (peek.equals("--")) { in parseFlags()
116 if (peek.startsWith("--")) { in parseFlags()
119 if (iterator.hasNext() && !iterator.peek().startsWith("--")) { in parseFlags()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSQLiteTokenizer.java60 private static char peek(String s, int index) { in peek() method in SQLiteTokenizer
96 final char ch = peek(sql, pos); in tokenize()
102 while (isAlNum(peek(sql, pos))) { in tokenize()
123 if (peek(sql, pos + 1) != ch) { in tokenize()
175 if (ch == '-' && peek(sql, pos + 1) == '-') { in tokenize()
186 if (ch == '/' && peek(sql, pos + 1) == '*') { in tokenize()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSQLiteTokenizer.java60 private static char peek(String s, int index) { in peek() method in SQLiteTokenizer
96 final char ch = peek(sql, pos); in tokenize()
102 while (isAlNum(peek(sql, pos))) { in tokenize()
123 if (peek(sql, pos + 1) != ch) { in tokenize()
175 if (ch == '-' && peek(sql, pos + 1) == '-') { in tokenize()
186 if (ch == '/' && peek(sql, pos + 1) == '*') { in tokenize()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DSqlChecker.java125 private static char peek(String s, int index) { in peek() method in SqlChecker
147 final char ch = peek(sql, pos); in findTokens()
153 while (isAlNum(peek(sql, pos))) { in findTokens()
174 if (peek(sql, pos + 1) != ch) { in findTokens()
226 if (ch == '-' && peek(sql, pos + 1) == '-') { in findTokens()
237 if (ch == '/' && peek(sql, pos + 1) == '*') { in findTokens()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java193 if (state != mStack.peek().activityState) { in finishState()
200 + mStack.peek().activityState); in finishState()
207 ActivityState top = !mStack.isEmpty() ? mStack.peek().activityState : null; in finishState()
228 if (oldState != mStack.peek().activityState) { in switchState()
231 + mStack.peek().activityState); in switchState()
326 return mStack.peek().activityState; in getTopState()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java555 if (!c.isInstance(stack.peek())) { in expect()
561 + stack.peek().getClass().getName() in expect()
574 ((Part) stack.peek()).setBody(m); in startMessage()
598 ((Part) stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
613 final Part e = (Part) stack.peek(); in startMultipart()
628 ((Part) stack.peek()).setBody(body); in body()
645 ((MimeMultipart) stack.peek()).addBodyPart(bodyPart); in startBodyPart()
679 ((MimeMultipart) stack.peek()).setPreamble(sb.toString()); in preamble()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardRow.java120 keyAttr, mRowAttributesStack.peek(), mParams.mBaseWidth); in pushRowAttributes()
129 return mRowAttributesStack.peek().mDefaultKeyWidth; in getDefaultKeyWidth()
133 return mRowAttributesStack.peek().mDefaultKeyLabelFlags; in getDefaultKeyLabelFlags()
137 return mRowAttributesStack.peek().mDefaultBackgroundType; in getDefaultBackgroundType()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DIntegerArrayStreamTest.java31 assertEquals(1, stream.peek()); in testPeekConsume()
33 assertEquals(2, stream.peek()); in testPeekConsume()
60 assertEquals(5, stream.peek()); in testExpect()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java135 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testSpringOpenDirectory()
186 mHandler.deleteSelectedDocuments(docs, mEnv.state.stack.peek()); in testDeleteSelectedDocuments()
385 assertEquals(TestEnv.FILE_ARCHIVE, mEnv.state.stack.peek()); in testDocumentPicked_OpensArchives()
395 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.peek()); in testDocumentPicked_OpensDirectories()
663 Preconditions.checkNotNull(mEnv.state.stack.peek()); in testShowInspector_OverridesRootDocumentName()
665 DocumentInfo rootDoc = mEnv.state.stack.peek(); in testShowInspector_OverridesRootDocumentName()
683 Preconditions.checkNotNull(mEnv.state.stack.peek()); in testShowInspector_OverridesRootDocumentNameX()
685 DocumentInfo rootDoc = mEnv.state.stack.peek(); in testShowInspector_OverridesRootDocumentNameX()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentStackTest.java86 assertEquals(DIR_2, mStack.peek()); in testPushDocument_ModifiesStack()
94 assertEquals(DIR_1, mStack.peek()); in testPopDocument_ModifiesStack()
200 assertNotNull(mStack.peek().derivedUri); in testIsRecent()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DIntegerArrayStream.java34 public int peek() { in peek() method in IntegerArrayStream
91 if (value != peek()) { in expect()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructNlAttr.java47 public static StructNlAttr peek(ByteBuffer byteBuffer) { in peek() method in StructNlAttr
72 final StructNlAttr struct = peek(byteBuffer); in parse()
102 final StructNlAttr nlAttr = StructNlAttr.peek(byteBuffer); in findNextAttrOfType()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java588 final DocumentInfo top = stack.peek(); in openFolderInSearchResult()
624 if (currentDoc.equals(mState.stack.peek())) { in openChildContainer()
793 if (!stack.peek().isDirectory()) { in onStackLoaded()
901 DocumentInfo rootDoc = mState.stack.peek(); in onCreateLoader()
930 + DocumentInfo.debugString(mState.stack.peek())); in onCreateLoader()
948 + DocumentInfo.debugString(mState.stack.peek())); in onLoadFinished()
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentBufferQueue.java130 while (mQueue.peek() == null) { in close()
185 Entry<T> nextEntry = mQueue.peek(); in peekNext()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
DPgmImage.cpp127 while ( in.peek() == '#' ) in ReadPGM()
132 while ( in.peek() == '#' ) in ReadPGM()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java225 VehiclePropValue value = mPropertyHandler.peek(VehicleProperty.CLUSTER_REPORT_STATE); in testClusterReportState()
237 VehiclePropValue value = mPropertyHandler.peek(VehicleProperty.CLUSTER_REQUEST_DISPLAY); in testClusterRequestDisplay()
297 public synchronized VehiclePropValue peek(int property) { in peek() method in ClusterHomeManagerTest.ClusterPropertyHandler
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentStack.java116 public DocumentInfo peek() { in peek() method in DocumentStack
183 return peek().displayName; in getTitle()
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DValueMetricsTests.java456 .peek(MetricsUtils::assertBucketTimePresent) in testValueMetricWithConditionAndActivation()
457 .peek(bucketInfo -> assertThat(bucketInfo.getValuesCount()).isEqualTo(1)) in testValueMetricWithConditionAndActivation()
459 .peek(value -> assertThat(value.getIndex()).isEqualTo(0)) in testValueMetricWithConditionAndActivation()
DDurationMetricsTests.java207 .peek(durationNs -> assertThat(durationNs).isIn(Range.openClosed(0L, (long)1e9))) in testDurationMetricWithCondition()
296 .peek(durationNs -> assertThat(durationNs).isIn(Range.openClosed(0L, (long)1e9))) in testDurationMetricWithActivation()
469 .peek(durationNs -> assertThat(durationNs).isIn(Range.openClosed(0L, (long)1e9))) in testDurationMetricWithConditionAndActivation()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java147 && mEnv.getDisplayState().stack.peek() != null in update()
148 && mEnv.getDisplayState().stack.peek().isBlockedFromTree() in update()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DPeekableInputStream.java46 public int peek() throws IOException { in peek() method in PeekableInputStream
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DAtomTestCase.java1102 while (responseLines.peek() != null) { in getTelephonyDumpEntries()
1107 while (responseLines.peek() != null) { in getTelephonyDumpEntries()
1109 matcher = indentPattern.matcher(responseLines.peek()); in getTelephonyDumpEntries()
1110 if (responseLines.peek().length() == 0 || !matcher.matches()) { in getTelephonyDumpEntries()

123