Searched defs:range (Results 251 - 275 of 658) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/ui/base/ime/
H A Ddummy_text_input_client.cc65 bool DummyTextInputClient::GetTextRange(gfx::Range* range) const {
69 bool DummyTextInputClient::GetCompositionTextRange(gfx::Range* range) const {
73 bool DummyTextInputClient::GetSelectionRange(gfx::Range* range) const {
77 bool DummyTextInputClient::SetSelectionRange(const gfx::Range& range) { argument
81 bool DummyTextInputClient::DeleteRange(const gfx::Range& range) { argument
85 bool DummyTextInputClient::GetTextFromRange(const gfx::Range& range, argument
H A Dremote_input_method_win.cc90 gfx::Range range; local
91 if (client->GetCompositionTextRange(&range)) {
92 for (uint32 i = 0; i < range.length(); ++i) {
/external/chromium_org/ui/gfx/
H A Dcanvas_skia.cc12 #include "ui/gfx/range/range.h"
87 // Returns a range in |text| to underline or Range::InvalidRange() if
100 // Elides |text| and adjusts |range| appropriately. If eliding causes |range|
101 // to no longer point to the same character in |text|, |range| is made invalid.
105 Range* range) {
107 (range->IsValid() ? text->at(range->start()) : 0);
109 if (!range
102 ElideTextAndAdjustRange(const FontList& font_list, int width, base::string16* text, Range* range) argument
254 Range range = StripAcceleratorChars(flags, &strings[i]); local
281 Range range = StripAcceleratorChars(flags, &adjusted_text); local
[all...]
H A Drender_text_mac.cc50 const Range range(cf_range.location, cf_range.location + cf_range.length);
51 spans.push_back(RenderText::FontSpan(font, range));
81 std::vector<Rect> RenderTextMac::GetSubstringBounds(const Range& range) { argument
212 const CFRange range = CFRangeMake(i, end - i); local
215 CFAttributedStringSetAttribute(attr_string, range,
223 CFAttributedStringSetAttribute(attr_string, range,
236 CFAttributedStringSetAttribute(attr_string, range, kCTFontAttributeName,
/external/chromium_org/ui/views/controls/
H A Dprefix_selector.cc9 #include "ui/gfx/range/range.h"
94 bool PrefixSelector::GetTextRange(gfx::Range* range) const {
95 *range = gfx::Range();
99 bool PrefixSelector::GetCompositionTextRange(gfx::Range* range) const {
100 *range = gfx::Range();
104 bool PrefixSelector::GetSelectionRange(gfx::Range* range) const {
105 *range = gfx::Range();
109 bool PrefixSelector::SetSelectionRange(const gfx::Range& range) { argument
113 bool PrefixSelector::DeleteRange(const gfx::Range& range) { argument
117 GetTextFromRange(const gfx::Range& range, base::string16* text) const argument
[all...]
H A Dstyled_label.cc89 return range.start() < other.range.start();
118 void StyledLabel::AddStyleRange(const gfx::Range& range, argument
120 DCHECK(!range.is_reversed());
121 DCHECK(!range.is_empty());
122 DCHECK(gfx::Range(0, text_.size()).Contains(range));
124 // Insert the new range in sorted order.
126 new_range.push_front(StyleRange(range, style_info));
154 if (i->style_info.is_link && !i->range.is_empty()) {
223 gfx::Range range(gf
[all...]
/external/clang/include/clang/AST/
H A DStmtIterator.h140 /// A range of statement iterators.
144 /// for (StmtRange range = stmt->children(); range; ++range)
157 assert(!empty() && "incrementing on empty range");
163 assert(!empty() && "incrementing on empty range");
169 friend const StmtIterator &begin(const StmtRange &range) { argument
170 return range.first;
172 friend const StmtIterator &end(const StmtRange &range) { argument
173 return range
187 ConstStmtRange(const StmtRange &range) argument
212 begin(const ConstStmtRange &range) argument
215 end(const ConstStmtRange &range) argument
[all...]
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h86 /// ReplaceText - This method replaces a range of characters in the input
133 /// \brief Given a source range, true to include previous inserts at the
134 /// beginning of the range as part of the range itself (true by default).
136 /// \brief Given a source range, true to include previous inserts at the
137 /// end of the range as part of the range itself (true by default).
169 /// getRangeSize - Return the size in bytes of the specified range if they
177 /// range. If the start or end of the range wa
220 RemoveText(CharSourceRange range, RewriteOptions opts = RewriteOptions()) argument
226 RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) argument
239 ReplaceText(SourceRange range, StringRef NewStr) argument
258 IncreaseIndentation(SourceRange range, SourceLocation parentIndent) argument
[all...]
/external/clang/lib/ARCMigrate/
H A DInternals.h32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
33 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const;
64 void remove(SourceRange range);
66 void replace(SourceRange range, StringRef text);
67 void replace(SourceRange range, SourceRange replacementRange);
71 void increaseIndentation(SourceRange range,
74 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
75 bool clearAllDiagnostics(SourceRange range) { argument
76 return clearDiagnostic(ArrayRef<unsigned>(), range);
78 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { argument
82 clearDiagnostic(unsigned ID1, unsigned ID2, unsigned ID3, SourceRange range) argument
88 hasDiagnostic(unsigned ID, SourceRange range) argument
92 hasDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) argument
[all...]
/external/clang/lib/Edit/
H A DCommit.cpp60 CharSourceRange range,
64 if (!canRemoveRange(range, RangeOffs, RangeLen)) {
77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) {
86 bool Commit::remove(CharSourceRange range) { argument
89 if (!canRemoveRange(range, Offs, Len)) {
94 addRemove(range.getBegin(), Offs, Len);
98 bool Commit::insertWrap(StringRef before, CharSourceRange range, argument
100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false,
103 if (range.isTokenRange())
104 commitableAfter = insertAfterToken(range
59 insertFromRange(SourceLocation loc, CharSourceRange range, bool afterToken, bool beforePreviousInsertions) argument
111 replace(CharSourceRange range, StringRef text) argument
127 replaceWithInner(CharSourceRange range, CharSourceRange replacementRange) argument
295 canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len) argument
[all...]
H A DEditedSource.cpp22 void EditsReceiver::remove(CharSourceRange range) { argument
23 replace(range, StringRef());
264 /// \brief Check the range that we are going to remove and:
266 /// -Insert a space if removing the range is going to mess up the source tokens.
273 return; // the range is not at the beginning of a token, keep the range.
315 CharSourceRange range = CharSourceRange::getCharRange(Loc, local
320 receiver.remove(range);
325 receiver.replace(range, text);
/external/clang/test/SemaCXX/
H A Dfor-range-examples.cpp51 value_range_detail::value_range<T> range(const T &a, const T &b) { return value_range_detail::value_range<T>(a, b); } function
54 value_range_detail::value_range_step<T> range(const T &a, const T &b, const T &step) { return value_range_detail::value_range_step<T>(a, b, step); } function
122 for (auto n : range(1, 5)) {
127 for (auto n : range(10, 100, 10)) {
199 // expected-error@-1 {{cannot build range expression with array function parameter 'arr' since parameter with array type 'int []' is treated as pointer type 'int *'}}
210 // expected-error@-1 {{cannot build range expression with array function parameter 'arr' since parameter with array type 'test6::vector []' is treated as pointer type 'test6::vector *'}}
/external/clang/tools/arcmt-test/
H A Darcmt-test.cpp73 static void printSourceRange(CharSourceRange range, ASTContext &Ctx,
96 void remove(CharSourceRange range) override {
99 printSourceRange(range, *Ctx, OS);
317 static void printSourceRange(CharSourceRange range, ASTContext &Ctx, argument
322 PresumedLoc PL = SM.getPresumedLoc(range.getBegin());
329 SourceLocation end = range.getEnd();
333 if (!range.isTokenRange())
/external/clang/tools/libclang/
H A DCIndexHigh.cpp516 CXSourceRange range) {
518 return INVOKE_BLOCK2(block, cursor, range);
514 _visitCursorAndRange(void *context, CXCursor cursor, CXSourceRange range) argument
H A DCXSourceLocation.cpp84 int clang_Range_isNull(CXSourceRange range) { argument
85 return clang_equalRanges(range, clang_getNullRange());
89 CXSourceLocation clang_getRangeStart(CXSourceRange range) { argument
91 if ((uintptr_t)range.ptr_data[0] & 0x1) {
92 CXSourceLocation Result = { { range.ptr_data[0], nullptr }, 0 };
96 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] },
97 range.begin_int_data };
101 CXSourceLocation clang_getRangeEnd(CXSourceRange range) { argument
103 if ((uintptr_t)range
[all...]
/external/clang/unittests/Lex/
H A DLexerTest.cpp303 CharSourceRange range = Lexer::makeFileCharRange( local
305 EXPECT_TRUE(range.isInvalid());
306 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc),
308 EXPECT_TRUE(range.isInvalid());
309 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc),
311 EXPECT_TRUE(!range.isTokenRange());
312 EXPECT_EQ(range.getAsRange(),
328 range = Lexer::makeFileCharRange(
332 range.getAsRange());
334 range
[all...]
/external/deqp/framework/referencerenderer/
H A DrrVertexAttrib.cpp74 const deUint32 range = (deUint32)((1ull << (sizeof(SrcScalarType)*8))-1); local
79 dst[Order::T0] = float(aligned[0]) / float(range);
80 if (size >= 2) dst[Order::T1] = float(aligned[1]) / float(range);
81 if (size >= 3) dst[Order::T2] = float(aligned[2]) / float(range);
82 if (size >= 4) dst[Order::T3] = float(aligned[3]) / float(range);
89 const deUint32 range = (deUint32)((1ull << (sizeof(SrcScalarType)*8-1))-1); local
94 dst[0] = de::max(-1.0f, float(aligned[0]) / float(range));
95 if (size >= 2) dst[1] = de::max(-1.0f, float(aligned[1]) / float(range));
96 if (size >= 3) dst[2] = de::max(-1.0f, float(aligned[2]) / float(range));
97 if (size >= 4) dst[3] = de::max(-1.0f, float(aligned[3]) / float(range));
104 const deUint32 range = (deUint32)((1ull << (sizeof(SrcScalarType)*8))-1); local
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fRasterizationTests.cpp131 float range[2] = { 0.0f, 0.0f }; local
132 m_context.getRenderContext().getFunctions().getFloatv(GL_ALIASED_LINE_WIDTH_RANGE, range);
134 if (m_lineWidth < range[0] || m_lineWidth > range[1])
137 m_testCtx.getLog() << tcu::TestLog::Message << "ALIASED_LINE_WIDTH_RANGE = [" << range[0] << ", " << range[1] << "]" << tcu::TestLog::EndMessage;
142 float range[2] = { 0.0f, 0.0f }; local
143 m_context.getRenderContext().getFunctions().getFloatv(GL_ALIASED_POINT_SIZE_RANGE, range);
145 if (m_pointSize < range[0] || m_pointSize > range[
[all...]
/external/easymock/src/org/easymock/
H A DMockControl.java254 * @param range
261 public void setReturnValue(Object value, Range range) { argument
265 callWithConvertedRange(setter, range);
351 public void setVoidCallable(Range range) { argument
353 callWithConvertedRange(setter, range);
382 public void setThrowable(Throwable throwable, Range range) { argument
386 callWithConvertedRange(setter, range);
485 * @param range range of number of calls
488 Range range) {
487 expectAndReturn(V1 ignored, V2 value, Range range) argument
494 expectAndReturn(int ignored, int value, Range range) argument
563 expectAndThrow(Object ignored, Throwable throwable, Range range) argument
637 callWithConvertedRange(IExpectationSetters<Object> setter, Range range) argument
[all...]
/external/easymock/src/org/easymock/internal/
H A DRecordState.java216 public void times(Range range) { argument
221 : Result.createReturnResult(null), range);
H A DReplayState.java131 public void times(Range range) { argument
/external/eigen/demos/opengl/
H A Dcamera.cpp218 float range = mFarDist - mNearDist; local
223 mProjectionMatrix(2,2) = -(mNearDist + mFarDist) / range;
225 mProjectionMatrix(2,3) = -2 * mNearDist * mFarDist / range;
/external/guava/guava/src/com/google/common/collect/
H A DRegularContiguousSet.java37 private final Range<C> range; field in class:RegularContiguousSet
39 RegularContiguousSet(Range<C> range, DiscreteDomain<C> domain) { argument
41 this.range = range;
46 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive)))
58 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive),
64 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive)))
88 return range.lowerBound.leastValueAbove(domain);
92 return range
144 @Override public Range<C> range() { method in class:RegularContiguousSet
148 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { method in class:RegularContiguousSet
173 final Range<C> range; field in class:RegularContiguousSet.SerializedForm
176 SerializedForm(Range<C> range, DiscreteDomain<C> domain) argument
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DRangeTest.java42 Range<Integer> range = Ranges.open(4, 8);
43 checkContains(range);
44 assertTrue(range.hasLowerBound());
45 assertEquals(4, (int) range.lowerEndpoint());
46 assertEquals(OPEN, range.lowerBoundType());
47 assertTrue(range.hasUpperBound());
48 assertEquals(8, (int) range.upperEndpoint());
49 assertEquals(OPEN, range.upperBoundType());
50 assertFalse(range.isEmpty());
51 assertEquals("(4\u20258)", range
128 checkContains(Range<Integer> range) argument
250 assertUnboundedBelow(Range<Integer> range) argument
264 assertUnboundedAbove(Range<Integer> range) argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dcollationweights.cpp184 CollationWeights::lengthenRange(WeightRange &range) const {
185 int32_t length=range.length+1;
186 range.start=setWeightTrail(range.start, length, minBytes[length]);
187 range.end=setWeightTrail(range.end, length, maxBytes[length]);
188 range.count*=countBytes(length);
189 range.length=length;
249 * range minimum length
276 // which would yield a middle range startin
526 WeightRange &range = ranges[rangeIndex]; local
[all...]

Completed in 951 milliseconds

<<11121314151617181920>>