Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DInputManagerMockHelper.java75 doAnswer(inv -> { in InputManagerMockHelper()
76 mDevicesChangedListener = inv.getArgument(0); in InputManagerMockHelper()
80 doAnswer(inv -> mDevices.get(inv.getArgument(0))) in InputManagerMockHelper()
82 doAnswer(inv -> mUniqueIdAssociationByPort.put(inv.getArgument(0), in InputManagerMockHelper()
83 inv.getArgument(1))).when(mIInputManagerMock).addUniqueIdAssociationByPort( in InputManagerMockHelper()
85 doAnswer(inv -> mUniqueIdAssociationByPort.remove(inv.getArgument(0))).when( in InputManagerMockHelper()
103 private long handleNativeOpenInputDevice(InvocationOnMock inv) { in handleNativeOpenInputDevice() argument
107 final String phys = inv.getArgument(3); in handleNativeOpenInputDevice()
110 .setName(inv.getArgument(0)) in handleNativeOpenInputDevice()
111 .setVendorId(inv.getArgument(1)) in handleNativeOpenInputDevice()
[all …]
DInputControllerTest.java97 doAnswer((inv) -> { in setUpDisplay() argument
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DMatrix.java201 double[] inv = new double[16]; in invers() local
203 inv[0] = m[5] * m[10] * m[15] - in invers()
210 inv[4] = -m[4] * m[10] * m[15] + in invers()
217 inv[8] = m[4] * m[9] * m[15] - in invers()
224 inv[12] = -m[4] * m[9] * m[14] + in invers()
231 inv[1] = -m[1] * m[10] * m[15] + in invers()
238 inv[5] = m[0] * m[10] * m[15] - in invers()
245 inv[9] = -m[0] * m[9] * m[15] + in invers()
252 inv[13] = m[0] * m[9] * m[14] - in invers()
259 inv[2] = m[1] * m[6] * m[15] - in invers()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/devicepolicy/
DFactoryResetterTest.java78 when(mContext.getSystemService(any(Class.class))).thenAnswer((inv) -> { in startSession()
79 Log.d(TAG, "Mocking " + inv); in startSession()
80 Class<?> serviceClass = (Class<?>) inv.getArguments()[0]; in startSession()
87 doAnswer((inv) -> { in startSession() argument
88 Log.d(TAG, "Mocking " + inv); in startSession()
229 doAnswer((inv) -> { in testFactoryReset_allArgs_safetyChecker_replied() argument
230 Log.d(TAG, "Mocking " + inv); in testFactoryReset_allArgs_safetyChecker_replied()
231 IResultReceiver receiver = (IResultReceiver) inv.getArguments()[0]; in testFactoryReset_allArgs_safetyChecker_replied()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DMasterClearReceiverTest.java205 doAnswer((inv) -> { in expectRebootWipeUserData() argument
206 Log.i(TAG, inv.toString()); in expectRebootWipeUserData()
221 doAnswer((inv) -> { in expectWipeExternalData() argument
222 Log.i(TAG, inv.toString()); in expectWipeExternalData()
234 doAnswer((inv) -> { in expectHeadlessSystemUserMode() argument
235 Log.i(TAG, inv.toString()); in expectHeadlessSystemUserMode()
DAppStateTrackerTest.java204 inv -> new ArrayList<PackageOps>();
234 .thenAnswer(inv -> { in newInstance()
236 Pair.create(inv.getArgument(1), inv.getArgument(2))) >= 0 ? in newInstance()
249 .thenAnswer(inv -> getPowerSaveState()); in callStart()
1018 mGetPackagesForOps = inv -> { in loadPersistedAppOps()
1019 final int[] arg = (int[]) inv.getArgument(0); in loadPersistedAppOps()
/frameworks/base/libs/hwui/
DMatrix.h126 Matrix4 inv; in multiplyInverse() local
127 inv.loadInverse(v); in multiplyInverse()
128 multiply(inv); in multiplyInverse()
/frameworks/base/services/permission/java/com/android/server/permission/access/util/
DIntExtensions.kt23 infix fun Int.andInv(other: Int): Int = this and other.inv() in hasAnyBit()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java190 doAnswer(inv -> { in setUp()
191 mTwilightListener = (TwilightListener) inv.getArgument(0); in setUp()
194 doAnswer(inv -> { in setUp()
195 mPowerSaveConsumer = (Consumer<PowerSaveState>) inv.getArgument(1); in setUp()
211 when(mContext.registerReceiver(notNull(), notNull())).then(inv -> { in setUp()
212 IntentFilter filter = inv.getArgument(1); in setUp()
214 mTimeChangedCallback = inv.getArgument(0); in setUp()
217 mScreenOffCallback = inv.getArgument(0); in setUp()
220 mDreamingStartedCallback = inv.getArgument(0); in setUp()
223 mDockStateChangedCallback = inv.getArgument(0); in setUp()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTracingTest.java150 doAnswer(inv -> { in tracing_endsUpInFile()
151 inv.<ProtoOutputStream>getArgument(0).write( in tracing_endsUpInFile()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/
DDisableSubpixelTextTransitionListener.kt57 childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG.inv() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
DKeyguardBouncerViewModel.kt85 vis and View.STATUS_BAR_DISABLE_BACK.inv() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java930 .thenAnswer(inv -> { in setUp()
931 final int userId = (Integer) inv.getArguments()[0]; in setUp()
935 .thenAnswer(inv -> { in setUp()
936 final int userId = (Integer) inv.getArguments()[0]; in setUp()
948 anyBoolean())).thenAnswer(inv -> { in setUp()
949 final int callingUserId = (Integer) inv.getArguments()[0]; in setUp()
950 final int targetUserId = (Integer) inv.getArguments()[1]; in setUp()
964 final boolean isExternal = (Boolean) inv.getArguments()[3]; in setUp()
968 throw new SecurityException(inv.getArguments()[2] + " for unrelated profile " in setUp()
973 inv -> mUserInfos.get((Integer) inv.getArguments()[0]))); in setUp()
[all …]
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java1038 when(mNativeWrapperMock.nativeForceSuspend()).then(inv -> { in testForceSuspend_putsDeviceToSleep()
1062 doAnswer(inv -> { in testForceSuspend_wakeLocksDisabled()
1063 wakelockMap.put((String) inv.getArguments()[1], (int) inv.getArguments()[0]); in testForceSuspend_wakeLocksDisabled()
1067 doAnswer(inv -> { in testForceSuspend_wakeLocksDisabled()
1068 wakelockMap.remove((String) inv.getArguments()[1]); in testForceSuspend_wakeLocksDisabled()
1087 when(mNativeWrapperMock.nativeForceSuspend()).then(inv -> { in testForceSuspend_wakeLocksDisabled()
1112 doAnswer(inv -> { in testScreensaverActivateOnSleepDisabled_powered_afterTimeout_goesToDozing()
1134 doAnswer(inv -> { in testScreensaverActivateOnSleepEnabled_powered_afterTimeout_goesToDreaming()
1160 doAnswer(inv -> { in testAmbientSuppression_disablesDreamingAndWakesDevice()
1187 doAnswer(inv -> { in testAmbientSuppressionDisabled_shouldNotWakeDevice()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java357 doAnswer((inv) -> { in testWakeLock_heldInTransition() argument
434 doAnswer(inv -> { in testTransitions_canRequestTransitions()
457 doAnswer(inv -> { in testPulseReason_getFromTransition()
458 DozeMachine.State newState = inv.getArgument(1); in testPulseReason_getFromTransition()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsLegacyRestrictionsTest.java73 Mockito.when(mHandler.post(Mockito.any(Runnable.class))).then(inv -> { in setUp()
74 Runnable r = inv.getArgument(0); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DCellularNetworkSecuritySafetySourceTest.java98 doAnswer(inv -> getActivityPendingIntent(inv.getArgument(1))) in setUp()
/frameworks/compile/slang/
Dslang_rs_reflection_state.cpp214 const auto &inv = file.mInvokables[invIdx]; in dump() local
215 std::cout << " (Invokable) name=\"" << inv.mName << "\"" << std::endl; in dump()
216 const size_t NumParams = inv.mParamCount; in dump()
218 std::cout << " (Param) " << inv.mParams[paramsIdx].str() << std::endl; in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLetterboxAppearanceCalculator.kt156 originalAppearance and APPEARANCE_SEMI_TRANSPARENT_STATUS_BARS.inv() in appearanceWithoutScrim()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java200 doAnswer((inv) -> mDevice.batterySaverEnabled = inv.getArgument(0)) in setUp()
205 .thenAnswer((inv) -> mDevice.batterySaverEnabled); in setUp()
207 .thenAnswer((inv) -> mDevice.batterySaverEnabled); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/
DToastUITest.java455 return inv -> { in writeArgumentToParcel()
456 inv.<Parcelable>getArgument(i).writeToParcel(dest, 0); in writeArgumentToParcel()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/visitors/
DImplGeneratingAdapter.kt129 return access and Opcodes.ACC_NATIVE.inv() in <lambda>()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/asm/
DAsmUtils.kt295 return access and (Opcodes.ACC_PUBLIC or Opcodes.ACC_PROTECTED or Opcodes.ACC_PRIVATE).inv() in clearVisibility()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt319 fitInsetsTypes = attributes.fitInsetsTypes and statusBars().inv() in <lambda>()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DCrashRecoveryTest.java141 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).then(inv -> { in setUp()
143 res.packageName = inv.getArgument(0); in setUp()

12