Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 517) sorted by relevance

12345678910>>...21

/frameworks/base/test-runner/src/android/test/
DViewAsserts.java124 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned() argument
129 second.getLocationOnScreen(xy); in assertBaselineAligned()
130 int secondTop = xy[1] + second.getBaseline(); in assertBaselineAligned()
142 static public void assertRightAligned(View first, View second) { in assertRightAligned() argument
147 second.getLocationOnScreen(xy); in assertRightAligned()
148 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
161 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() argument
166 second.getLocationOnScreen(xy); in assertRightAligned()
167 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
179 static public void assertLeftAligned(View first, View second) { in assertLeftAligned() argument
[all …]
/frameworks/base/core/java/android/util/
DPair.java28 public final S second; field in Pair
36 public Pair(F first, S second) { in Pair() argument
38 this.second = second; in Pair()
55 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals()
65 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
70 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
/frameworks/av/include/media/
DInterpolator.h73 return this->rbegin()->second; in findY()
77 return high->second; in findY()
86 return high->first == x ? high->second : low->second; in findY()
88 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY()
102 return low->second + std::get<0>(memo) * t in findY()
133 sec = (high->second - low->second) / interval; in findY()
135 ? (low->second - low2->second) / (low->first - low2->first) in findY()
138 ? (high2->second - high->second) / (high2->first - high->first) in findY()
147 ? (high->second - low2->second) / (high->first - low2->first) in findY()
151 ? (high2->second - low->second) / (high2->first - low->first) in findY()
[all …]
DIMediaSource.h213 if (MediaBuffer::isDeadObject(p->second.first)) { in lookup()
219 ALOGW_IF(p->second.first.get() != mem.get(), "Mismatched buffers without reset"); in lookup()
220 return p->second.second; in lookup()
239 return p->second.second; in insert()
249 if (MediaBuffer::isDeadObject(it->second.first)) { in gc()
/frameworks/support/compat/java/android/support/v4/util/
DPair.java26 public final S second; field in Pair
34 public Pair(F first, S second) { in Pair() argument
36 this.second = second; in Pair()
53 return objectsEqual(p.first, first) && objectsEqual(p.second, second); in equals()
67 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
72 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java185 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeBetween() local
188 mEditable.append(first + extra + second); in testSanitizeBetween()
191 int secondStart = mEditable.toString().indexOf(second); in testSanitizeBetween()
192 int secondEnd = secondStart + second.trim().length(); in testSanitizeBetween()
199 assertEquals(editableString.indexOf(second), secondStart - extra.length()); in testSanitizeBetween()
200 assertEquals(editableString, (first + second)); in testSanitizeBetween()
222 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeEnd() local
225 mEditable.append(first + second); in testSanitizeEnd()
228 int secondStart = mEditable.toString().indexOf(second); in testSanitizeEnd()
229 int secondEnd = secondStart + second.trim().length(); in testSanitizeEnd()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, in eventsWithinTimeAndDistanceSlop() argument
28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
31 final double deltaMove = computeDistance(first, second, actionIndex); in eventsWithinTimeAndDistanceSlop()
38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { in computeDistance() argument
40 second.getX(pointerIndex), second.getY(pointerIndex)); in computeDistance()
48 public static boolean isSamePointerContext(MotionEvent first, MotionEvent second) { in isSamePointerContext() argument
49 return (first.getPointerIdBits() == second.getPointerIdBits() in isSamePointerContext()
51 == second.getPointerId(second.getActionIndex())); in isSamePointerContext()
/frameworks/av/media/libstagefright/omx/
DOMXStore.cpp58 attribute.value = attributePair.second; in OMXStore()
67 role.type = rolePair.second.type; in OMXStore()
68 role.isEncoder = rolePair.second.isEncoder; in OMXStore()
74 nodeList.reserve(rolePair.second.nodeList.size()); in OMXStore()
75 for (const auto& nodePair : rolePair.second.nodeList) { in OMXStore()
77 node.name = nodePair.second.name; in OMXStore()
80 attributeList.reserve(nodePair.second.attributeList.size()); in OMXStore()
81 for (const auto& attributePair : nodePair.second.attributeList) { in OMXStore()
84 attribute.value = attributePair.second; in OMXStore()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp350 mCurrentType == mCurrentCodec->second.typeMap.end(); in startElementHandler()
406 mCurrentType = mCurrentCodec->second.typeMap.end(); in endElementHandler()
498 attribute->second = value; in addSettingFromAttributes()
553 mCurrentType = mCurrentCodec->second.typeMap.insert( in addMediaCodecFromAttributes()
556 mCurrentType = mCurrentCodec->second.typeMap.end(); in addMediaCodecFromAttributes()
558 mCurrentCodec->second.isEncoder = encoder; in addMediaCodecFromAttributes()
559 mCurrentCodec->second.order = mCodecCounter++; in addMediaCodecFromAttributes()
566 mCurrentType = mCurrentCodec->second.typeMap.find(type); in addMediaCodecFromAttributes()
567 if (mCurrentType == mCurrentCodec->second.typeMap.end()) { in addMediaCodecFromAttributes()
573 mCurrentType = mCurrentCodec->second.typeMap.begin(); in addMediaCodecFromAttributes()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessor.java204 Palette.Swatch second) { in selectMutedCandidate() argument
206 boolean secondValid = hasEnoughPopulation(second); in selectMutedCandidate()
209 float secondSaturation = second.getHsl()[1]; in selectMutedCandidate()
210 float populationFraction = first.getPopulation() / (float) second.getPopulation(); in selectMutedCandidate()
214 return second; in selectMutedCandidate()
219 return second; in selectMutedCandidate()
224 private Palette.Swatch selectVibrantCandidate(Palette.Swatch first, Palette.Swatch second) { in selectVibrantCandidate() argument
226 boolean secondValid = hasEnoughPopulation(second); in selectVibrantCandidate()
229 int secondPopulation = second.getPopulation(); in selectVibrantCandidate()
232 return second; in selectVibrantCandidate()
[all …]
/frameworks/av/media/libstagefright/omx/1.0/
DOmxStore.cpp51 attribute.value = attributePair.second; in OmxStore()
62 role.type = rolePair.second.type; in OmxStore()
63 role.isEncoder = rolePair.second.isEncoder; in OmxStore()
69 nodeList.resize(rolePair.second.nodeList.size()); in OmxStore()
71 for (const auto& nodePair : rolePair.second.nodeList) { in OmxStore()
73 node.name = nodePair.second.name; in OmxStore()
76 attributeList.resize(nodePair.second.attributeList.size()); in OmxStore()
78 for (const auto& attributePair : nodePair.second.attributeList) { in OmxStore()
81 attribute.value = attributePair.second; in OmxStore()
/frameworks/base/tools/aapt/
DResourceFilter.cpp39 entry.second = mDefault.diff(entry.first); in parse()
42 entry.second &= ~ResTable_config::CONFIG_VERSION; in parse()
45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { in parse()
48 entry.second &= ~ResTable_config::CONFIG_DENSITY; in parse()
51 mConfigMask |= entry.second; in parse()
111 if ((diff & entry.second) == 0) { in match()
113 matchedAxis |= entry.second; in match()
114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match()
132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp53 eglDestroySurface(display(), it->second.first); in ~GLEnv()
54 if (it->second.second) { in ~GLEnv()
55 it->second.second->Destroy(); in ~GLEnv()
56 delete it->second.second; in ~GLEnv()
66 eglDestroyContext(display(), it->second); in ~GLEnv()
237 if (surface_window_pair->second) { in ReleaseSurfaceId()
238 surface_window_pair->second->Destroy(); in ReleaseSurfaceId()
239 delete surface_window_pair->second; in ReleaseSurfaceId()
254 surface_window_pair->second->InternalHandle()); in SetSurfaceTimestamp()
266 const WindowHandle* my_handle = it->second.second; in FindSurfaceIdForWindow()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestLayers.cpp44 testLayer.second.setZOrder(nextZOrder--); in Hwc2TestLayers()
54 dmp << testLayer.second.dump(); in dump()
62 testLayer.second.reset(); in reset()
74 if (itr->second.advance()) { in advance()
80 itr->second.reset(); in advance()
93 if (itr->second.advanceVisibleRegion()) { in advanceVisibleRegions()
99 itr->second.reset(); in advanceVisibleRegions()
145 return testLayer->second.getBufferArea(); in getBufferArea()
251 const hwc_rect_t displayFrame = testLayer.second.getDisplayFrame(); in setVisibleRegions()
260 testLayer.second.setVisibleRegion(visibleRegion); in setVisibleRegions()
[all …]
/frameworks/av/media/libnbaio/
DPerformanceAnalysis.cpp151 for (const auto &countPair : shortHist.second) { in processAndFlushRecentHists()
152 buckets[countPair.first] += countPair.second; in processAndFlushRecentHists()
207 mPeakTimestamps.emplace_back(it->second); in detectPeaks()
261 static_cast<long long>(outlier.first), static_cast<long long>(outlier.second)); in testFunction()
278 for (const auto &countPair : shortHist.second) { in reportPerformance()
279 buckets[countPair.first] += countPair.second; in reportPerformance()
290 int maxCount = it->second; in reportPerformance()
296 if (it->second > maxCount) { in reportPerformance()
297 maxCount = it->second; in reportPerformance()
314 body->appendFormat("%*d", colWidth, x.second); in reportPerformance()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java84 GuidedStepTestSupportFragment.Provider second = mockProvider(secondFragmentName); in nextAndBack() local
100 PollingCheck.waitFor(new EnterTransitionFinish(second)); in nextAndBack()
104 verify(second, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack()
105 verify(second, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack()
106 verify(second, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
107 verify(second, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
108 verify(second, times(1)).onCreateView(any(LayoutInflater.class), nullable(ViewGroup.class), in nextAndBack()
110 verify(second, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack()
111 verify(second, times(1)).onStart(); in nextAndBack()
112 verify(second, times(1)).onResume(); in nextAndBack()
[all …]
DGuidedStepFragmentTest.java81 GuidedStepTestFragment.Provider second = mockProvider(secondFragmentName); in nextAndBack() local
97 PollingCheck.waitFor(new EnterTransitionFinish(second)); in nextAndBack()
101 verify(second, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack()
102 verify(second, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack()
103 verify(second, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
104 verify(second, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack()
105 verify(second, times(1)).onCreateView(any(LayoutInflater.class), nullable(ViewGroup.class), in nextAndBack()
107 verify(second, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack()
108 verify(second, times(1)).onStart(); in nextAndBack()
109 verify(second, times(1)).onResume(); in nextAndBack()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java273 private void assertTasksEqual(JobInfo first, JobInfo second) { in assertTasksEqual() argument
274 assertEquals("Different task ids.", first.getId(), second.getId()); in assertTasksEqual()
275 assertEquals("Different components.", first.getService(), second.getService()); in assertTasksEqual()
276 assertEquals("Different periodic status.", first.isPeriodic(), second.isPeriodic()); in assertTasksEqual()
277 assertEquals("Different period.", first.getIntervalMillis(), second.getIntervalMillis()); in assertTasksEqual()
279 second.getInitialBackoffMillis()); in assertTasksEqual()
281 second.getBackoffPolicy()); in assertTasksEqual()
284 second.isRequireCharging()); in assertTasksEqual()
286 second.isRequireBatteryNotLow()); in assertTasksEqual()
288 second.isRequireDeviceIdle()); in assertTasksEqual()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DPair.h32 S second; variable
36 Pair(const Pair& o) : first(o.first), second(o.second) {} in Pair()
38 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair()
/frameworks/base/libs/hwui/utils/
DPair.h28 S second; member
31 Pair(const Pair& o) : first(o.first), second(o.second) { } in Pair()
32 Pair(const F& f, const S& s) : first(f), second(s) { } in Pair()
39 return second; in getSecond()
/frameworks/base/services/core/java/com/android/server/am/
DLaunchingTaskPositioner.java280 private static final boolean closeLeftTopCorner(Rect first, Rect second) { in closeLeftTopCorner() argument
281 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftTopCorner()
282 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftTopCorner()
285 private static final boolean closeRightTopCorner(Rect first, Rect second) { in closeRightTopCorner() argument
286 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE in closeRightTopCorner()
287 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeRightTopCorner()
290 private static final boolean closeLeftBottomCorner(Rect first, Rect second) { in closeLeftBottomCorner() argument
291 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftBottomCorner()
292 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftBottomCorner()
295 private static final boolean closeRightBottomCorner(Rect first, Rect second) { in closeRightBottomCorner() argument
[all …]
/frameworks/av/media/libmedia/include/media/
DIMediaSource.h213 if (MediaBuffer::isDeadObject(p->second.first)) { in lookup()
219 ALOGW_IF(p->second.first.get() != mem.get(), "Mismatched buffers without reset"); in lookup()
220 return p->second.second; in lookup()
239 return p->second.second; in insert()
249 if (MediaBuffer::isDeadObject(it->second.first)) { in gc()
/frameworks/base/core/java/com/android/internal/util/
DIntPair.java27 public static long of(int first, int second) { in of() argument
28 return (((long)first) << 32) | ((long)second & 0xffffffffL); in of()
35 public static int second(long intPair) { in second() method in IntPair
/frameworks/base/graphics/java/android/graphics/
DSumPathEffect.java25 public SumPathEffect(PathEffect first, PathEffect second) { in SumPathEffect() argument
27 second.native_instance); in SumPathEffect()
30 private static native long nativeCreate(long first, long second); in nativeCreate() argument
/frameworks/compile/mclinker/lib/LD/
DIdenticalCodeFolding.cpp82 Input* obj = (*kept).second.first; in foldIdenticalCode()
83 size_t kept_index = (*kept).second.second; in foldIdenticalCode()
91 Input* kept_obj = (*it).second.first; in foldIdenticalCode()
109 size_t kept_index = m_KeptSections[sect].second; in foldIdenticalCode()
174 FoldingCandidate(candidate->first, candidate->second, *obj)); in findCandidates()
199 for (ChecksumMap::iterator it = ret.first; it != ret.second; ++it) { in matchCandidates()
200 size_t kept_index = (*it).second; in matchCandidates()
202 m_KeptSections[pCandidateList[index].sect].second = kept_index; in matchCandidates()
289 llvm::format_object<size_t> kept_info("%x", (*it).second.second); in getContentWithVariables()

12345678910>>...21