Home
last modified time | relevance | path

Searched refs:mTarget (Results 1 – 25 of 91) sorted by relevance

1234

/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionWrapper.java27 private InputConnection mTarget; field in InputConnectionWrapper
44 mTarget = target; in InputConnectionWrapper()
58 if (mTarget != null && !mMutable) { in setTarget()
61 mTarget = target; in setTarget()
79 return mTarget.getTextBeforeCursor(n, flags); in getTextBeforeCursor()
88 return mTarget.getTextAfterCursor(n, flags); in getTextAfterCursor()
97 return mTarget.getSelectedText(flags); in getSelectedText()
106 return mTarget.getCursorCapsMode(reqModes); in getCursorCapsMode()
115 return mTarget.getExtractedText(request, flags); in getExtractedText()
124 return mTarget.deleteSurroundingTextInCodePoints(beforeLength, afterLength); in deleteSurroundingTextInCodePoints()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositioningControllerTests.java56 private TaskPositioningController mTarget; field in TaskPositioningControllerTests
62 mTarget = mWm.mTaskPositioningController; in setUp()
77 assertFalse(mTarget.isPositioningLocked()); in testStartAndFinishPositioning()
78 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
80 assertTrue(mTarget.startMovingTask(mWindow.mClient, 0, 0)); in testStartAndFinishPositioning()
82 assertTrue(mTarget.isPositioningLocked()); in testStartAndFinishPositioning()
83 assertNotNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
85 mTarget.finishTaskPositioning(); in testStartAndFinishPositioning()
89 assertFalse(mTarget.isPositioningLocked()); in testStartAndFinishPositioning()
90 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
[all …]
DPersisterQueueTests.java55 private final PersisterQueue mTarget = field in PersisterQueueTests
65 mTarget.addListener(mListener); in setUp()
69 mTarget.startPersisting(); in setUp()
77 mTarget.stopPersisting(); in tearDown()
78 mTarget.removeListener(mListener); in tearDown()
95 mTarget.addItem(mFactory.createItem(), false); in testProcessOneItem()
119 mTarget.addItem(mFactory.createItem(), true); in testProcessOneItem_Flush()
143 mTarget.addItem(mFactory.createItem(), false); in testProcessTwoItems()
144 mTarget.addItem(mFactory.createItem(), false); in testProcessTwoItems()
171 mTarget.addItem(mFactory.createItem(), false); in testProcessTwoItems_OneAfterAnother()
[all …]
DLaunchParamsPersisterTests.java98 private LaunchParamsPersister mTarget; field in LaunchParamsPersisterTests
132 mTarget = new LaunchParamsPersister(mPersisterQueue, mSupervisor, mUserFolderGetter); in setUp()
140 mTarget.onSystemReady(); in setUp()
155 mTarget.getLaunchParams(mTestTask, null, mResult); in testReturnsEmptyLaunchParamsByDefault()
162 mTarget.saveTask(mTestTask); in testSavesAndRestoresLaunchParamsInSameInstance()
164 mTarget.getLaunchParams(mTestTask, null, mResult); in testSavesAndRestoresLaunchParamsInSameInstance()
173 mTarget.saveTask(mTestTask); in testFetchesSameResultWithActivity()
178 mTarget.getLaunchParams(null, activity, mResult); in testFetchesSameResultWithActivity()
187 mTarget.saveTask(mTestTask); in testReturnsEmptyDisplayIfDisplayIsNotFound()
191 mTarget.getLaunchParams(mTestTask, null, mResult); in testReturnsEmptyDisplayIfDisplayIsNotFound()
[all …]
DDisplayWindowSettingsTests.java87 private DisplayWindowSettings mTarget; field in DisplayWindowSettingsTests
106 mTarget = new DisplayWindowSettings(mWm, mStorage); in setUp()
132 mTarget.applySettingsToDisplayLocked(mPrimaryDisplay); in testPrimaryDisplayDefaultToFullscreen_NoFreeformSupport()
142 mTarget.applySettingsToDisplayLocked(mPrimaryDisplay); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_NoDesktopMode()
153 mTarget.applySettingsToDisplayLocked(mPrimaryDisplay); in testPrimaryDisplayDefaultToFullscreen_HasFreeformSupport_NonPc_HasDesktopMode()
164 mTarget.applySettingsToDisplayLocked(mPrimaryDisplay); in testPrimaryDisplayDefaultToFreeform_HasFreeformSupport_IsPc()
172 mTarget.applySettingsToDisplayLocked(mPrimaryDisplay); in testPrimaryDisplayUpdateToFreeform_HasFreeformSupport_IsPc()
177 mTarget.updateSettingsForDisplay(mPrimaryDisplay); in testPrimaryDisplayUpdateToFreeform_HasFreeformSupport_IsPc()
185 mTarget.applySettingsToDisplayLocked(mSecondaryDisplay); in testSecondaryDisplayDefaultToFullscreen_NoFreeformSupport()
195 mTarget.applySettingsToDisplayLocked(mSecondaryDisplay); in testSecondaryDisplayDefaultToFreeform_HasFreeformSupport_NonPc_NoDesktopMode()
[all …]
DDisplayRotationTests.java117 private DisplayRotation mTarget; field in DisplayRotationTests
164 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testLocksUserRotation_LockRotation_DefaultDisplay()
165 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testLocksUserRotation_LockRotation_DefaultDisplay()
179 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
180 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
192 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistUserRotation_UnlockRotation_DefaultDisplay()
204 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay()
214 mTarget.setFixedToUserRotation(FIXED_TO_USER_ROTATION_ENABLED); in testPersistsFixedToUserRotation()
220 mTarget.setFixedToUserRotation(FIXED_TO_USER_ROTATION_DISABLED); in testPersistsFixedToUserRotation()
226 mTarget.setFixedToUserRotation(FIXED_TO_USER_ROTATION_DEFAULT); in testPersistsFixedToUserRotation()
[all …]
DTaskLaunchParamsModifierTests.java79 private TaskLaunchParamsModifier mTarget; field in TaskLaunchParamsModifierTests
90 mTarget = new TaskLaunchParamsModifier(mSupervisor); in setUp()
101 assertEquals(RESULT_SKIP, mTarget.onCalculate(task, /* layout */ null, in testReturnsSkipWithEmptyActivity()
112 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(/* task */ null, /* layout */ null, in testDefaultToPrimaryDisplayArea()
126 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(/* task */ null, /* layout */ null, in testUsesPreviousDisplayAreaIfSet()
143 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(/* task */ null, /* layout */ null, in testUsesSourcesDisplayAreaIfSet()
163 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(/* task */ null, /* layout */ null, in testUsesOptionsDisplayIdIfSet()
184 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(/* task */ null, /* layout */ null, in testUsesOptionsDisplayAreaTokenIfSet()
202 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(reusableActivity.getTask(), in testUsesTasksDisplayAreaIdPriorToSourceIfSet()
215 assertEquals(RESULT_CONTINUE, mTarget.onCalculate(source.getTask(), null /* layout */, in testUsesTaskDisplayAreaIdIfSet()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DScrollViewCaptureHelperTest.java54 private ScrollView mTarget; field in ScrollViewCaptureHelperTest
83 mTarget = new ScrollView(getContext()); in setUp()
84 mParent.addView(mTarget, new ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)); in setUp()
88 mTarget.addView(mContent, new ViewGroup.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in setUp()
122 Rect scrollBounds = svc.onComputeScrollBounds(mTarget); in onPrepareForStart()
123 svc.onPrepareForStart(mTarget, scrollBounds); in onPrepareForStart()
181 final int startScrollY = assertScrollToY(mTarget, 0); in onScrollRequested_up_fromTop()
184 Rect scrollBounds = svc.onComputeScrollBounds(mTarget); in onScrollRequested_up_fromTop()
185 svc.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_up_fromTop()
191 Rect result = svc.onScrollRequested(mTarget, scrollBounds, request); in onScrollRequested_up_fromTop()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DTextureSource.java28 private int mTarget; field in TextureSource
55 return mTarget; in getTarget()
59 GLES20.glBindTexture(mTarget, mTexId); in bind()
65 GLToolbox.allocateTexturePixels(mTexId, mTarget, width, height); in allocate()
71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height); in allocateWithPixels()
77 GLToolbox.setTexturePixels(mTexId, mTarget, bitmap); in allocateWithBitmapPixels()
82 GLES20.glBindTexture(mTarget, mTexId); in generateMipmaps()
83 GLES20.glTexParameteri(mTarget, in generateMipmaps()
86 GLES20.glGenerateMipmap(mTarget); in generateMipmaps()
87 GLES20.glBindTexture(mTarget, 0); in generateMipmaps()
[all …]
/frameworks/base/core/java/android/os/
DMessenger.java33 private final IMessenger mTarget; field in Messenger
44 mTarget = target.getIMessenger(); in Messenger()
57 mTarget.send(message); in send()
67 return mTarget.asBinder(); in getBinder()
79 return mTarget.asBinder().equals(((Messenger)otherObj) in equals()
80 .mTarget.asBinder()); in equals()
87 return mTarget.asBinder().hashCode(); in hashCode()
95 out.writeStrongBinder(mTarget.asBinder()); in writeToParcel()
120 out.writeStrongBinder(messenger != null ? messenger.mTarget.asBinder() in writeMessengerOrNullToParcel()
146 mTarget = IMessenger.Stub.asInterface(target); in Messenger()
DBasicShellCommandHandler.java39 private Binder mTarget; field in BasicShellCommandHandler
59 mTarget = target; in init()
92 Log.d(TAG, "Starting command " + mCmd + " on " + mTarget, here); in exec()
99 if (DEBUG) Log.d(TAG, "Executed command " + mCmd + " on " + mTarget); in exec()
110 if (DEBUG) Log.d(TAG, "Flushing output streams on " + mTarget); in exec()
117 if (DEBUG) Log.d(TAG, "Sending command result on " + mTarget); in exec()
119 if (DEBUG) Log.d(TAG, "Finished command " + mCmd + " on " + mTarget); in exec()
299 return mTarget; in getTarget()
DFileBridge.java61 private FileDescriptor mTarget; field in FileBridge
81 IoUtils.closeQuietly(mTarget); in forceClose()
88 mTarget = target; in setTargetFile()
110 IoBridge.write(mTarget, temp, 0, n); in run()
116 Os.fsync(mTarget); in run()
121 Os.fsync(mTarget); in run()
122 Os.close(mTarget); in run()
/frameworks/base/core/java/android/content/
DIntentSender.java60 private final IIntentSender mTarget; field in IntentSender
193 int res = ActivityManager.getService().sendIntentSender(mTarget, mWhitelistToken, in sendIntent()
214 .getPackageForIntentSender(mTarget); in getTargetPackage()
233 .getPackageForIntentSender(mTarget); in getCreatorPackage()
252 .getUidForIntentSender(mTarget); in getCreatorUid()
273 .getUidForIntentSender(mTarget); in getCreatorUserHandle()
289 return mTarget.asBinder().equals(((IntentSender)otherObj) in equals()
290 .mTarget.asBinder()); in equals()
297 return mTarget.asBinder().hashCode(); in hashCode()
306 sb.append(mTarget != null ? mTarget.asBinder() : null); in toString()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java84 private File mTarget; field in FileUtilsTest
98 mTarget = getContext().getFilesDir(); in setUp()
99 FileUtils.deleteContents(mTarget); in setUp()
105 FileUtils.deleteContents(mTarget); in tearDown()
131 final File src = new File(mTarget, "src"); in testCopy_FileToFile()
132 final File dest = new File(mTarget, "dest"); in testCopy_FileToFile()
152 final File src = new File(mTarget, "src"); in testCopy_FileToPipe()
172 final File dest = new File(mTarget, "dest"); in testCopy_PipeToFile()
211 final File dest = new File(mTarget, "dest"); in testCopy_ShortPipeToFile()
402 assertNameEquals("test.jpg", FileUtils.buildUniqueFile(mTarget, "image/jpeg", "test")); in testBuildUniqueFile_normal()
[all …]
/frameworks/base/core/java/android/app/prediction/
DAppTargetEvent.java65 private final AppTarget mTarget; field in AppTargetEvent
71 mTarget = target; in AppTargetEvent()
77 mTarget = parcel.readParcelable(null); in AppTargetEvent()
87 return mTarget; in getTarget()
110 return mTarget.equals(other.mTarget) in equals()
122 dest.writeParcelable(mTarget, 0); in writeToParcel()
146 private AppTarget mTarget; field in AppTargetEvent.Builder
155 mTarget = target; in Builder()
173 return new AppTargetEvent(mTarget, mLocation, mAction); in build()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DTarget.java304 private final Target mTarget; field in Target.Builder
310 mTarget = new Target(); in Builder()
317 mTarget = new Target(target); in Builder()
324 mTarget.mSaturationTargets[INDEX_MIN] = value; in setMinimumSaturation()
332 mTarget.mSaturationTargets[INDEX_TARGET] = value; in setTargetSaturation()
340 mTarget.mSaturationTargets[INDEX_MAX] = value; in setMaximumSaturation()
348 mTarget.mLightnessTargets[INDEX_MIN] = value; in setMinimumLightness()
356 mTarget.mLightnessTargets[INDEX_TARGET] = value; in setTargetLightness()
364 mTarget.mLightnessTargets[INDEX_MAX] = value; in setMaximumLightness()
380 mTarget.mWeights[INDEX_WEIGHT_SAT] = weight; in setSaturationWeight()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DStatement.java49 private final AbstractAsset mTarget; field in Statement
55 mTarget = target; in Statement()
72 return mTarget; in getTarget()
111 if (!mTarget.equals(statement.mTarget)) { in equals()
123 int result = mTarget.hashCode(); in hashCode()
135 statement.append(mTarget); in toString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationEntryHelper.java36 private final NotificationEntry mTarget; field in NotificationEntryHelper.ModifiedRankingBuilder
40 mTarget = target; in ModifiedRankingBuilder()
46 mTarget.setRanking(ranking); in build()
52 private final NotificationEntry mTarget; field in NotificationEntryHelper.ModifiedSbnBuilder
56 mTarget = target; in ModifiedSbnBuilder()
62 mTarget.setSbn(sbn); in build()
/frameworks/base/core/java/android/app/
DPendingIntent.java105 private final IIntentSender mTarget; field in PendingIntent
675 return new IntentSender(mTarget, mWhitelistToken); in getIntentSender()
684 ActivityManager.getService().cancelIntentSender(mTarget); in cancel()
914 mTarget, mWhitelistToken, code, intent, resolvedType, in sendAndReturnResult()
931 .getPackageForIntentSender(mTarget); in getTargetPackage()
959 .getPackageForIntentSender(mTarget); in getCreatorPackage()
986 .getUidForIntentSender(mTarget); in getCreatorUid()
1017 ActivityManager.getService().registerIntentSenderCancelListener(mTarget, in registerCancelListener()
1051 ActivityManager.getService().unregisterIntentSenderCancelListener(mTarget, in unregisterCancelListener()
1084 .getUidForIntentSender(mTarget); in getCreatorUserHandle()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java63 private TestableBatterySaverStateMachine mTarget; field in BatterySaverStateMachineTest
109 mTarget.setBatteryStatus(mPersistedState.powered, mPersistedState.batteryLevel, in pushBatteryStatus()
114 mTarget.setSettingsLocked( in pushGlobalSettings()
210 mTarget = new TestableBatterySaverStateMachine(); in initDevice()
211 spyOn(mTarget); in initDevice()
212 doNothing().when(mTarget).triggerStickyDisabledNotification(); in initDevice()
215 mTarget.onBootCompleted(); in initDevice()
259 mTarget.setBatterySaverEnabledManually(true); in testNoAutoBatterySaver()
317 mTarget.setBatterySaverEnabledManually(false); in testNoAutoBatterySaver()
390 mTarget.setBatterySaverEnabledManually(false); // Manually disable -> snooze. in testAutoBatterySaver()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceSelectAction.java61 private final HdmiDeviceInfo mTarget; field in DeviceSelectAction
78 mTarget = target; in DeviceSelectAction()
84 return mTarget.getLogicalAddress(); in getTargetAddress()
162 sendUserControlPressedAndReleased(mTarget.getLogicalAddress(), in turnOnDevice()
164 sendUserControlPressedAndReleased(mTarget.getLogicalAddress(), in turnOnDevice()
174 tv().setActivePath(mTarget.getPhysicalAddress()); in sendSetStreamPath()
176 getSourceAddress(), mTarget.getPhysicalAddress())); in sendSetStreamPath()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DRetargetFilter.java36 private int mTarget = -1; field in RetargetFilter
45 mTarget = FrameFormat.readTargetString(mTargetString); in setupPorts()
55 retargeted.setTarget(mTarget); in getOutputFormat()
65 Frame output = context.getFrameManager().duplicateFrameToTarget(input, mTarget); in process()
/frameworks/base/services/core/java/com/android/server/wm/
DWallpaperAnimationAdapter.java51 private RemoteAnimationTarget mTarget; field in WallpaperAnimationAdapter
94 mTarget = new RemoteAnimationTarget(-1, -1, getLeash(), false, null, null, in createRemoteAnimationTarget()
97 return mTarget; in createRemoteAnimationTarget()
168 if (mTarget != null) { in dump()
171 mTarget.dump(pw, prefix + " "); in dump()
181 if (mTarget != null) { in dumpDebug()
182 mTarget.dumpDebug(proto, TARGET); in dumpDebug()
/frameworks/compile/libbcc/lib/
DCompilerConfig.cpp53 : mTriple(pTriple), mFullPrecision(true), mTarget(nullptr) { in CompilerConfig()
86 mTarget = llvm::TargetRegistry::lookupTarget(mTriple, error); in initializeTarget()
87 if (mTarget != nullptr) { in initializeTarget()
97 if (mTarget != nullptr) { in initializeArch()
98 mArchType = llvm::Triple::getArchTypeForLLVMName(mTarget->getName()); in initializeArch()
229 ALOGE("Unsupported architecture type: %s", mTarget->getName()); in initializeArch()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAHandlerReflector.h28 : mTarget(target) { in AHandlerReflector()
33 sp<T> target = mTarget.promote(); in onMessageReceived()
40 wp<T> mTarget;

1234