/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | InsetsSourceProviderTest.java | 50 private InsetsSourceProvider mProvider; field in InsetsSourceProviderTest 57 mProvider = new InsetsSourceProvider(mSource, in setUp() 69 mProvider.setWindowContainer(statusBar, null, null); in testPostLayout() 70 mProvider.updateSourceFrame(statusBar.getFrame()); in testPostLayout() 71 mProvider.onPostLayout(); in testPostLayout() 72 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testPostLayout() 73 assertEquals(Insets.of(0, 100, 0, 0), mProvider.getInsetsHint()); in testPostLayout() 77 mProvider.onPostLayout(); in testPostLayout() 78 assertEquals(Insets.of(0, 90, 0, 0), mProvider.getInsetsHint()); in testPostLayout() 86 mProvider.setWindowContainer(statusBar, null, null); in testPostLayout_invisible() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | PropertyProvider_test.cpp | 30 PropertyProvider mProvider; member in android::PropertyProviderTest 37 gesturePropProvider.create_int_fn(&mProvider, "Some Integers", intData, COUNT, initialValues); in TEST_F() 39 ASSERT_TRUE(mProvider.hasProperty("Some Integers")); in TEST_F() 40 GesturesProp& prop = mProvider.getProperty("Some Integers"); in TEST_F() 50 GesturesProp* propPtr = gesturePropProvider.create_int_fn(&mProvider, "Some Integers", intData, in TEST_F() 63 gesturePropProvider.register_handlers_fn(&mProvider, propPtr, /* handler_data= */ intData, in TEST_F() 66 ASSERT_TRUE(mProvider.hasProperty("Some Integers")); in TEST_F() 67 GesturesProp& prop = mProvider.getProperty("Some Integers"); in TEST_F() 75 GesturesProp* propPtr = gesturePropProvider.create_int_fn(&mProvider, "Some Integers", intData, in TEST_F() 92 gesturePropProvider.register_handlers_fn(&mProvider, propPtr, /* handler_data= */ &setterData, in TEST_F() [all …]
|
D | TimerProvider_test.cpp | 68 TimerProviderTest() : mProvider(mMockContext) {} in TimerProviderTest() 72 mProvider.setCurrentTime(time); in triggerCallbacksWithFakeTime() 73 mProvider.triggerCallbacks(time); in triggerCallbacksWithFakeTime() 77 TestTimerProvider mProvider; member in android::TimerProviderTest 81 GesturesTimer* timer = mProvider.createTimer(); in TEST_F() 87 kGestureTimerProvider.set_fn(&mProvider, timer, 1.0, &pushTimeOntoVector, &callTimes); in TEST_F() 103 GesturesTimer* timer = mProvider.createTimer(); in TEST_F() 106 mProvider.setDeadline(timer, 1'000'000'000, ©TimeToVariable, &callTime); in TEST_F() 113 GesturesTimer* timer = mProvider.createTimer(); in TEST_F() 129 mProvider.setDeadline(timer, 1'000'000'000, callback, &callTimes); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | HapticScrollFeedbackProviderTest.java | 55 private HapticScrollFeedbackProvider mProvider; field in HapticScrollFeedbackProviderTest 65 mProvider = new HapticScrollFeedbackProvider(mView, mMockViewConfig, in setUp() 75 mProvider.onScrollProgress( in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 78 mProvider.onSnapToItem( in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 80 mProvider.onScrollLimit( in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 89 mProvider = new HapticScrollFeedbackProvider(mView, mMockViewConfig, in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 95 mProvider.onScrollProgress( in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 98 mProvider.onSnapToItem( in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 100 mProvider.onScrollLimit( in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 114 mProvider.onSnapToItem( in testNoFeedbackWhenFeedbackIsDisabled() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | WebView.java | 444 mProvider.init(javaScriptInterfaces, privateBrowsing); in WebView() 503 return mProvider.getVisibleTitleHeight(); in getVisibleTitleHeight() 515 return mProvider.getCertificate(); in getCertificate() 527 mProvider.setCertificate(certificate); in setCertificate() 550 mProvider.savePassword(host, username, password); in savePassword() 567 mProvider.setHttpAuthUsernamePassword(host, realm, username, password); in setHttpAuthUsernamePassword() 584 return mProvider.getHttpAuthUsernamePassword(host, realm); in getHttpAuthUsernamePassword() 594 mProvider.destroy(); in destroy() 642 mProvider.setNetworkAvailable(networkUp); in setNetworkAvailable() 659 return mProvider.saveState(outState); in saveState() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/ |
D | MockableLocationProviderTest.java | 59 private MockableLocationProvider mProvider; field in MockableLocationProviderTest 79 mProvider = new MockableLocationProvider(lock); in setUp() 80 mProvider.getController().setListener(mListener); in setUp() 81 mProvider.setRealProvider(mRealProvider); in setUp() 86 assertThat(mProvider.getProvider()).isEqualTo(mRealProvider); in testSetProvider() 88 mProvider.setMockProvider(mMockProvider); in testSetProvider() 89 assertThat(mProvider.getProvider()).isEqualTo(mMockProvider); in testSetProvider() 91 mProvider.setMockProvider(null); in testSetProvider() 92 assertThat(mProvider.getProvider()).isEqualTo(mRealProvider); in testSetProvider() 94 mProvider.setRealProvider(null); in testSetProvider() [all …]
|
D | LocationProviderManagerTest.java | 172 private TestProvider mProvider; field in LocationProviderManagerTest 217 mProvider = new TestProvider(PROPERTIES, PROVIDER_IDENTITY); in createManager() 218 mProvider.setProviderAllowed(true); in createManager() 224 mManager.setRealProvider(mProvider); in createManager() 257 mProvider.setProperties(newProperties); in testProperties() 262 mProvider.setIdentity(newIdentity); in testProperties() 271 mProvider.setExtraAttributionTags(Collections.singleton("extra")); in testStateChangedListener() 300 mProvider.setAllowed(false); in testIsEnabled() 304 mProvider.setAllowed(true); in testIsEnabled() 323 mProvider.setAllowed(false); in testIsEnabledListener() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | MockableLocationProvider.java | 54 private @Nullable AbstractLocationProvider mProvider; field in MockableLocationProvider 89 return mProvider; in getProvider() 134 if (mProvider == provider) { in setProviderLocked() 138 AbstractLocationProvider oldProvider = mProvider; in setProviderLocked() 139 mProvider = provider; in setProviderLocked() 152 if (mProvider != null) { in setProviderLocked() 153 newState = mProvider.getController().setListener(new ListenerWrapper(mProvider)); in setProviderLocked() 155 if (!mProvider.getController().isStarted()) { in setProviderLocked() 156 mProvider.getController().start(); in setProviderLocked() 158 mProvider.getController().setRequest(mRequest); in setProviderLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | OneFingerPanningSettingsProviderTest.java | 48 private OneFingerPanningSettingsProvider mProvider; field in OneFingerPanningSettingsProviderTest 59 if (mProvider != null) { in tearDown() 60 mProvider.unregister(); in tearDown() 66 mProvider = new OneFingerPanningSettingsProvider(mContext, /* featureFlagEnabled */ false); in isOneFingerPanningEnabled_flagDisabled_matchesDefault() 68 assertThat(mProvider.isOneFingerPanningEnabled()).isEqualTo(mDefaultValue); in isOneFingerPanningEnabled_flagDisabled_matchesDefault() 74 mProvider = new OneFingerPanningSettingsProvider(mContext, /* featureFlagEnabled */ true); in isOneFingerPanningEnabled_flagEnabledSettingEnabled_true() 76 assertTrue(mProvider.isOneFingerPanningEnabled()); in isOneFingerPanningEnabled_flagEnabledSettingEnabled_true() 82 mProvider = new OneFingerPanningSettingsProvider(mContext, /* featureFlagEnabled */ true); in isOneFingerPanningEnabled_flagEnabledSettingDisabled_false() 84 assertFalse(mProvider.isOneFingerPanningEnabled()); in isOneFingerPanningEnabled_flagEnabledSettingDisabled_false() 89 mProvider = new OneFingerPanningSettingsProvider(mContext, /* featureFlagEnabled */ true); in isOneFingerPanningEnabled_flagEnabledSettingsFalse_false() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 101 private TestableKeyguardSliceProvider mProvider; field in KeyguardSliceProviderTest 108 mProvider = new TestableKeyguardSliceProvider(); in setup() 109 mProvider.setContextAvailableCallback(context -> new SystemUIInitializerImpl(mContext)); in setup() 110 mProvider.attachInfo(getContext(), null); in setup() 118 mProvider.onDestroy(); in tearDown() 124 mProvider.isRegistered()); in registersClockUpdate() 129 Slice slice = mProvider.onBindSlice(mProvider.getUri()); in returnsValidSlice() 140 mProvider.onDozingChanged(true); in onBindSlice_readsMedia_withoutBypass() 141 mProvider.onPrimaryMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia_withoutBypass() 142 mProvider.onBindSlice(mProvider.getUri()); in onBindSlice_readsMedia_withoutBypass() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayStatusBarItemsProviderTest.java | 49 DreamOverlayStatusBarItemsProvider mProvider; field in DreamOverlayStatusBarItemsProviderTest 54 mProvider = new DreamOverlayStatusBarItemsProvider(mMainExecutor); in setup() 59 mProvider.addStatusBarItem(mStatusBarItem); in addingCallbackCallsOnStatusBarItemsChanged() 60 mProvider.addCallback(mCallback); in addingCallbackCallsOnStatusBarItemsChanged() 66 mProvider.addCallback(mCallback); in addingStatusBarItemCallsOnStatusBarItemsChanged() 67 mProvider.addStatusBarItem(mStatusBarItem); in addingStatusBarItemCallsOnStatusBarItemsChanged() 73 mProvider.addCallback(mCallback); in addingDuplicateStatusBarItemDoesNotCallOnStatusBarItemsChanged() 74 mProvider.addStatusBarItem(mStatusBarItem); in addingDuplicateStatusBarItemDoesNotCallOnStatusBarItemsChanged() 75 mProvider.addStatusBarItem(mStatusBarItem); in addingDuplicateStatusBarItemDoesNotCallOnStatusBarItemsChanged() 83 mProvider.addCallback(mCallback); in removingStatusBarItemCallsOnStatusBarItemsChanged() [all …]
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusedLocationService.java | 29 @Nullable private FusedLocationProvider mProvider; field in FusedLocationService 33 if (mProvider == null) { in onBind() 34 mProvider = new FusedLocationProvider(this); in onBind() 35 mProvider.start(); in onBind() 38 return mProvider.getBinder(); in onBind() 43 if (mProvider != null) { in onDestroy() 44 mProvider.stop(); in onDestroy() 45 mProvider = null; in onDestroy() 51 if (mProvider != null) { in dump() 52 mProvider.dump(writer); in dump()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/gnss/ |
D | GnssOverlayLocationService.java | 29 @Nullable private GnssOverlayLocationProvider mProvider; field in GnssOverlayLocationService 33 if (mProvider == null) { in onBind() 34 mProvider = new GnssOverlayLocationProvider(this); in onBind() 35 mProvider.start(); in onBind() 38 return mProvider.getBinder(); in onBind() 43 if (mProvider != null) { in onDestroy() 44 mProvider.stop(); in onDestroy() 45 mProvider = null; in onDestroy()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/ |
D | BiometricContextProviderTest.java | 97 private BiometricContextProvider mProvider; field in BiometricContextProviderTest 104 mProvider = new BiometricContextProvider(mContext, mWindowManager, in setup() 130 assertThat(mProvider.isAod()).isEqualTo(entry.getValue()); in testIsAod() 147 assertThat(mProvider.isAwake()).isEqualTo(entry.getValue()); in testIsAwake() 163 assertThat(mProvider.getDisplayState()).isEqualTo(state); in testGetDisplayState() 170 assertThat(mProvider.isHardwareIgnoringTouches()).isTrue(); in testGetIsHardwareIgnoringTouches() 173 assertThat(mProvider.isHardwareIgnoringTouches()).isFalse(); in testGetIsHardwareIgnoringTouches() 184 mProvider.mDockStateReceiver.onReceive(mContext, intent); in testGetDockedState() 186 assertThat(mProvider.getDockedState()).isEqualTo(state); in testGetDockedState() 198 assertThat(mProvider.getFoldState()).isEqualTo(state); in testGetFoldState() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
D | MetricsFeatureProviderTest.java | 53 private MetricsFeatureProvider mProvider; field in MetricsFeatureProviderTest 59 mProvider = new MetricsFeatureProvider(); in setUp() 62 ReflectionHelpers.setField(mProvider, "mLoggerWriters", writers); in setUp() 67 final boolean loggable = mProvider.logClickedPreference(null /* preference */, in logClickedPreference_preferenceEmpty_shouldNotLog() 80 final boolean loggable = mProvider.logClickedPreference(preference, in logClickedPreference_preferenceHasKey_shouldLog() 93 final boolean loggable = mProvider.logClickedPreference(preference, in logClickedPreference_preferenceHasIntent_shouldLog() 106 final boolean loggable = mProvider.logClickedPreference(preference, in logClickedPreference_preferenceHasFragment_shouldLog() 115 final boolean loggable = mProvider.logStartedIntent(null /* intent */, in logStartedIntent_intentEmpty_shouldNotLog() 126 final boolean loggable = mProvider.logStartedIntent(intent, MetricsEvent.SETTINGS_GESTURES); in logStartedIntent_intentHasNoComponent_shouldLog() 136 final boolean loggable = mProvider.logStartedIntent(intent, MetricsEvent.SETTINGS_GESTURES); in logStartedIntent_intentIsExternal_shouldLog() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ExportTestResolver.java | 23 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()
|
D | ImportTestResolver.java | 28 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/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | BiometricTestSessionImpl.java | 58 @NonNull private final FingerprintProvider mProvider; field in BiometricTestSessionImpl 135 mProvider = provider; in BiometricTestSessionImpl() 148 mProvider.setTestHalEnabled(enabled); in setTestHalEnabled() 157 mProvider.scheduleEnroll(mSensorId, new Binder(), new byte[69], userId, mReceiver, in startEnroll() 168 Slog.i(TAG, "finishEnroll(): useVhalForTesting=" + mProvider.useVhalForTesting()); in finishEnroll() 169 if (mProvider.useVhalForTesting()) { in finishEnroll() 183 mProvider.getVhal().setNextEnrollment(nextEnrollment); in finishEnroll() 184 mProvider.simulateVhalFingerDown(userId, mSensorId); in finishEnroll() 206 if (mProvider.useVhalForTesting()) { in acceptAuthentication() 207 mProvider.getVhal().setEnrollmentHit(VHAL_ENROLLMENT_ID); in acceptAuthentication() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | DocumentsProviderTest.java | 40 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/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/ |
D | BookStyleDeviceStatePolicyTest.java | 120 private DeviceStateProvider mProvider; field in BookStyleDeviceStatePolicyTest 214 mInstrumentation.runOnMainSync(() -> mProvider = createProvider()); in setup() 226 mInstrumentation.runOnMainSync(() -> mProvider = createProvider()); in test_postureBasedClosedState_createPolicy_doesNotRegisterHallSensor() 236 mInstrumentation.runOnMainSync(() -> mProvider = createProvider()); in test_postureBasedClosedStateDisabled_createPolicy_registersHallSensor() 243 mProvider.setListener(mListener); in test_noSensorEventsYet_reportOpenedState() 250 mProvider.setListener(mListener); in test_deviceClosedSensorEventsBecameAvailable_reportsClosedState() 263 mProvider.setListener(mListener); in test_hingeAngleClosed_reportsClosedState() 272 mProvider.setListener(mListener); in test_hingeAngleFullyOpened_reportsOpenedState() 280 mProvider.setListener(mListener); in test_unfoldingFromClosedToFullyOpened_reportsOpenedEvent() 295 mProvider.setListener(mListener); in test_foldingFromFullyOpenToFullyClosed_movesToClosedState() [all …]
|
D | FoldableDeviceStateProviderTest.java | 113 private FoldableDeviceStateProvider mProvider; field in FoldableDeviceStateProviderTest 152 mProvider.setListener(listener); in create_allMatchingStatesDefaultsToTheFirstIdentifier() 177 mProvider.setListener(listener); in create_multipleMatchingStatesDefaultsToTheLowestIdentifier() 190 mProvider.setListener(listener); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState() 207 mProvider.setListener(listener); in test_hallSensorUpdatedFirstTime_switchesToMatchingState() 226 mProvider.setListener(listener); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 245 mProvider.setListener(listener); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 264 mProvider.setListener(listener); in test_invalidSensorValues_onStateChangedIsNotTriggered() 301 mProvider.setListener(listener); 313 mProvider.onThermalStatusChanged(PowerManager.THERMAL_STATUS_MODERATE); [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContentResolver.java | 35 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/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PageContentView.java | 39 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/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | PolicyVersionUpgraderTest.java | 123 private FakePolicyUpgraderDataProvider mProvider; field in PolicyVersionUpgraderTest 132 mProvider = new FakePolicyUpgraderDataProvider(); in setUp() 133 mUpgrader = new PolicyVersionUpgrader(mProvider, getServices().pathProvider); in setUp() 139 mProvider.mComponentToDeviceAdminInfo.put(mFakeAdmin, dai); in setUp() 140 mProvider.mUsers = new int[]{0}; in setUp() 146 final int userId = mProvider.mUsers[0]; in testSameVersionDoesNothing() 159 mProvider.mUsers = new int[]{0, 10}; in testUpgrade0To1RemovesPasswordMetrics() 162 for (int userId : mProvider.mUsers) { in testUpgrade0To1RemovesPasswordMetrics() 171 for (int user : mProvider.mUsers) { in testUpgrade0To1RemovesPasswordMetrics() 180 mProvider.mUsers = new int[]{0, ownerUser}; in testUpgrade1To2MarksDoForPermissionControl() [all …]
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | random_binder.cpp | 30 mProvider(mBytes.data(), mBytes.size()) {} in RandomBinder() 43 if (mProvider.ConsumeBool()) { in onTransact() 44 return mProvider.ConsumeIntegral<status_t>(); in onTransact() 56 std::vector<uint8_t> subData = mProvider.ConsumeBytes<uint8_t>( in onTransact() 57 mProvider.ConsumeIntegralInRange<size_t>(0, mProvider.remaining_bytes())); in onTransact()
|