Searched refs:mMediaScannerConnection (Results 1 – 2 of 2) sorted by relevance
41 private MockMediaScannerConnection mMediaScannerConnection; field in MediaScannerConnectionTest64 if (mMediaScannerConnection != null) { in tearDown()65 mMediaScannerConnection.disconnect(); in tearDown()66 mMediaScannerConnection = null; in tearDown()72 mMediaScannerConnection = new MockMediaScannerConnection(getContext(), in testMediaScannerConnection()75 assertFalse(mMediaScannerConnection.isConnected()); in testMediaScannerConnection()78 mMediaScannerConnection.connect(); in testMediaScannerConnection()81 mMediaScannerConnection.disconnect(); in testMediaScannerConnection()85 mMediaScannerConnection.connect(); in testMediaScannerConnection()89 mMediaScannerConnection.scanFile(mMediaFile.getAbsolutePath(), MEDIA_TYPE); in testMediaScannerConnection()[all …]
73 private MockMediaScannerConnection mMediaScannerConnection; field in MediaScannerTest137 if (mMediaScannerConnection != null) { in cleanup()138 mMediaScannerConnection.disconnect(); in cleanup()139 mMediaScannerConnection = null; in cleanup()148 mMediaScannerConnection = new MockMediaScannerConnection(getContext(), in testLocalizeRingtoneTitles()151 assertFalse(mMediaScannerConnection.isConnected()); in testLocalizeRingtoneTitles()154 mMediaScannerConnection.connect(); in testLocalizeRingtoneTitles()160 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()177 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()188 mMediaScannerConnection.disconnect(); in testLocalizeRingtoneTitles()[all …]