/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollbarHelper.java | 31 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollOffset() argument 33 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollOffset() 37 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset() 38 lm.getPosition(endChild)); in computeScrollOffset() 39 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset() 40 lm.getPosition(endChild)); in computeScrollOffset() 49 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset() 50 - lm.getPosition(endChild)) + 1; in computeScrollOffset() 62 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollExtent() argument 64 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollExtent() [all …]
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
D | ScrollbarHelper.java | 30 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollOffset() argument 32 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollOffset() 36 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset() 37 lm.getPosition(endChild)); in computeScrollOffset() 38 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset() 39 lm.getPosition(endChild)); in computeScrollOffset() 48 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset() 49 - lm.getPosition(endChild)) + 1; in computeScrollOffset() 61 View startChild, View endChild, RecyclerView.LayoutManager lm, in computeScrollExtent() argument 63 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollExtent() [all …]
|
D | ItemTouchHelper.java | 733 RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in scrollIfNecessary() local 739 lm.calculateItemDecorationsForChild(mSelected.itemView, mTmpRect); in scrollIfNecessary() 740 if (lm.canScrollHorizontally()) { in scrollIfNecessary() 754 if (lm.canScrollVertically()) { in scrollIfNecessary() 803 final RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in findSwapTargets() local 804 final int childCount = lm.getChildCount(); in findSwapTargets() 806 View other = lm.getChildAt(i); in findSwapTargets() 936 final RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in findSwipedView() local 949 if (absDx > absDy && lm.canScrollHorizontally()) { in findSwipedView() 951 } else if (absDy > absDx && lm.canScrollVertically()) { in findSwipedView()
|
/frameworks/base/core/java/android/app/ |
D | FragmentHostCallback.java | 255 LoaderManagerImpl lm = (LoaderManagerImpl) mAllLoaderManagers.get(who); in inactivateFragment() local 256 if (lm != null && !lm.mRetaining) { in inactivateFragment() 257 lm.doDestroy(); in inactivateFragment() 318 LoaderManagerImpl lm = loaders[i]; in reportLoaderStart() local 319 lm.finishRetain(); in reportLoaderStart() 320 lm.doReportStart(); in reportLoaderStart() 329 LoaderManagerImpl lm = (LoaderManagerImpl) mAllLoaderManagers.get(who); in getLoaderManager() local 330 if (lm == null && create) { in getLoaderManager() 331 lm = new LoaderManagerImpl(who, this, started); in getLoaderManager() 332 mAllLoaderManagers.put(who, lm); in getLoaderManager() [all …]
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | RecyclerViewLayoutTest.java | 260 final LayoutAllLayoutManager lm = new LayoutAllLayoutManager(true); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() local 263 lm.expectLayouts(1); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 264 rv.setLayoutManager(lm); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 267 lm.waitForLayout(2); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 269 lm.onAdapterChagnedCallCount = 0; in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 270 lm.onItemsChangedCallCount = 0; in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 272 lm.expectLayouts(1); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 281 lm.waitForLayout(2); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 283 assertEquals(2, lm.onAdapterChagnedCallCount); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() 284 assertEquals(1, lm.onItemsChangedCallCount); in setAdapter_afterSwapAdapter_callsCorrectLmMethods() [all …]
|
D | BaseRecyclerViewAnimationsTest.java | 244 AnimationLayoutManager lm, RecyclerView.State state) { in beforePreLayout() argument 246 for (int i = 0; i < lm.getChildCount(); i++) { in beforePreLayout() 247 View v = lm.getChildAt(i); in beforePreLayout() 248 if (lm.getLp(v).isItemRemoved()) { in beforePreLayout() 254 void doLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm, in doLayout() argument 259 lm.detachAndScrapAttachedViews(recycler); in doLayout() 263 lm.layoutRange(recycler, start, start + count); in doLayout() 265 count, lm.getChildCount()); in doLayout() 266 lm.assertVisibleItemPositions(); in doLayout() 275 private void assertNoPreLayoutPosition(RecyclerView.LayoutManager lm) { in assertNoPreLayoutPosition() argument [all …]
|
D | RecyclerViewAnimationsTest.java | 138 void doLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm, in changeAndDisappearTest() 141 super.doLayout(recycler, lm, state); in changeAndDisappearTest() 143 lm.detachAndScrapAttachedViews(recycler); in changeAndDisappearTest() 151 lm.addDisappearingView(view); in changeAndDisappearTest() 229 AnimationLayoutManager lm, RecyclerView.State state) { in dontLayoutReusedViewWithoutPredictive() 282 AnimationLayoutManager lm, RecyclerView.State state) { in dontLayoutReusedViewWithPredictive() 284 super.beforePreLayout(recycler, lm, state); in dontLayoutReusedViewWithPredictive() 406 AnimationLayoutManager lm, RecyclerView.State state) { in reuseHiddenViewWithProperPredictive() 408 super.beforePreLayout(recycler, lm, state); in reuseHiddenViewWithProperPredictive() 718 AnimationLayoutManager lm, RecyclerView.State state) { in preLayoutPositionCleanup() [all …]
|
D | RecyclerViewAccessibilityLifecycleTest.java | 58 LayoutAllLayoutManager lm = new LayoutAllLayoutManager(); in dontDispatchChangeDuringLayout() local 91 recyclerView.setLayoutManager(lm); in dontDispatchChangeDuringLayout() 92 lm.expectLayouts(1); in dontDispatchChangeDuringLayout() 94 lm.waitForLayout(1); in dontDispatchChangeDuringLayout() 96 lm.expectLayouts(1); in dontDispatchChangeDuringLayout() 98 lm.waitForLayout(2); in dontDispatchChangeDuringLayout()
|
D | GridLayoutManagerWrapContentTest.java | 64 GridLayoutManager lm = new GridLayoutManager(getActivity(), mSpanCount); in createLayoutManager() local 65 lm.setOrientation(mHorizontal ? HORIZONTAL : VERTICAL); in createLayoutManager() 66 return lm; in createLayoutManager()
|
D | ItemAnimatorV2ApiTest.java | 111 AnimationLayoutManager lm, RecyclerView.State state) { in changeMovedOutsideWithPredictiveAndTwoViewHolders() 112 super.onLayoutChildren(recycler, lm, state); in changeMovedOutsideWithPredictiveAndTwoViewHolders() 158 AnimationLayoutManager lm, RecyclerView.State state) { in changeMovedOutsideWithPredictive() 159 super.onLayoutChildren(recycler, lm, state); in changeMovedOutsideWithPredictive()
|
D | BaseRecyclerViewInstrumentationTest.java | 208 TestLayoutManager lm = (TestLayoutManager) mRecyclerView.getLayoutManager(); in postExceptionToInstrumentation() local 210 if (lm.layoutLatch != null) { in postExceptionToInstrumentation() 211 while (lm.layoutLatch.getCount() > 0) { in postExceptionToInstrumentation() 212 lm.layoutLatch.countDown(); in postExceptionToInstrumentation()
|
D | RecyclerViewFocusRecoveryTest.java | 757 FocusLayoutManager lm = new FocusLayoutManager() { in testDoNotOverrideLayoutManagerRequestedFocus() local 777 setupBasic(adapter, lm); in testDoNotOverrideLayoutManagerRequestedFocus()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySavingStatsTest.java | 248 LogMaker lm = ac.getValue(); in assertLog() local 249 assertEquals(MetricsEvent.BATTERY_SAVER, lm.getCategory()); in assertLog() 251 lm.getTaggedData(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE)); in assertLog() 252 assertEquals(interactive ? 1 : 0, lm.getTaggedData(MetricsEvent.FIELD_INTERACTIVE)); in assertLog() 253 assertEquals(deltaTimeMs, lm.getTaggedData(MetricsEvent.FIELD_DURATION_MILLIS)); in assertLog() 256 (int) lm.getTaggedData(MetricsEvent.FIELD_START_BATTERY_UA) in assertLog() 257 - (int) lm.getTaggedData(MetricsEvent.FIELD_END_BATTERY_UA)); in assertLog() 259 (int) lm.getTaggedData(MetricsEvent.FIELD_START_BATTERY_PERCENT) in assertLog() 260 - (int) lm.getTaggedData(MetricsEvent.FIELD_END_BATTERY_PERCENT)); in assertLog()
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
D | GridLayoutManagerActivity.java | 38 GridLayoutManager lm = new GridLayoutManager(this, 3); in createLayoutManager() local 39 lm.setReverseLayout(true); in createLayoutManager() 40 lm.setSpanSizeLookup(mSpanSizeLookup); in createLayoutManager() 41 return lm; in createLayoutManager()
|
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
D | BandPredicate.java | 46 RecyclerView.LayoutManager lm = recyclerView.getLayoutManager(); in hasSupportedLayoutManager() local 47 return lm instanceof GridLayoutManager in hasSupportedLayoutManager() 48 || lm instanceof LinearLayoutManager; in hasSupportedLayoutManager()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 116 LocationManager lm = getLocationManager(); in initLocationListeners() local 120 List<String> locationProviders = lm.getAllProviders(); in initLocationListeners() 138 lm.requestLocationUpdates(providerName, minUpdateTime, in initLocationListeners() 241 LocationManager lm = getLocationManager(); in stopListeners() local 244 lm.removeUpdates(listener); in stopListeners()
|
/frameworks/base/location/java/android/location/ |
D | Geocoder.java | 61 ILocationManager lm = ILocationManager.Stub.asInterface(b); in isPresent() local 63 return lm.geocoderIsPresent(); in isPresent()
|
/frameworks/base/core/java/android/os/ |
D | PatternMatcher.java | 527 private static int matchChars(String match, int im, final int lm, int tokenType, 533 && matchChar(match, im + matched, lm, tokenType, parsedPattern, tokenStart, 541 private static boolean matchChar(String match, int im, final int lm, int tokenType, 543 if (im >= lm) { // we've overrun the string, no match
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 710 RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in scrollIfNecessary() local 716 lm.calculateItemDecorationsForChild(mSelected.itemView, mTmpRect); in scrollIfNecessary() 717 if (lm.canScrollHorizontally()) { in scrollIfNecessary() 731 if (lm.canScrollVertically()) { in scrollIfNecessary() 780 final RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in findSwapTargets() local 781 final int childCount = lm.getChildCount(); in findSwapTargets() 783 View other = lm.getChildAt(i); in findSwapTargets() 914 final RecyclerView.LayoutManager lm = mRecyclerView.getLayoutManager(); in findSwipedView() local 927 if (absDx > absDy && lm.canScrollHorizontally()) { in findSwipedView() 929 } else if (absDy > absDx && lm.canScrollVertically()) { in findSwipedView()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 294 LocationManager lm = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setGpsLocation() local 295 lm.setProviderEnabledForUser(GPS, enabled, Process.myUserHandle()); in setGpsLocation()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingHelper.java | 762 LogMaker lm = getChannelLog(channel, pkg); in deleteNotificationChannel() local 763 lm.setType(MetricsProto.MetricsEvent.TYPE_CLOSE); in deleteNotificationChannel() 764 MetricsLogger.action(lm); in deleteNotificationChannel()
|
/frameworks/compile/mclinker/include/mcld/Config/ |
D | Config.h.cmake | 219 /* Define to 1 if you have the `m' library (-lm). */
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 8928 LogMaker lm = new LogMaker(MetricsEvent.ACTION_PICTURE_IN_PICTURE_ASPECT_RATIO_CHANGED); in logPictureInPictureArgs() local 8929 lm.addTaggedData(MetricsEvent.PICTURE_IN_PICTURE_ASPECT_RATIO, params.getAspectRatio()); in logPictureInPictureArgs() 8930 MetricsLogger.action(lm); in logPictureInPictureArgs()
|