Home
last modified time | relevance | path

Searched refs:mProvider (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java85 private TestableKeyguardSliceProvider mProvider; field in KeyguardSliceProviderTest
92 mProvider = new TestableKeyguardSliceProvider(); in setup()
93 mProvider.attachInfo(getContext(), null); in setup()
94 mProvider.initDependencies(mNotificationMediaManager, mStatusBarStateController); in setup()
101 mProvider.isRegistered()); in registersClockUpdate()
106 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice()
117 mProvider.onDozingChanged(true); in onBindSlice_readsMedia()
118 mProvider.onMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia()
119 mProvider.onBindSlice(mProvider.getUri()); in onBindSlice_readsMedia()
127 mProvider.mKeyguardUpdateMonitorCallback.onTimeZoneChanged(null); in cleansDateFormat()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DInsetsSourceProviderTest.java45 private InsetsSourceProvider mProvider; field in InsetsSourceProviderTest
50 mProvider = new InsetsSourceProvider(mSource, in setUp()
59 mProvider.setWindow(topBar, null); in testPostLayout()
60 mProvider.onPostLayout(); in testPostLayout()
61 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testPostLayout()
63 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout()
71 mProvider.setWindow(topBar, null); in testPostLayout_invisible()
72 mProvider.onPostLayout(); in testPostLayout_invisible()
73 assertEquals(Insets.NONE, mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_invisible()
81 mProvider.setWindow(topBar, in testPostLayout_frameProvider()
[all …]
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationService.java25 private FusedLocationProvider mProvider; field in FusedLocationService
29 if (mProvider == null) { in onBind()
30 mProvider = new FusedLocationProvider(this); in onBind()
31 mProvider.init(); in onBind()
34 return mProvider.getBinder(); in onBind()
39 if (mProvider != null) { in onDestroy()
40 mProvider.destroy(); in onDestroy()
41 mProvider = null; in onDestroy()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java49 private MtpDocumentsProvider mProvider; field in MtpDocumentsProviderTest
62 mProvider.shutdown(); in tearDown()
85 mProvider.resumeRootScanner(); in testOpenAndCloseDevice()
88 mProvider.openDevice(0); in testOpenAndCloseDevice()
91 mProvider.closeDevice(0); in testOpenAndCloseDevice()
98 mProvider.openDevice(1); in testOpenAndCloseErrorDevice()
103 assertEquals(0, mProvider.getOpenedDeviceRecordsCache().length); in testOpenAndCloseErrorDevice()
122 mProvider.resumeRootScanner(); in testOpenAndCloseErrorDevice()
124 mProvider.openDevice(0); in testOpenAndCloseErrorDevice()
147 mProvider.resumeRootScanner(); in testOpenDeviceOnDemand()
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DExportTestResolver.java23 private final ExportTestProvider mProvider; field in ExportTestResolver
25 mProvider = new ExportTestProvider(androidTestCase); in ExportTestResolver()
26 addProvider(VCardVerifier.VCARD_TEST_AUTHORITY, mProvider); in ExportTestResolver()
27 addProvider(RawContacts.CONTENT_URI.getAuthority(), mProvider); in ExportTestResolver() local
31 return mProvider.buildInputEntry(); in addInputContactEntry()
35 return mProvider; in getProvider()
DImportTestResolver.java28 private final ImportTestProvider mProvider; field in ImportTestResolver
31 mProvider = new ImportTestProvider(); in ImportTestResolver()
38 return mProvider.applyBatch(operations); in applyBatch()
42 mProvider.addExpectedContentValues(expectedContentValues); in addExpectedContentValues()
46 mProvider.verify(); in verify()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentResolver.java35 private BridgeContentProvider mProvider = null; field in BridgeContentResolver
43 if (mProvider == null) { in acquireProvider()
44 mProvider = new BridgeContentProvider(); in acquireProvider()
47 return mProvider; in acquireProvider()
52 if (mProvider == null) { in acquireExistingProvider()
53 mProvider = new BridgeContentProvider(); in acquireExistingProvider()
56 return mProvider; in acquireExistingProvider()
/frameworks/base/core/tests/coretests/src/android/provider/
DDocumentsProviderTest.java40 private TestDocumentsProvider mProvider; field in DocumentsProviderTest
51 mProvider = getProvider(); in setUp()
57 mProvider.nextPath = expected; in testFindDocumentPath_docUri()
70 mProvider.nextIsChildDocument = true; in testFindDocumentPath_treeUri()
73 mProvider.nextPath = expected; in testFindDocumentPath_treeUri()
84 mProvider.nextPath = new Path(null, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_throwsOnNonChildDocument()
95 mProvider.nextIsChildDocument = true; in testFindDocumentPath_treeUri_erasesNonNullRootId()
97 mProvider.nextPath = new Path(ROOT_ID, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_erasesNonNullRootId()
107 mProvider.nextIsChildDocument = true; in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
109 mProvider.nextPath = new Path( in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java96 PasspointProvider mProvider; field in PasspointProviderTest
140 PasspointConfiguration actualConfig = mProvider.getConfig(); in verifyInstalledConfig()
217 mProvider = createProvider(config); in verifyModifyOriginalConfig()
242 mProvider = createProvider(config); in verifyModifyRetrievedConfig()
247 PasspointConfiguration retrievedConfig = mProvider.getConfig(); in verifyModifyRetrievedConfig()
275 mProvider = createProvider(config); in installCertsAndKeysSuccess()
288 assertTrue(mProvider.installCertsAndKeys()); in installCertsAndKeysSuccess()
292 PasspointConfiguration curConfig = mProvider.getConfig(); in installCertsAndKeysSuccess()
299 assertTrue(mProvider.getCaCertificateAliases().equals( in installCertsAndKeysSuccess()
301 assertTrue(mProvider.getClientPrivateKeyAlias().equals(CLIENT_PRIVATE_KEY_ALIAS)); in installCertsAndKeysSuccess()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DMetricsFeatureProviderTest.java50 private MetricsFeatureProvider mProvider; field in MetricsFeatureProviderTest
56 mProvider = new MetricsFeatureProvider(); in setUp()
59 ReflectionHelpers.setField(mProvider, "mLoggerWriters", writers); in setUp()
64 mProvider.logDashboardStartIntent(mContext, null /* intent */, in logDashboardStartIntent_intentEmpty_shouldNotLog()
74 mProvider.logDashboardStartIntent(mContext, intent, MetricsEvent.SETTINGS_GESTURES); in logDashboardStartIntent_intentHasNoComponent_shouldLog()
88 mProvider.logDashboardStartIntent(mContext, intent, MetricsEvent.SETTINGS_GESTURES); in logDashboardStartIntent_intentIsExternal_shouldLog()
100 assertThat(mProvider.getAttribution(null /* activity */)) in getAttribution_noActivity_shouldReturnUnknown()
108 assertThat(mProvider.getAttribution(activity)) in getAttribution_notSet_shouldReturnUnknown()
119 assertThat(mProvider.getAttribution(activity)).isEqualTo(100); in getAttribution_set_shouldReturnAttribution()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPageContentView.java39 private PageContentProvider mProvider; field in PageContentView
76 return mProvider; in getPageContentProvider()
81 final boolean providerChanged = (mProvider == null) in init()
82 ? provider != null : !mProvider.equals(provider); in init()
96 mProvider = provider; in init()
106 if (mProvider == null) { in init()
117 && mProvider != null) { in requestPageContentIfNeeded()
119 mProvider.getPageContent(new RenderSpec(getWidth(), getHeight(), in requestPageContentIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockOptionsProviderTest.java59 private ClockOptionsProvider mProvider; field in ClockOptionsProviderTest
70 mProvider = new ClockOptionsProvider(() -> mClocks); in setUp()
85 assertThat(mProvider.getType(uri)).isEqualTo(MIME_TYPE_LIST_OPTIONS); in testGetType_listOptions()
96 assertThat(mProvider.getType(uri)).isEqualTo(MIME_TYPE_PNG); in testGetType_preview()
107 assertThat(mProvider.getType(uri)).isEqualTo(MIME_TYPE_PNG); in testGetType_thumbnail()
112 Cursor cursor = mProvider.query(mListOptionsUri, null, null, null); in testQuery_noClocks()
128 Cursor cursor = mProvider.query(mListOptionsUri, null, null, null); in testQuery_listOptions()
170 mProvider.openFile(uri, "r").close(); in testOpenFile_preview()
186 mProvider.openFile(uri, "r").close(); in testOpenFile_thumbnail()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderTest.java41 private ProviderInfo mProvider; field in ContentProviderTest
48 mProvider = new ProviderInfo(); in setUp()
49 mProvider.authority = "com.example"; in setUp()
50 mProvider.applicationInfo = mProviderApp; in setUp()
55 mCp.attachInfo(mContext, mProvider); in setUp()
/frameworks/av/media/libnbaio/
DAudioBufferProviderSource.cpp28 NBAIO_Source(format), mProvider(provider), mConsumed(0) in AudioBufferProviderSource()
37 mProvider->releaseBuffer(&mBuffer); in ~AudioBufferProviderSource()
56 status_t status = mProvider->getNextBuffer(&mBuffer); in read()
71 mProvider->releaseBuffer(&mBuffer); in read()
102 status_t status = mProvider->getNextBuffer(&mBuffer); in readVia()
135 mProvider->releaseBuffer(&mBuffer); in readVia()
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidDeviceAppSdpSettings.java38 private final String mProvider; field in BluetoothHidDeviceAppSdpSettings
59 mProvider = provider; in BluetoothHidDeviceAppSdpSettings()
79 return mProvider; in getProvider()
119 out.writeString(mProvider); in writeToParcel()
/frameworks/base/core/java/android/service/notification/
DConditionProviderService.java78 private Provider mProvider; field in ConditionProviderService
181 noMan.requestUnbindProvider(mProvider); in requestUnbind()
218 getNotificationInterface().notifyConditions(getPackageName(), mProvider, conditions); in notifyConditions() local
226 if (mProvider == null) { in onBind()
227 mProvider = new Provider(); in onBind()
229 return mProvider; in onBind()
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderProxy.java326 private final IRemoteDisplayProvider mProvider; field in RemoteDisplayProviderProxy.Connection
330 mProvider = provider; in Connection()
336 mProvider.asBinder().linkToDeath(this, 0); in register()
337 mProvider.setCallback(mCallback); in register()
352 mProvider.asBinder().unlinkToDeath(this, 0); in dispose()
358 mProvider.setDiscoveryMode(mode); in setDiscoveryMode()
366 mProvider.connect(id); in connect()
374 mProvider.disconnect(id); in disconnect()
382 mProvider.setVolume(id, volume); in setVolume()
390 mProvider.adjustVolume(id, volume); in adjustVolume()
/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java52 private T mProvider; field in ProviderTestCase
55 return mProvider; in getProvider()
70 mProvider = ProviderTestCase2.createProviderForTest( in setUp()
83 mProvider.shutdown(); in tearDown()
DProviderTestCase2.java109 private T mProvider; field in ProviderTestCase2
116 return mProvider; in getProvider()
143 mProvider = createProviderForTest(mProviderContext, mProviderClass, mProviderAuthority); in setUp()
168 mProvider.shutdown(); in tearDown()
/frameworks/base/core/java/android/animation/
DAnimationHandler.java49 private AnimationFrameCallbackProvider mProvider; field in AnimationHandler
77 mProvider = new MyFrameCallbackProvider(); in setProvider()
79 mProvider = provider; in setProvider()
84 if (mProvider == null) { in getProvider()
85 mProvider = new MyFrameCallbackProvider(); in getProvider()
87 return mProvider; in getProvider()
/frameworks/base/location/java/android/location/
DLocationRequest.java173 private String mProvider = LocationManager.FUSED_PROVIDER; field in LocationRequest
267 mProvider = src.mProvider; in LocationRequest()
564 mProvider = provider; in setProvider()
571 return mProvider; in getProvider()
713 parcel.writeString(mProvider); in writeToParcel()
741 if (mProvider != null) s.append(' ').append(mProvider); in toString()
DLocation.java133 private String mProvider; field in Location
164 mProvider = provider; in Location()
178 mProvider = l.mProvider; in set()
199 mProvider = null; in reset()
528 return mProvider; in getProvider()
535 mProvider = provider; in setProvider()
1039 if (mProvider == null) return false; in isComplete()
1058 if (mProvider == null) mProvider = "?"; in makeComplete()
1100 s.append(mProvider); in toString()
1175 parcel.writeString(mProvider); in writeToParcel()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsService.java40 final SettingsProvider mProvider; field in SettingsService
43 mProvider = provider; in SettingsService()
49 (new MyShellCommand(mProvider, false)).exec( in onShellCommand()
55 if (mProvider.getContext().checkCallingPermission(android.Manifest.permission.DUMP) in dump()
86 mProvider.dumpProto(fd); in dump()
88 mProvider.dumpInternal(fd, pw, args); in dump()
96 final SettingsProvider mProvider; field in SettingsService.MyShellCommand
119 mProvider = provider; in MyShellCommand()
264 UserManager userManager = UserManager.get(mProvider.getContext()); in onCommand()
270 final IContentProvider iprovider = mProvider.getIContentProvider(); in onCommand()
DDeviceConfigService.java49 final SettingsProvider mProvider; field in DeviceConfigService
52 mProvider = provider; in DeviceConfigService()
58 (new MyShellCommand(mProvider)).exec(this, in, out, err, args, callback, resultReceiver); in onShellCommand()
62 final SettingsProvider mProvider; field in DeviceConfigService.MyShellCommand
74 mProvider = provider; in MyShellCommand()
183 final IContentProvider iprovider = mProvider.getIContentProvider(); in onCommand()
/frameworks/base/location/lib/java/com/android/location/provider/
DGeofenceProvider.java40 private IGeofenceProvider.Stub mProvider = new IGeofenceProvider.Stub() { field in GeofenceProvider
55 return mProvider; in getBinder()

12