/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | InputManagerMockHelper.java | 75 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 …]
|
D | InputControllerTest.java | 97 doAnswer((inv) -> { in setUpDisplay() argument
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Matrix.java | 201 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/ |
D | FactoryResetterTest.java | 78 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/ |
D | MasterClearReceiverTest.java | 205 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()
|
D | AppStateTrackerTest.java | 204 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/ |
D | Matrix.h | 126 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/ |
D | IntExtensions.kt | 23 infix fun Int.andInv(other: Int): Int = this and other.inv() in hasAnyBit()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 190 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/ |
D | WindowTracingTest.java | 150 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/ |
D | DisableSubpixelTextTransitionListener.kt | 57 childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG.inv() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | KeyguardBouncerViewModel.kt | 85 vis and View.STATUS_BAR_DISABLE_BACK.inv() in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 930 .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/ |
D | PowerManagerServiceTest.java | 1038 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/ |
D | DozeMachineTest.java | 357 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/ |
D | AppOpsLegacyRestrictionsTest.java | 73 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/ |
D | CellularNetworkSecuritySafetySourceTest.java | 98 doAnswer(inv -> getActivityPendingIntent(inv.getArgument(1))) in setUp()
|
/frameworks/compile/slang/ |
D | slang_rs_reflection_state.cpp | 214 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/ |
D | LetterboxAppearanceCalculator.kt | 156 originalAppearance and APPEARANCE_SEMI_TRANSPARENT_STATUS_BARS.inv() in appearanceWithoutScrim()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 200 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/ |
D | ToastUITest.java | 455 return inv -> { in writeArgumentToParcel() 456 inv.<Parcelable>getArgument(i).writeToParcel(dest, 0); in writeArgumentToParcel()
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/visitors/ |
D | ImplGeneratingAdapter.kt | 129 return access and Opcodes.ACC_NATIVE.inv() in <lambda>()
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/asm/ |
D | AsmUtils.kt | 295 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/ |
D | ChannelEditorDialogController.kt | 319 fitInsetsTypes = attributes.fitInsetsTypes and statusBars().inv() in <lambda>()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | CrashRecoveryTest.java | 141 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).then(inv -> { in setUp() 143 res.packageName = inv.getArgument(0); in setUp()
|