Home
last modified time | relevance | path

Searched refs:mDir (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java99 private final Direction mDir; field in SingleAxisSwipeDetector
111 mDir = dir; in SingleAxisSwipeDetector()
119 mDir = dir; in SingleAxisSwipeDetector()
147 return mDir.isPositive(mDir.extractDirection(mSubtractDisplacement)); in wasInitialTouchPositive()
154 Math.abs(mDir.extractOrthogonalDirection(displacement))); in shouldScrollStart()
155 if (Math.abs(mDir.extractDirection(displacement)) < minDisplacement) { in shouldScrollStart()
160 float displacementComponent = mDir.extractDirection(displacement); in shouldScrollStart()
165 return (mScrollDirections & DIRECTION_NEGATIVE) > 0 && mDir.isNegative(displacement); in canScrollNegative()
169 return (mScrollDirections & DIRECTION_POSITIVE) > 0 && mDir.isPositive(displacement); in canScrollPositive()
174 float startDisplacement = mDir.extractDirection(mSubtractDisplacement); in reportDragStartInternal()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java105 private File mDir; field in ModernMediaScannerTest
120 mDir = new File(context.getExternalMediaDirs()[0], "test_" + System.nanoTime()); in setUp()
121 mDir.mkdirs(); in setUp()
122 FileUtils.deleteContents(mDir); in setUp()
132 FileUtils.deleteContents(mDir); in tearDown()
549 final File music = new File(mDir, "Music"); in testFilter()
552 mModern.scanDirectory(mDir, REASON_UNKNOWN); in testFilter()
579 final File file = new File(mDir, "red.jpg"); in testScan_Common()
582 mModern.scanDirectory(mDir, REASON_UNKNOWN); in testScan_Common()
617 mModern.scanDirectory(mDir, REASON_UNKNOWN); in testScan_Common()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DResolvePlaylistTest.java48 private File mDir; field in ResolvePlaylistTest
63 mDir = new File(context.getExternalMediaDirs()[0], "test_" + System.nanoTime()); in setUp()
64 mDir.mkdirs(); in setUp()
65 FileUtils.deleteContents(mDir); in setUp()
75 FileUtils.deleteContents(mDir); in tearDown()
99 final File music = new File(mDir, "Music"); in doPlaylist()
108 mModern.scanDirectory(mDir, REASON_UNKNOWN); in doPlaylist()
142 mModern.scanDirectory(mDir, REASON_UNKNOWN); in doPlaylist()
157 final File soundtracks = new File(mDir, "Soundtracks"); in doPlaylist()
162 mModern.scanDirectory(mDir, REASON_UNKNOWN); in doPlaylist()
[all …]
DIsolatedContext.java49 private final File mDir; field in IsolatedContext
67 mDir = new File(base.getFilesDir(), tag); in IsolatedContext()
68 mDir.mkdirs(); in IsolatedContext()
69 FileUtils.deleteContents(mDir); in IsolatedContext()
132 return new File(mDir, name);
DIdleServiceTest.java91 private File mDir; field in IdleServiceTest
105 mDir = new File(context.getExternalMediaDirs()[0], "test_" + System.nanoTime()); in setUp()
106 mDir.mkdirs(); in setUp()
107 FileUtils.deleteContents(mDir); in setUp()
112 FileUtils.deleteContents(mDir); in tearDown()
457 final File file = MediaScannerTest.stage(R.raw.test_image, new File(mDir, expiredFileName)); in createExpiredTrashedItem()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DRequestSetPath.java28 SetPathDir mDir; field in RequestSetPath
34 mDir = SetPathDir.DOWN; in RequestSetPath()
43 mDir = SetPathDir.ROOT; in RequestSetPath()
45 mDir = SetPathDir.UP; in RequestSetPath()
54 switch (mDir) { in execute()