Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 619) sorted by relevance

12345678910>>...25

/frameworks/base/sax/java/android/sax/
DChildren.java34 Child current = children[index]; in getOrCreate() local
35 if (current == null) { in getOrCreate()
37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate()
38 children[index] = current; in getOrCreate()
39 return current; in getOrCreate()
44 if (current.hash == hash in getOrCreate()
45 && current.uri.compareTo(uri) == 0 in getOrCreate()
46 && current.localName.compareTo(localName) == 0) { in getOrCreate()
48 return current; in getOrCreate()
51 previous = current; in getOrCreate()
[all …]
DRootElement.java101 Element current = null; field in RootElement.Handler
123 + " within text element named " + current + ".", in startElement()
128 if (depth == current.depth + 1) { in startElement()
130 Children children = current.children; in startElement()
155 this.current = e; in start()
180 Element current = this.current; in endElement() local
183 if (depth == current.depth) { in endElement()
184 current.checkRequiredChildren(locator); in endElement()
187 if (current.endElementListener != null) { in endElement()
188 current.endElementListener.end(); in endElement()
[all …]
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp59 Category* current = m_pFile; in ~SymbolCategory() local
60 while (current != NULL) { in ~SymbolCategory()
61 Category* tmp = current; in ~SymbolCategory()
62 current = current->next; in ~SymbolCategory()
68 Category* current = m_pRegular; in add() local
72 while (current != NULL) { in add()
73 if (current->type == pTarget) { in add()
74 current->end++; in add()
77 if (!current->empty()) { in add()
78 std::swap(m_OutputSymbols[current->begin], in add()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DTransformUtils.java41 public static FrameImage2D makeMipMappedFrame(FrameImage2D current, int[] dimensions) { in makeMipMappedFrame() argument
45 if (current == null) { in makeMipMappedFrame()
48 current = Frame.create(imageType, pow2Dims).asFrameImage2D(); in makeMipMappedFrame()
49 } else if (!Arrays.equals(dimensions, current.getDimensions())) { in makeMipMappedFrame()
50 current.resize(pow2Dims); in makeMipMappedFrame()
52 return current; in makeMipMappedFrame()
55 public static FrameImage2D makeTempFrame(FrameImage2D current, int[] dimensions) { in makeTempFrame() argument
56 if (current == null) { in makeTempFrame()
59 current = Frame.create(imageType, dimensions).asFrameImage2D(); in makeTempFrame()
60 } else if (!Arrays.equals(dimensions, current.getDimensions())) { in makeTempFrame()
[all …]
DFilter.java41 public int current = STATE_UNPREPARED; field in Filter.State
44 return current == state; in check()
443 if (mState.current == State.STATE_OPEN) { in performPreparation()
592 if (mState.current == State.STATE_UNPREPARED) { in execute()
594 mState.current = State.STATE_PREPARED; in execute()
596 if (mState.current == State.STATE_PREPARED) { in execute()
599 mState.current = State.STATE_OPEN; in execute()
601 if (mState.current == State.STATE_OPEN) { in execute()
614 if (mState.current == State.STATE_OPEN) { in performClose()
617 mState.current = State.STATE_CLOSED; in performClose()
[all …]
/frameworks/base/libs/hwui/utils/
DStringUtils.cpp24 const char* current = spacedList; in split() local
25 const char* head = current; in split()
27 head = strchr(current, ' '); in split()
28 std::string s(current, head ? head - current : strlen(current)); in split()
32 current = head + 1; in split()
/frameworks/base/libs/hwui/
DPathTessellator.cpp214 const Vertex* current = &(perimeter[0]); in getStrokeVerticesFromPerimeter() local
215 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromPerimeter()
219 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getStrokeVerticesFromPerimeter()
226 current->x + totalOffset.x, in getStrokeVerticesFromPerimeter()
227 current->y + totalOffset.y); in getStrokeVerticesFromPerimeter()
230 current->x - totalOffset.x, in getStrokeVerticesFromPerimeter()
231 current->y - totalOffset.y); in getStrokeVerticesFromPerimeter()
233 current = next; in getStrokeVerticesFromPerimeter()
309 const Vertex* current = &(vertices[1]); in getStrokeVerticesFromUnclosedVertices() local
310 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromUnclosedVertices()
[all …]
DVertexBuffer.h117 TYPE* current = (TYPE*)mBuffer; variable
118 TYPE* end = current + vertexCount;
119 mBounds.set(current->x, current->y, current->x, current->y);
120 for (; current < end; current++) {
121 mBounds.expandToCover(current->x, current->y);
DAnimationContext.cpp38 AnimationHandle* current = mCurrentFrameAnimations.mNextHandle; in destroy() local
39 AnimatorManager& animators = current->mRenderNode->animators(); in destroy()
41 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in destroy()
71 AnimationHandle* current = mCurrentFrameAnimations.mNextHandle; in runRemainingAnimations() local
72 AnimatorManager& animators = current->mRenderNode->animators(); in runRemainingAnimations()
75 LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current, in runRemainingAnimations()
DSnapshot.cpp155 const Snapshot* current = this; in buildScreenSpaceTransform()
157 snapshotList.push(current); in buildScreenSpaceTransform()
158 current = current->previous; in buildScreenSpaceTransform()
159 } while (current); in buildScreenSpaceTransform()
165 const Snapshot* current = snapshotList[i]; in buildScreenSpaceTransform()
167 if (current->flags & kFlagIsFboLayer) { in buildScreenSpaceTransform()
169 outTransform->translate(current->layer->layer.left, current->layer->layer.top); in buildScreenSpaceTransform()
174 outTransform->multiply(*(current->transform)); in buildScreenSpaceTransform()
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java249 DeviceInfo current = mDevices.get(mProcessedDeviceCount); in handleReportPhysicalAddress()
250 if (current.mLogicalAddress != cmd.getSource()) { in handleReportPhysicalAddress()
251 Slog.w(TAG, "Unmatched address[expected:" + current.mLogicalAddress + ", actual:" + in handleReportPhysicalAddress()
257 current.mPhysicalAddress = HdmiUtils.twoBytesToInt(params); in handleReportPhysicalAddress()
258 current.mPortId = getPortId(current.mPhysicalAddress); in handleReportPhysicalAddress()
259 current.mDeviceType = params[2] & 0xFF; in handleReportPhysicalAddress()
261 tv().updateCecSwitchInfo(current.mLogicalAddress, current.mDeviceType, in handleReportPhysicalAddress()
262 current.mPhysicalAddress); in handleReportPhysicalAddress()
275 DeviceInfo current = mDevices.get(mProcessedDeviceCount);
276 if (current.mLogicalAddress != cmd.getSource()) {
[all …]
DActiveSourceHandler.java83 ActiveSource current = tv.getActiveSource(); in process() local
84 if (current.logicalAddress == getSourceAddress()) { in process()
86 current.logicalAddress, current.physicalAddress); in process()
88 tv.updateActiveSource(current); in process()
91 tv.startRoutingControl(newActive.physicalAddress, current.physicalAddress, true, in process()
/frameworks/base/tools/aapt2/util/
DUtil.cpp36 StringPiece::const_iterator current; in splitAndTransform() local
38 current = std::find(start, end, sep); in splitAndTransform()
39 parts.emplace_back(str.substr(start, current).toString()); in splitAndTransform()
44 start = current + 1; in splitAndTransform()
45 } while (current != end); in splitAndTransform()
315 const char16_t* current = start; in append() local
316 while (current != end) { in append()
318 switch (*current) { in append()
344 current++; in append()
345 Maybe<char16_t> c = parseUnicodeCodepoint(&current, end); in append()
[all …]
DFiles.cpp100 for (const char* current = start; current != end; ++current) { in mkdirs() local
101 if (*current == sDirSep && current != start) { in mkdirs()
102 StringPiece parentPath(start, current - start); in mkdirs()
115 for (const char* current = end - 1; current != start - 1; --current) { in getStem() local
116 if (*current == sDirSep) { in getStem()
117 return StringPiece(start, current - start); in getStem()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonEvent.java211 int current = 0; in unescapeArgs() local
216 if (rawEvent.charAt(current) == '\"') { in unescapeArgs()
218 current++; in unescapeArgs()
220 while (current < length) { in unescapeArgs()
223 wordEnd = current; in unescapeArgs()
232 String word = rawEvent.substring(current, wordEnd); in unescapeArgs()
233 current += word.length(); in unescapeArgs()
237 current++; // skip the trailing quote in unescapeArgs()
247 int nextSpace = rawEvent.indexOf(' ', current); in unescapeArgs()
248 int nextQuote = rawEvent.indexOf(" \"", current); in unescapeArgs()
[all …]
/frameworks/native/libs/ui/tests/
DRegion_test.cpp34 for (const Rect* current = r.begin(); current < r.end(); current++) { in verifyNoTJunctions() local
35 for (const Rect* other = current - 1; other >= r.begin(); other--) { in verifyNoTJunctions()
36 if (other->bottom < current->top) break; in verifyNoTJunctions()
37 if (other->bottom != current->top) continue; in verifyNoTJunctions()
38 checkVertTJunction(current, other); in verifyNoTJunctions()
40 for (const Rect* other = current + 1; other < r.end(); other++) { in verifyNoTJunctions()
41 if (other->top > current->bottom) break; in verifyNoTJunctions()
42 if (other->top != current->bottom) continue; in verifyNoTJunctions()
43 checkVertTJunction(current, other); in verifyNoTJunctions()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp379 r = sliceInt(&info->current.z, r, mtls->start.z, mtls->end.z); in SelectOuterSlice()
380 r = sliceInt(&info->current.lod, r, mtls->start.lod, mtls->end.lod); in SelectOuterSlice()
381 r = sliceInt(&info->current.face, r, mtls->start.face, mtls->end.face); in SelectOuterSlice()
382 r = sliceInt(&info->current.array[0], r, mtls->start.array[0], mtls->end.array[0]); in SelectOuterSlice()
383 r = sliceInt(&info->current.array[1], r, mtls->start.array[1], mtls->end.array[1]); in SelectOuterSlice()
384 r = sliceInt(&info->current.array[2], r, mtls->start.array[2], mtls->end.array[2]); in SelectOuterSlice()
385 r = sliceInt(&info->current.array[3], r, mtls->start.array[3], mtls->end.array[3]); in SelectOuterSlice()
390 return sliceInt(&info->current.z, sliceNum, mtls->start.z, mtls->end.z) == 0; in SelectZSlice()
406 for (fep.current.y = mtls->start.y; fep.current.y < mtls->end.y; in walk_general_foreach()
407 fep.current.y++) { in walk_general_foreach()
[all …]
/frameworks/native/opengl/libagl/
Dvertex.cpp36 c->current.color.r = 0x10000; in ogles_init_vertex()
37 c->current.color.g = 0x10000; in ogles_init_vertex()
38 c->current.color.b = 0x10000; in ogles_init_vertex()
39 c->current.color.a = 0x10000; in ogles_init_vertex()
190 c->current.color.r = gglFloatToFixed(r); in glColor4f()
191 c->currentColorClamped.r = gglClampx(c->current.color.r); in glColor4f()
192 c->current.color.g = gglFloatToFixed(g); in glColor4f()
193 c->currentColorClamped.g = gglClampx(c->current.color.g); in glColor4f()
194 c->current.color.b = gglFloatToFixed(b); in glColor4f()
195 c->currentColorClamped.b = gglClampx(c->current.color.b); in glColor4f()
[all …]
/frameworks/av/services/audioflinger/
DFastCapture.cpp89 const FastCaptureState * const current = (const FastCaptureState *) mCurrent; in onStateChange() local
92 const size_t frameCount = current->mFrameCount; in onStateChange()
98 if (current->mInputSourceGen != mInputSourceGen) { in onStateChange()
99 mInputSource = current->mInputSource; in onStateChange()
100 mInputSourceGen = current->mInputSourceGen; in onStateChange()
117 if (current->mPipeSinkGen != mPipeSinkGen) { in onStateChange()
118 mPipeSink = current->mPipeSink; in onStateChange()
119 mPipeSinkGen = current->mPipeSinkGen; in onStateChange()
161 const FastCaptureState * const current = (const FastCaptureState *) mCurrent; in onWork() local
164 const size_t frameCount = current->mFrameCount; in onWork()
[all …]
DFastMixer.cpp138 const FastMixerState * const current = (const FastMixerState *) mCurrent; in onStateChange() local
141 const size_t frameCount = current->mFrameCount; in onStateChange()
153 if (current->mOutputSinkGen != mOutputSinkGen) { in onStateChange()
154 mOutputSink = current->mOutputSink; in onStateChange()
155 mOutputSinkGen = current->mOutputSinkGen; in onStateChange()
223 mFastTracksGen = current->mFastTracksGen - 1; in onStateChange()
230 const unsigned currentTrackMask = current->mTrackMask; in onStateChange()
232 if (current->mFastTracksGen != mFastTracksGen) { in onStateChange()
241 const FastTrack* fastTrack = &current->mFastTracks[i]; in onStateChange()
260 const FastTrack* fastTrack = &current->mFastTracks[i]; in onStateChange()
[all …]
DLinearMap.h312 size_t current = previousPosition(i); in findU() local
316 diff = v - vArray[current]; in findU()
324 return uArray[current] + diff * extrapolation; in findU()
331 int32_t uStep = uArray[previous] - uArray[current]; // non-negative in findU()
332 int32_t vStep = vArray[previous] - vArray[current]; // positive in findU()
334 uArray[current] in findU()
335 : ((int64_t)diff * uStep + (vStep >> 1)) / vStep + uArray[current]; in findU()
344 previous = current; in findU()
/frameworks/rs/
DrsList.h33 current = const_cast<T*>(first); in List()
55 last = current; in push_back()
56 *current++ = value; in push_back()
58 if ((void*)current >= (void*)&currentBuffer->next) { in push_back()
62 current = &currentBuffer->data.typed; in push_back()
107 iterator end() const { return iterator(this, currentBuffer, current); } in end()
109 bool empty() const { return current == first; } in empty()
118 T* current;
/frameworks/av/media/libstagefright/foundation/
DADebug.cpp40 const char *next = value, *current; in GetLevelFromSettingsString() local
42 current = next; in GetLevelFromSettingsString()
43 next = strchr(current, ','); in GetLevelFromSettingsString()
48 while (isspace(*current)) { in GetLevelFromSettingsString()
49 ++current; in GetLevelFromSettingsString()
52 char *colon = strchr(current, ':'); in GetLevelFromSettingsString()
57 long level = strtol(current, &end, 10); in GetLevelFromSettingsString()
61 if (errno != 0 || end == current || (end != colon && *end != '\0' && end != next)) { in GetLevelFromSettingsString()
/frameworks/minikin/tests/
DWordBreakerTests.cpp43 EXPECT_EQ(0, breaker.current()); in TEST_F()
48 EXPECT_EQ(6, breaker.current()); in TEST_F()
53 EXPECT_EQ(11, breaker.current()); in TEST_F()
61 EXPECT_EQ(0, breaker.current()); in TEST_F()
77 EXPECT_EQ(0, breaker.current()); in TEST_F()
94 EXPECT_EQ(0, breaker.current()); in TEST_F()
115 EXPECT_EQ(0, breaker.current()); in TEST_F()
138 EXPECT_EQ(0, breaker.current()); in TEST_F()
153 EXPECT_EQ(0, breaker.current()); in TEST_F()
170 EXPECT_EQ(0, breaker.current()); in TEST_F()
[all …]
/frameworks/native/libs/gui/
DBufferQueueCore.cpp120 Fifo::const_iterator current(mQueue.begin()); in dump() local
121 while (current != mQueue.end()) { in dump()
124 current->mSlot, current->mGraphicBuffer.get(), in dump()
125 current->mCrop.left, current->mCrop.top, current->mCrop.right, in dump()
126 current->mCrop.bottom, current->mTransform, current->mTimestamp, in dump()
127 BufferItem::scalingModeName(current->mScalingMode)); in dump()
128 ++current; in dump()

12345678910>>...25