Home
last modified time | relevance | path

Searched refs:injector (Results 1 – 25 of 244) sorted by relevance

12345678910

/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadEvdev.cpp47 if (touchpad.injector) { in Reset()
48 touchpad.injector->Close(); in Reset()
50 touchpad.injector = nullptr; in Reset()
63 if (!touchpad.injector) { in Attach()
65 touchpad.injector = touchpad.owned_injector.get(); in Attach()
69 touchpad.injector->ConfigureBegin(DeviceName, kDeviceBusType, in Attach()
72 touchpad.injector->ConfigureInputProperty(INPUT_PROP_DIRECT); in Attach()
73 touchpad.injector->ConfigureMultiTouchXY(0, 0, kWidth - 1, kHeight - 1); in Attach()
74 touchpad.injector->ConfigureAbsSlots(kSlots); in Attach()
75 touchpad.injector->ConfigureRel(REL_WHEEL); in Attach()
[all …]
DVirtualTouchpadEvdev.h35 EvdevInjector* injector) { in SetEvdevInjectorForTesting() argument
36 touchpad_[touchpad].injector = injector; in SetEvdevInjectorForTesting()
46 EvdevInjector* injector = nullptr; member
/frameworks/native/services/surfaceflinger/tests/unittests/
DDualDisplayTransactionTest.h36 auto injector = InnerDisplayVariant::makeFakeExistingDisplayInjector(this); in SetUp() local
37 injector.setRefreshRateSelector(mFlinger.scheduler()->refreshRateSelector()); in SetUp()
38 injector.setPowerMode(kInnerDisplayPowerMode); in SetUp()
39 mInnerDisplay = injector.inject(); in SetUp()
45 auto injector = OuterDisplayVariant::makeFakeExistingDisplayInjector(this); in SetUp() local
46 injector.setPowerMode(kOuterDisplayPowerMode); in SetUp()
47 mOuterDisplay = injector.inject(); in SetUp()
DFakeDisplayInjector.h75 auto injector = FakeDisplayDeviceInjector(mFlinger, compositionDisplay, variable
79 injector.setNativeWindow(mNativeWindow);
81 injectExtra(injector);
84 auto displayDevice = injector.inject();
DDisplayDevice_GetBestColorModeTest.cpp47 injectDefaultInternalDisplay([this](FakeDisplayDeviceInjector& injector) { in getBestColorMode() argument
48 injector.setHwcColorModes(mHwcColorModes); in getBestColorMode()
49 injector.setHasWideColorGamut(mHasWideColorGamut); in getBestColorMode()
50 injector.setNativeWindow(mNativeWindow); in getBestColorMode()
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningShellCommandTest.java136 Injector injector = new Injector(); in list_zeroInstances() local
137 injector.mIrpcs = Map.of(); in list_zeroInstances()
139 mContext, Process.SHELL_UID, injector); in list_zeroInstances()
149 Injector injector = new Injector(); in list_oneInstances() local
150 injector.mIrpcs = Map.of("default", mock(IRemotelyProvisionedComponent.class)); in list_oneInstances()
152 mContext, Process.SHELL_UID, injector); in list_oneInstances()
161 Injector injector = new Injector(); in list_twoInstances() local
162 injector.mIrpcs = Map.of( in list_twoInstances()
166 mContext, Process.SHELL_UID, injector); in list_twoInstances()
187 Injector injector = new Injector(); in csr_hwVersion1_withChallenge() local
[all …]
/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp105 touchpad->SetEvdevInjectorForTesting(t, &touchpad->injector[t]); in New()
110 EvdevInjectorForTesting injector[kTouchpads]; member in android::dvr::__anonb6efdf4d0111::VirtualTouchpadForTesting
129 uidev = touchpad->injector[t].GetUiDev(); in TEST_F()
170 expect.Write(touchpad->injector[t].GetUiDev(), sizeof(uinput_user_dev)); in TEST_F()
172 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
183 touchpad->injector[t].record.Reset(); in TEST_F()
186 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
197 touchpad->injector[t].record.Reset(); in TEST_F()
200 EXPECT_EQ(expect.GetString(), touchpad->injector[t].record.GetString()); in TEST_F()
210 touchpad->injector[t].record.Reset(); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java114 public DisplayBrightnessStrategySelector(Context context, Injector injector, int displayId, in DisplayBrightnessStrategySelector() argument
116 if (injector == null) { in DisplayBrightnessStrategySelector()
117 injector = new Injector(); in DisplayBrightnessStrategySelector()
121 mDozeBrightnessStrategy = injector.getDozeBrightnessStrategy(); in DisplayBrightnessStrategySelector()
122 mScreenOffBrightnessStrategy = injector.getScreenOffBrightnessStrategy(); in DisplayBrightnessStrategySelector()
123 mOverrideBrightnessStrategy = injector.getOverrideBrightnessStrategy(); in DisplayBrightnessStrategySelector()
124 mTemporaryBrightnessStrategy = injector.getTemporaryBrightnessStrategy(); in DisplayBrightnessStrategySelector()
125 mBoostBrightnessStrategy = injector.getBoostBrightnessStrategy(); in DisplayBrightnessStrategySelector()
126 mFollowerBrightnessStrategy = injector.getFollowerBrightnessStrategy(displayId); in DisplayBrightnessStrategySelector()
127 mInvalidBrightnessStrategy = injector.getInvalidBrightnessStrategy(); in DisplayBrightnessStrategySelector()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssStatusProvider.java31 import com.android.server.location.injector.AppOpsHelper;
32 import com.android.server.location.injector.Injector;
33 import com.android.server.location.injector.LocationUsageLogger;
50 public GnssStatusProvider(Injector injector, GnssNative gnssNative) { in GnssStatusProvider() argument
51 super(injector); in GnssStatusProvider()
52 mAppOpsHelper = injector.getAppOpsHelper(); in GnssStatusProvider()
53 mLogger = injector.getLocationUsageLogger(); in GnssStatusProvider()
DGnssListenerMultiplexer.java39 import com.android.server.location.injector.AppForegroundHelper;
40 import com.android.server.location.injector.Injector;
41 import com.android.server.location.injector.LocationPermissionsHelper;
42 import com.android.server.location.injector.PackageResetHelper;
43 import com.android.server.location.injector.SettingsHelper;
44 import com.android.server.location.injector.UserInfoHelper;
45 import com.android.server.location.injector.UserInfoHelper.UserListener;
236 protected GnssListenerMultiplexer(Injector injector) { in GnssListenerMultiplexer() argument
237 mUserInfoHelper = injector.getUserInfoHelper(); in GnssListenerMultiplexer()
238 mSettingsHelper = injector.getSettingsHelper(); in GnssListenerMultiplexer()
[all …]
DGnssNmeaProvider.java30 import com.android.server.location.injector.AppOpsHelper;
31 import com.android.server.location.injector.Injector;
48 GnssNmeaProvider(Injector injector, GnssNative gnssNative) { in GnssNmeaProvider() argument
49 super(injector); in GnssNmeaProvider()
51 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNmeaProvider()
DGnssNavigationMessageProvider.java29 import com.android.server.location.injector.AppOpsHelper;
30 import com.android.server.location.injector.Injector;
61 public GnssNavigationMessageProvider(Injector injector, GnssNative gnssNative) { in GnssNavigationMessageProvider() argument
62 super(injector); in GnssNavigationMessageProvider()
63 mAppOpsHelper = injector.getAppOpsHelper(); in GnssNavigationMessageProvider()
DGnssMeasurementsProvider.java40 import com.android.server.location.injector.AppOpsHelper;
41 import com.android.server.location.injector.Injector;
42 import com.android.server.location.injector.LocationUsageLogger;
43 import com.android.server.location.injector.SettingsHelper;
101 public GnssMeasurementsProvider(Injector injector, GnssNative gnssNative) { in GnssMeasurementsProvider() argument
102 super(injector); in GnssMeasurementsProvider()
103 mAppOpsHelper = injector.getAppOpsHelper(); in GnssMeasurementsProvider()
104 mLogger = injector.getLocationUsageLogger(); in GnssMeasurementsProvider()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/
DGnssNavigationMessageProviderTest.java36 import com.android.server.location.injector.FakeUserInfoHelper;
37 import com.android.server.location.injector.Injector;
38 import com.android.server.location.injector.TestInjector;
72 Injector injector = new TestInjector(mContext); in setUp() local
73 mGnssNative = spy(Objects.requireNonNull(GnssNative.create(injector, mMockConfiguration))); in setUp()
74 mTestProvider = new GnssNavigationMessageProvider(injector, mGnssNative); in setUp()
DGnssStatusProviderTest.java41 import com.android.server.location.injector.FakeUserInfoHelper;
42 import com.android.server.location.injector.Injector;
43 import com.android.server.location.injector.TestInjector;
81 Injector injector = new TestInjector(mContext); in setUp() local
82 mGnssNative = spy(Objects.requireNonNull(GnssNative.create(injector, mMockConfiguration))); in setUp()
83 mTestProvider = new GnssStatusProvider(injector, mGnssNative); in setUp()
DGnssNmeaProviderTest.java41 import com.android.server.location.injector.FakeUserInfoHelper;
42 import com.android.server.location.injector.Injector;
43 import com.android.server.location.injector.TestInjector;
82 Injector injector = new TestInjector(mContext); in setUp() local
83 mGnssNative = spy(Objects.requireNonNull(GnssNative.create(injector, mMockConfiguration))); in setUp()
84 mTestProvider = new GnssNmeaProvider(injector, mGnssNative); in setUp()
DGnssAntennaInfoProviderTest.java38 import com.android.server.location.injector.Injector;
39 import com.android.server.location.injector.TestInjector;
71 Injector injector = new TestInjector(mContext); in setUp() local
72 mGnssNative = spy(Objects.requireNonNull(GnssNative.create(injector, mMockConfiguration))); in setUp()
DGnssMeasurementsProviderTest.java43 import com.android.server.location.injector.FakeUserInfoHelper;
44 import com.android.server.location.injector.Injector;
45 import com.android.server.location.injector.TestInjector;
97 Injector injector = new TestInjector(mContext); in setUp() local
99 GnssNative.create(injector, mMockConfiguration))); in setUp()
100 mTestProvider = new GnssMeasurementsProvider(injector, mGnssNative); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt191 val injector: PackageManagerServiceInjector = mock() constant in com.android.server.pm.Mocks
278 whenever(mocks.injector.context).thenReturn(mocks.context) in stageNominalSystemState()
279 whenever(mocks.injector.lock).thenReturn(mocks.lock) in stageNominalSystemState()
280 whenever(mocks.injector.installLock).thenReturn(mocks.installLock) in stageNominalSystemState()
281 whenever(mocks.injector.systemWrapper).thenReturn(mocks.systemWrapper) in stageNominalSystemState()
282 whenever(mocks.injector.userManagerService).thenReturn(mocks.userManagerService) in stageNominalSystemState()
283 whenever(mocks.injector.componentResolver).thenReturn(mocks.componentResolver) in stageNominalSystemState()
284 whenever(mocks.injector.permissionManagerServiceInternal) { in stageNominalSystemState()
287 whenever(mocks.injector.incrementalManager).thenReturn(mocks.incrementalManager) in stageNominalSystemState()
288 whenever(mocks.injector.compatibility).thenReturn(mocks.platformCompat) in stageNominalSystemState()
[all …]
DPackageManagerServiceHibernationTests.kt72 whenever(rule.mocks().injector.getLocalService(AppHibernationManagerInternal::class.java)) in setup()
74 whenever(rule.mocks().injector.handler) in setup()
76 val injector = object : PackageDexOptimizer.Injector { in setup() constant
86 injector, in setup()
91 whenever(rule.mocks().injector.packageDexOptimizer) in setup()
120 whenever(rule.mocks().injector.getLocalService(AppHibernationManagerInternal::class.java)) in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException()
167 return PackageManagerService(rule.mocks().injector, in createPackageManagerService()
/frameworks/base/services/core/java/com/android/server/location/injector/
DUserInfoHelper.java17 package com.android.server.location.injector;
22 import static com.android.server.location.injector.UserInfoHelper.UserListener.CURRENT_USER_CHANGED;
23 import static com.android.server.location.injector.UserInfoHelper.UserListener.USER_STARTED;
24 import static com.android.server.location.injector.UserInfoHelper.UserListener.USER_STOPPED;
25 import static com.android.server.location.injector.UserInfoHelper.UserListener.USER_VISIBILITY_CHAN…
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DNetworkDetailsTracker.java89 @NonNull WifiTrackerInjector injector, in createNetworkDetailsTracker()
101 return new StandardNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
105 return new PasspointNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
109 return new HotspotNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
123 @NonNull WifiTrackerInjector injector, in NetworkDetailsTracker()
134 super(injector, lifecycle, context, wifiManager, connectivityManager, in NetworkDetailsTracker()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java87 ShutdownCheckPoints(Injector injector) { in ShutdownCheckPoints() argument
89 mInjector = injector; in ShutdownCheckPoints()
195 final void dump(Injector injector, PrintWriter printWriter) { in dump() argument
205 dumpDetails(injector, printWriter); in dump()
210 abstract void dumpDetails(Injector injector, PrintWriter printWriter); in dumpDetails() argument
229 void dumpDetails(Injector injector, PrintWriter printWriter) { in dumpDetails() argument
285 void dumpDetails(Injector injector, PrintWriter printWriter) { in dumpDetails() argument
289 String processName = findProcessName(injector.activityManager()); in dumpDetails()
337 void dumpDetails(Injector injector, PrintWriter printWriter) { in dumpDetails() argument
/frameworks/base/services/core/java/com/android/server/location/provider/
DPassiveLocationProviderManager.java27 import com.android.server.location.injector.Injector;
36 public PassiveLocationProviderManager(Context context, Injector injector) { in PassiveLocationProviderManager() argument
37 super(context, injector, LocationManager.PASSIVE_PROVIDER, null); in PassiveLocationProviderManager()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java46 import com.android.server.location.injector.Injector;
47 import com.android.server.location.injector.LocationPermissionsHelper;
48 import com.android.server.location.injector.LocationUsageLogger;
49 import com.android.server.location.injector.SettingsHelper;
50 import com.android.server.location.injector.UserInfoHelper;
51 import com.android.server.location.injector.UserInfoHelper.UserListener;
324 public GeofenceManager(Context context, Injector injector) { in GeofenceManager() argument
326 mUserInfoHelper = injector.getUserInfoHelper(); in GeofenceManager()
327 mSettingsHelper = injector.getSettingsHelper(); in GeofenceManager()
328 mLocationPermissionsHelper = injector.getLocationPermissionsHelper(); in GeofenceManager()
[all …]

12345678910