Home
last modified time | relevance | path

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

123

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMessage.java106 if (!c.isInstance(stack.peek())) { in expect()
109 + stack.peek().getClass().getName() + "'"); in expect()
122 ((Entity) stack.peek()).setBody(m); in startMessage()
147 ((Header) stack.peek()).addField(Field.parse(fieldData)); in field()
157 ((Entity) stack.peek()).setHeader(h); in endHeader()
166 Entity e = (Entity) stack.peek(); in startMultipart()
192 ((Entity) stack.peek()).setBody(body); in body()
209 ((Multipart) stack.peek()).addBodyPart(bodyPart); in startBodyPart()
231 ((Multipart) stack.peek()).setEpilogue(sb.toString()); in epilogue()
244 ((Multipart) stack.peek()).setPreamble(sb.toString()); in preamble()
/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 = mIn.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/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapResponseParser.java114 private int peek() throws IOException { in peek() method in ImapResponseParser
115 final int next = mIn.peek(); in peek()
259 final int ch = peek(); in parseResponse()
289 if (peek() == ' ') { in parseResponse()
295 final int next = peek(); in parseResponse()
298 if (peek() == ' ') { // Skip following space in parseResponse()
331 final int next = peek(); in parseElement()
366 final int ch = peek(); in parseBareString()
406 final int next = peek(); in parseElements()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DTextUtilities.java388 char peek = text.charAt(i + 1); in makeSnippetFromText() local
389 if (peek == '!' || peek == '-' || peek == '/' || Character.isLetter(peek)) { in makeSnippetFromText()
598 char peek = text.charAt(i + 1); in highlightTerms() local
599 if (peek == '!' || peek == '-' || peek == '/' || Character.isLetter(peek)) { in highlightTerms()
/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/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java531 if (!c.isInstance(stack.peek())) { in expect()
537 + stack.peek().getClass().getName() in expect()
550 ((Part) stack.peek()).setBody(m); in startMessage()
574 ((Part) stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
589 final Part e = (Part) stack.peek(); in startMultipart()
604 ((Part) stack.peek()).setBody(body); in body()
621 ((MimeMultipart) stack.peek()).addBodyPart(bodyPart); in startBodyPart()
655 ((MimeMultipart) stack.peek()).setPreamble(sb.toString()); in preamble()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java546 if (!c.isInstance(stack.peek())) { in expect()
548 + c.getName() + "' found '" + stack.peek().getClass().getName() + "'"); in expect()
560 ((Part)stack.peek()).setBody(m); in startMessage()
584 ((Part)stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
599 final Part e = (Part)stack.peek(); in startMultipart()
614 ((Part)stack.peek()).setBody(body); in body()
631 ((MimeMultipart)stack.peek()).addBodyPart(bodyPart); in startBodyPart()
665 ((MimeMultipart)stack.peek()).setPreamble(sb.toString()); in preamble()
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DDrawerController.java201 mCarMenuCallbacks.unsubscribe(mSubscriptionIds.peek(), mSubscriptionCallbacks); in onItemClicked()
247 subscribe(mSubscriptionIds.peek()); in setRootAndCallbacks()
277 mUiEntry.setTitleText(mTitles.peek()); in restoreState()
371 mCarMenuCallbacks.unsubscribe(mSubscriptionIds.peek(), mSubscriptionCallbacks); in clearMenu()
408 subscribe(mSubscriptionIds.peek()); in backOrClose()
411 CharSequence title = mTitles.peek(); in backOrClose()
597 if (mSubscriptionIds.isEmpty() || parentId.equals(mSubscriptionIds.peek())) { in onChildrenLoaded()
628 if (!mSubscriptionIds.isEmpty() && parentId.equals(mSubscriptionIds.peek())) { in onChildChanged()
/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/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/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java485 if (!stack.peek().isDirectory()) { in onStackLoaded()
538 mState.stack.peek().authority, in onCreateLoader()
539 mState.stack.peek().documentId); in onCreateLoader()
547 + DocumentInfo.debugString(mState.stack.peek())); in onCreateLoader()
553 mState.stack.peek(), in onCreateLoader()
564 + DocumentInfo.debugString(mState.stack.peek())); in onLoadFinished()
/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/UnifiedEmail/src/com/android/mail/ui/
DTwoPaneController.java545 protected void showConversationWithPeek(Conversation conversation, boolean peek) { in showConversationWithPeek() argument
546 showConversation(conversation, peek, false /* fromKeyboard */); in showConversationWithPeek()
554 private void showConversation(Conversation conversation, boolean peek, boolean fromKeyboard) { in showConversation() argument
557 if (!peek && conversation != null && conversation.equals(mCurrentConversation) in showConversation()
566 mCurrentConversationJustPeeking = peek; in showConversation()
567 super.showConversationWithPeek(conversation, peek); in showConversation()
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/app/
DCarDrawerActivity.java144 mAdapterStack.peek().setTitleChangeListener(null); in switchToAdapter()
290 setTitleAndSwitchToAdapter(mAdapterStack.peek()); in maybeHandleUpClick()
303 setTitleAndSwitchToAdapter(mAdapterStack.peek()); in cleanupStackAndShowRoot()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DIntegerArrayStream.java34 public int peek() { in peek() method in IntegerArrayStream
87 if (value != peek()) { in expect()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/avrcp/
DEvictingQueueTest.java29 assertEquals((long) e.peek(), (long) 2); in testEvictingQueue_maxItems()
46 assertEquals((long) e.peek(), (long) 1); in testEvictingQueue_frontDrop()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DDequeMap.java77 public V peek(K key) { in peek() method in DequeMap
82 return pile.peek(); in peek()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/form/
DMultiPagedForm.java78 Object lastLocation = mFlowStack.isEmpty() ? null : mFlowStack.peek(); in onBackPressed()
128 Object currentLocation = mFlowStack.peek(); in onActivityResult()
403 Object currentLocation = mFlowStack.peek(); in displayCurrentStep()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeferredHandler.java111 Runnable peek = mQueue.getFirst(); in scheduleNextLocked() local
112 if (peek instanceof IdleRunnable) { in scheduleNextLocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedMediaPlayer.java356 } else if (mPathStack.peek().equals(newPath) == true) { in changePath()
375 newPath = mPathStack.peek(); in changePath()
410 mMediaBrowser.subscribe(mPathStack.peek(), new ItemAttribSubscriber(itemAttr, mediaID)); in getItemAttr()
699 if (mPathStack.peek().equals(mRootFolderUid)) { in isBrowsableFolderUp()
/packages/apps/Launcher2/src/com/android/launcher2/
DDeferredHandler.java137 Runnable peek = p.first; in scheduleNextLocked() local
138 if (peek instanceof IdleRunnable) { in scheduleNextLocked()
/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/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java762 final DocumentInfo parent = mState.stack.peek(); in transferDocuments()
974 if (dst.equals(mState.stack.peek())) { in handleDropEvent()
1001 return mState.stack.peek(); in getDestination()
1068 final DocumentInfo parent = mState.stack.peek(); in canSetSelectionState()
1137 final DocumentInfo doc = mState.stack.peek(); in onRefresh()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentStackTest.java84 assertEquals(DIR_2, mStack.peek()); in testPushDocument_ModifiesStack()
92 assertEquals(DIR_1, mStack.peek()); in testPopDocument_ModifiesStack()

123