/frameworks/base/core/java/android/text/ |
Spannable.java | 2 * Copyright (C) 2006 The Android Open Source Project 66 public Spannable newSpannable(CharSequence source) { 67 return new SpannableString(source);
|
/frameworks/base/core/java/android/view/ |
FocusFinderHelper.java | 2 * Copyright (C) 2008 The Android Open Source Project 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2); 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { 41 return mFocusFinder.beamBeats(direction, source, rect1, rect2); 52 public static int majorAxisDistance(int direction, Rect source, Rect dest) { 53 return FocusFinder.majorAxisDistance(direction, source, dest); 56 public static int majorAxisDistanceToFarEdge(int direction, Rect source, Rect dest) { 57 return FocusFinder.majorAxisDistanceToFarEdge(direction, source, dest);
|
/frameworks/base/core/java/android/view/inputmethod/ |
ExtractedText.java | 2 * Copyright (C) 2008 The Android Open Source Project 103 public ExtractedText createFromParcel(Parcel source) { 105 res.text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 106 res.startOffset = source.readInt(); 107 res.partialStartOffset = source.readInt(); 108 res.partialEndOffset = source.readInt(); 109 res.selectionStart = source.readInt(); 110 res.selectionEnd = source.readInt(); 111 res.flags = source.readInt();
|
ExtractedTextRequest.java | 2 * Copyright (C) 2008 The Android Open Source Project 69 public ExtractedTextRequest createFromParcel(Parcel source) { 71 res.token = source.readInt(); 72 res.flags = source.readInt(); 73 res.hintMaxLines = source.readInt(); 74 res.hintMaxChars = source.readInt();
|
CompletionInfo.java | 2 * Copyright (C) 2007-2008 The Android Open Source Project 53 private CompletionInfo(Parcel source) { 54 mId = source.readLong(); 55 mPosition = source.readInt(); 56 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 57 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 117 public CompletionInfo createFromParcel(Parcel source) { 118 return new CompletionInfo(source);
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
RunResult.java | 2 * Copyright (C) 2011 The Android Open Source Project 41 RunResult(Parcel source) { 42 name = source.readString(); 43 fgLongName = source.readString(); 44 bgLongName = source.readString(); 45 fgTime = source.readLong(); 46 fgOps = source.readLong(); 47 bgTime = source.readLong(); 48 bgOps = source.readLong();
|
/libcore/luni/src/main/java/java/beans/ |
IndexedPropertyChangeEvent.java | 34 * @param source 50 public IndexedPropertyChangeEvent(Object source, String propertyName, 52 super(source, propertyName, oldValue, newValue);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
PipeTest.java | 2 * Copyright (C) 2010 The Android Open Source Project 25 p.source().configureBlocking(false); 26 assertEquals(0, p.source().read(ByteBuffer.allocate(1)));
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockShortcutRefresher.java | 2 * Copyright (C) 2010 The Android Open Source Project 28 public void markShortcutRefreshed(Source source, String shortcutId) { 37 public boolean shouldRefresh(Source source, String shortcutId) {
|
/external/icu4c/common/ |
ucnv_u16.c | 51 const UChar *source; local 59 source=pArgs->source; 60 length=(int32_t)(pArgs->sourceLimit-source); 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { 93 ++source; 124 c=*source++; 129 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { 130 ++source; 144 c=*source++ 255 const uint8_t *source; local 650 const UChar *source; local 854 const uint8_t *source; local 1326 const char *source=pArgs->source; local [all...] |
/frameworks/av/media/libstagefright/ |
MediaExtractor.cpp | 2 * Copyright (C) 2009 The Android Open Source Project 54 const sp<DataSource> &source, const char *mime) { 60 if (!source->sniff(&tmp, &confidence, &meta)) { 84 return new DRMExtractor(source, originalMime); 96 ret = new MPEG4Extractor(source); 98 ret = new MP3Extractor(source, meta); 101 ret = new AMRExtractor(source); 103 ret = new FLACExtractor(source); 105 ret = new WAVExtractor(source); 107 ret = new OggExtractor(source); [all...] |
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
rtcpmuxfilter.cc | 5 * Redistribution and use in source and binary forms, with or without 8 * 1. Redistributions of source code must retain the above copyright notice, 43 bool RtcpMuxFilter::SetOffer(bool offer_enable, ContentSource source) { 47 state_ = (source == CS_LOCAL) ? ST_SENTOFFER : ST_RECEIVEDOFFER; 55 bool RtcpMuxFilter::SetAnswer(bool answer_enable, ContentSource source) { 57 if ((state_ == ST_SENTOFFER && source == CS_REMOTE) || 58 (state_ == ST_RECEIVEDOFFER && source == CS_LOCAL)) {
|
/external/webkit/Source/WebCore/webaudio/ |
AudioChannelSplitter.cpp | 4 * Redistribution and use in source and binary forms, with or without 7 * 1. Redistributions of source code must retain the above copyright 56 AudioBus* source = input(0)->bus(); local 57 ASSERT(source); 58 ASSERT_UNUSED(framesToProcess, framesToProcess == source->length()); 60 unsigned numberOfSourceChannels = source->numberOfChannels(); 68 // Split the channel out if it exists in the source. 70 destination->channel(0)->copyFrom(source->channel(i));
|
/frameworks/base/core/java/android/content/pm/ |
VerifierInfo.java | 2 * Copyright (C) 2011 The Android Open Source Project 57 private VerifierInfo(Parcel source) { 58 packageName = source.readString(); 59 publicKey = (PublicKey) source.readSerializable(); 75 public VerifierInfo createFromParcel(Parcel source) { 76 return new VerifierInfo(source);
|
/frameworks/support/v4/ics/android/support/v4/view/ |
PagerTitleStripIcs.java | 2 * Copyright (C) 2012 The Android Open Source Project 41 public CharSequence getTransformation(CharSequence source, View view) { 42 source = super.getTransformation(source, view); 43 return source != null ? source.toString().toUpperCase(mLocale) : null;
|
/libcore/luni/src/test/java/libcore/java/util/ |
EventObjectTest.java | 35 Object source = new Object(); local 36 assertSame(source, new EventObject(source).getSource()); 40 assertEquals("java.util.EventObject[source=x]", new EventObject("x").toString()); 46 Object source = new Object(); local 47 EventObject eventObject = new EventObject(source);
|
/external/chromium/base/ |
file_descriptor_shuffle.cc | 2 // Use of this source code is governed by a BSD-style license that can be 29 DCHECK(i->dest != j->dest) << "Both fd " << i->source 30 << " and " << j->source << " map to " << i->dest; 33 const bool is_identity = i->source == i->dest; 36 if (!is_identity && i->dest == j->source) { 48 j->source = temp_fd; 52 if (i->close && i->source == j->dest) 55 if (i->close && i->source == j->source) { 62 if (!delegate->Move(i->source, i->dest) [all...] |
/external/v8/src/x64/ |
lithium-gap-resolver-x64.cc | 2 // Redistribution and use in source and binary forms, with or without 6 // * Redistributions of source code must retain the above copyright 52 if (!move.IsEliminated() && !move.source()->IsConstantOperand()) { 60 ASSERT(moves_[i].source()->IsConstantOperand()); 71 // moves to perform, ignoring any move that is redundant (the source is 88 // which means that a call to PerformMove could change any source operand 97 ASSERT(moves_[index].source() != NULL); // Or else it will look eliminated. 102 // dependencies. Any unperformed, unpending move with a source the same 108 // Though PerformMove can change any source operand in the move graph, 110 // not miss any). Assume there is a non-blocking move with source 166 LOperand* source = moves_[index].source(); local 242 LOperand* source = moves_[index].source(); local [all...] |
/external/webkit/Source/WebCore/platform/text/ |
TextCodecUTF8.cpp | 4 * Redistribution and use in source and binary forms, with or without 7 * 1. Redistributions of source code must retain the above copyright 169 void TextCodecUTF8::handlePartialSequence(UChar*& destination, const uint8_t*& source, const uint8_t* end, bool flush, bool stopOnError, bool& sawError) 186 if (count - m_partialSequenceSize > end - source) { 190 memcpy(m_partialSequence + m_partialSequenceSize, source, end - source); 191 m_partialSequenceSize += end - source; 200 memcpy(m_partialSequence + m_partialSequenceSize, source, count - m_partialSequenceSize); 201 source += count - m_partialSequenceSize; 223 const uint8_t* source = reinterpret_cast<const uint8_t*>(bytes) local [all...] |
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/ |
Utf8ByteLengthFilterTest.java | 2 * Copyright (C) 2010 The Android Open Source Project 48 CharSequence source; local 55 // cut off the source CharSequence from beginning to fit the filter length. 56 source = "abc"; 60 dest.insert(1, source); 64 dest.replace(5, 8, source); 68 dest.insert(2, source); 79 source = "\u60a8\u597d"; // 2 Chinese chars == 6 bytes in UTF-8 80 dest.replace(8, 10, source); 83 dest.replace(0, 1, source); [all...] |
/hardware/qcom/media/mm-video/vidc/vdec/src/ |
frameparser.cpp | 4 Redistribution and use in source and binary forms, with or without 6 * Redistributions of source code must retain the above copyright 114 int frame_parse::parse_mpeg4_frame ( OMX_BUFFERHEADERTYPE *source, 123 if (source == NULL || dest == NULL || partialframe == NULL) 128 /*Calculate how many bytes are left in source and destination*/ 130 psource = source->pBuffer + source->nOffset; 132 source_len = source->nFilledLen; 138 if (source_len == 0 && (source->nFlags & 0x01)) 154 update_metadata(source->nTimeStamp,source->nFlags) [all...] |
/external/webkit/Source/WebCore/bindings/js/ |
StringSourceProvider.h | 4 * Redistribution and use in source and binary forms, with or without 8 * 1. Redistributions of source code must retain the above copyright 40 static PassRefPtr<StringSourceProvider> create(const String& source, const String& url, const TextPosition1& startPosition = TextPosition1::minimumPosition()) 42 return adoptRef(new StringSourceProvider(source, url, startPosition)); 49 const String& source() const { return m_source; } function in class:WebCore::StringSourceProvider 52 StringSourceProvider(const String& source, const String& url, const TextPosition1& startPosition) 55 , m_source(source) 63 inline JSC::SourceCode makeSource(const String& source, const String& url = String(), int firstLine = 1) 65 return JSC::SourceCode(StringSourceProvider::create(source, url), firstLine);
|
/external/webkit/Source/WebCore/inspector/front-end/ |
ScriptFormatterWorker.js | 4 * Redistribution and use in source and binary forms, with or without 8 * * Redistributions of source code must retain the above copyright 32 var source = event.data; 33 var formattedSource = beautify(source); 34 var mapping = buildMapping(source, formattedSource); 38 function beautify(source) 40 var ast = parse.parse(source); 50 function buildMapping(source, formattedSource) 59 var position = source.indexOf(match[2], lastPosition); 61 throw "No match found in original source for " + match[2] [all...] |
/external/webkit/Source/WebKit2/Platform/cg/ |
CGUtilities.cpp | 4 * Redistribution and use in source and binary forms, with or without 7 * 1. Redistributions of source code must retain the above copyright 33 void paintImage(CGContextRef context, CGImageRef image, CGPoint destination, CGRect source) 37 CGContextClipToRect(context, CGRectMake(destination.x, destination.y, source.size.width, source.size.height)); 43 CGFloat destX = destination.x - source.origin.x; 44 CGFloat destY = -static_cast<CGFloat>(imageHeight) - destination.y + source.origin.y; 50 void paintBitmapContext(CGContextRef context, CGContextRef bitmapContext, CGPoint destination, CGRect source) 53 paintImage(context, image.get(), destination, source);
|
/external/chromium/chrome/browser/debugger/ |
devtools_window.h | 2 // Use of this source code is governed by a BSD-style license that can be 63 const NotificationSource& source, 74 virtual void OpenURLFromTab(TabContents* source, 79 virtual void NavigationStateChanged(const TabContents* source, 81 virtual void AddNewContents(TabContents* source, 88 virtual void LoadingStateChanged(TabContents* source) {} 89 virtual void CloseContents(TabContents* source) {} 90 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} 91 virtual bool CanReloadContents(TabContents* source) const; 92 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { [all...] |