Home
last modified time | relevance | path

Searched refs:obtain (Results 1 – 25 of 2233) sorted by relevance

12345678910>>...90

/frameworks/base/core/tests/coretests/src/android/os/
DParcelNullabilityTest.java41 Parcel p = Parcel.obtain(); in nullByteArray()
49 Parcel p = Parcel.obtain(); in nullBlob()
57 Parcel p = Parcel.obtain(); in nullString()
65 Parcel p = Parcel.obtain(); in nullCharSequence()
73 Parcel p = Parcel.obtain(); in nullStrongBinder()
81 Parcel p = Parcel.obtain(); in nullStringInterface()
89 Parcel p = Parcel.obtain(); in nullFileDescriptor()
99 Parcel p = Parcel.obtain(); in nullRawFileDescriptor()
109 Parcel p = Parcel.obtain(); in nullRawFileDescriptorArray()
117 Parcel p = Parcel.obtain(); in nullMap()
[all …]
DParcelTest.java38 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterWrite()
58 Parcel p = Parcel.obtain(); in testCallingWorkSourceUidAfterEnforce()
75 Parcel p = Parcel.obtain(); in testParcelWithMultipleHeaders()
101 final Parcel p = Parcel.obtain(); in testStrings()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DObjectPoolTests.java67 ActivityConfigurationChangeItem.obtain(Configuration.EMPTY); in testRecycleActivityConfigurationChangeItem()
68 ActivityConfigurationChangeItem item = ActivityConfigurationChangeItem.obtain(config()); in testRecycleActivityConfigurationChangeItem()
75 ActivityConfigurationChangeItem item2 = ActivityConfigurationChangeItem.obtain(config()); in testRecycleActivityConfigurationChangeItem()
82 ActivityResultItem emptyItem = ActivityResultItem.obtain(null); in testRecycleActivityResultItem()
83 ActivityResultItem item = ActivityResultItem.obtain(resultInfoList()); in testRecycleActivityResultItem()
90 ActivityResultItem item2 = ActivityResultItem.obtain(resultInfoList()); in testRecycleActivityResultItem()
97 ConfigurationChangeItem emptyItem = ConfigurationChangeItem.obtain(null); in testRecycleConfigurationChangeItem()
98 ConfigurationChangeItem item = ConfigurationChangeItem.obtain(config()); in testRecycleConfigurationChangeItem()
105 ConfigurationChangeItem item2 = ConfigurationChangeItem.obtain(config()); in testRecycleConfigurationChangeItem()
112 DestroyActivityItem emptyItem = DestroyActivityItem.obtain(false, 0); in testRecycleDestroyActivityItem()
[all …]
DTransactionParcelTests.java89 mParcel = Parcel.obtain(); in setUp()
95 ConfigurationChangeItem item = ConfigurationChangeItem.obtain(config()); in testConfigurationChange()
108 ActivityConfigurationChangeItem item = ActivityConfigurationChangeItem.obtain(config()); in testActivityConfigChange()
122 MoveToDisplayItem item = MoveToDisplayItem.obtain(4 /* targetDisplayId */, config()); in testMoveToDisplay()
135 NewIntentItem item = NewIntentItem.obtain(referrerIntentList(), false); in testNewIntent()
148 ActivityResultItem item = ActivityResultItem.obtain(resultInfoList()); in testActivityResult()
160 DestroyActivityItem item = DestroyActivityItem.obtain(true /* finished */, in testDestroy()
196 LaunchActivityItem item = LaunchActivityItem.obtain(intent, ident, activityInfo, in testLaunch()
215 ActivityRelaunchItem item = ActivityRelaunchItem.obtain(resultInfoList(), in testRelaunch()
229 PauseActivityItem item = PauseActivityItem.obtain(true /* finished */, in testPause()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDoubleTapHelperTest.java83 MotionEvent evDownA = MotionEvent.obtain(downtimeA, in testDoubleTap_success()
89 MotionEvent evUpA = MotionEvent.obtain(downtimeA, in testDoubleTap_success()
95 MotionEvent evDownB = MotionEvent.obtain(downtimeB, in testDoubleTap_success()
101 MotionEvent evUpB = MotionEvent.obtain(downtimeB, in testDoubleTap_success()
130 MotionEvent evDownA = MotionEvent.obtain(downtimeA, in testSingleTap_timeout()
136 MotionEvent evUpA = MotionEvent.obtain(downtimeA, in testSingleTap_timeout()
159 MotionEvent evDownA = MotionEvent.obtain(downtimeA, in testSingleTap_slop()
165 MotionEvent evUpA = MotionEvent.obtain(downtimeA, in testSingleTap_slop()
187 MotionEvent evDownA = MotionEvent.obtain(downtimeA, in testDoubleTap_slop()
193 MotionEvent evUpA = MotionEvent.obtain(downtimeA, in testDoubleTap_slop()
[all …]
DNearestTouchFrameTest.java66 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testNoActionOnLargeDevices()
83 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testInvisibleViews()
103 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testNearestView_DetachedViewsExcluded()
119 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testHorizontalSelection_Left()
135 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testHorizontalSelection_Right()
151 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testVerticalSelection_Top()
167 MotionEvent ev = MotionEvent.obtain(0, 0, 0, in testVerticalSelection_Bottom()
181 MotionEvent ev = MotionEvent.obtain(0, 0, 0, 5 /* x */, 18 /* y */, 0); in testViewNotAttachedNoCrash()
/frameworks/base/core/java/android/database/
DBulkCursorNative.java159 Parcel data = Parcel.obtain(); in getWindow()
160 Parcel reply = Parcel.obtain(); in getWindow()
180 Parcel data = Parcel.obtain(); in onMove()
181 Parcel reply = Parcel.obtain(); in onMove()
196 Parcel data = Parcel.obtain(); in deactivate()
197 Parcel reply = Parcel.obtain(); in deactivate()
211 Parcel data = Parcel.obtain(); in close()
212 Parcel reply = Parcel.obtain(); in close()
225 Parcel data = Parcel.obtain(); in requery()
226 Parcel reply = Parcel.obtain(); in requery()
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DNotificationVisibility.java100 return obtain(this.key, this.rank, this.count, this.visible, this.location); in clone()
144 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible) { in obtain() method in NotificationVisibility
145 return obtain(key, rank, count, visible, in obtain()
152 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible, in obtain() method in NotificationVisibility
154 NotificationVisibility vo = obtain(); in obtain()
163 private static NotificationVisibility obtain(Parcel in) { in obtain() method in NotificationVisibility
164 NotificationVisibility vo = obtain(); in obtain()
169 private static NotificationVisibility obtain() { in obtain() method in NotificationVisibility
192 return obtain(parcel);
/frameworks/base/core/java/android/os/
DMessage.java153 public static Message obtain() { in obtain() method in Message
173 public static Message obtain(Message orig) { in obtain() method in Message
174 Message m = obtain(); in obtain()
196 public static Message obtain(Handler h) { in obtain() method in Message
197 Message m = obtain(); in obtain()
210 public static Message obtain(Handler h, Runnable callback) { in obtain() method in Message
211 Message m = obtain(); in obtain()
225 public static Message obtain(Handler h, int what) { in obtain() method in Message
226 Message m = obtain(); in obtain()
241 public static Message obtain(Handler h, int what, Object obj) { in obtain() method in Message
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java63 MotionEvent motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId()
67 MotionEvent motionEvent_Single = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testObtainWithDisplayId()
83 motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId()
91 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testCalculatesCursorPositionForTouchscreenEvents()
101 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testCalculatesCursorPositionForSimpleMouseEvents()
111 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testCalculatesCursorPositionForSimpleMouseEventsWithOffset()
137 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, in testCalculatesCursorPositionForMultiTouchMouseEvents()
157 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testObtainGeneratesUniqueId()
167 final MotionEvent event = MotionEvent.obtain(0 /* downTime */, 0 /* eventTime */, in testObtainGeneratesIdWithRightSource()
DVelocityTest.java39 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions()
51 VelocityTracker vt = VelocityTracker.obtain(); in testClear()
66 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration()
77 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration()
89 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal()
102 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical()
119 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points()
136 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints()
158 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime()
180 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace()
[all …]
DWindowInfoTest.java51 WindowInfo w1 = WindowInfo.obtain(); in testObtain()
55 WindowInfo w2 = WindowInfo.obtain(w1); in testObtain()
64 Parcel parcel = Parcel.obtain(); in testParceling()
65 WindowInfo w1 = WindowInfo.obtain(); in testParceling()
80 WindowInfo w = WindowInfo.obtain(); in testDefaultValues()
100 WindowInfo w = WindowInfo.obtain(); in testRecycle()
DKeyEventTest.java57 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtain()
75 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainFromKeyEvent()
77 KeyEvent keyEvent2 = KeyEvent.obtain(keyEvent); in testObtainFromKeyEvent()
84 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainWithDisplayId()
110 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainGeneratesUniqueId()
132 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainGeneratesIdWithRightSource()
149 Parcel parcel = Parcel.obtain(); in testParcelUnparcel()
167 return KeyEvent.obtain(ID, DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, METASTATE, in createKey()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutPerfTest.java73 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_FixedText_NoStyle_Greedy_NoHyphenation()
88 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_NoHyphenation()
103 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_Hyphenation()
118 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_NoHyphenation()
133 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_Hyphenation()
148 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_Styled_Greedy_NoHyphenation()
165 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation()
183 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent()
201 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation()
218 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Balanced_NoHyphenation()
[all …]
/frameworks/base/core/java/android/speech/
DSpeechRecognizer.java250 putMessage(Message.obtain(mHandler, MSG_CHANGE_LISTENER, listener)); in setRecognitionListener()
295 putMessage(Message.obtain(mHandler, MSG_START, recognizerIntent)); in startListening()
310 putMessage(Message.obtain(mHandler, MSG_STOP)); in stopListening()
320 putMessage(Message.obtain(mHandler, MSG_CANCEL)); in cancel()
475 Message.obtain(mInternalHandler, MSG_BEGINNING_OF_SPEECH).sendToTarget(); in onBeginningOfSpeech()
479 Message.obtain(mInternalHandler, MSG_BUFFER_RECEIVED, buffer).sendToTarget(); in onBufferReceived()
483 Message.obtain(mInternalHandler, MSG_END_OF_SPEECH).sendToTarget(); in onEndOfSpeech()
487 Message.obtain(mInternalHandler, MSG_ERROR, error).sendToTarget(); in onError()
491 Message.obtain(mInternalHandler, MSG_READY_FOR_SPEECH, noiseParams).sendToTarget(); in onReadyForSpeech()
495 Message.obtain(mInternalHandler, MSG_RESULTS, results).sendToTarget(); in onResults()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java127 SomeArgs args = SomeArgs.obtain(); in obtainMessageBOO()
157 SomeArgs args = SomeArgs.obtain(); in obtainMessageIIOO()
165 SomeArgs args = SomeArgs.obtain(); in obtainMessageIOO()
172 SomeArgs args = SomeArgs.obtain(); in obtainMessageIOOO()
181 SomeArgs args = SomeArgs.obtain(); in obtainMessageIIOOO()
190 SomeArgs args = SomeArgs.obtain(); in obtainMessageIIOOOO()
200 SomeArgs args = SomeArgs.obtain(); in obtainMessageOO()
208 SomeArgs args = SomeArgs.obtain(); in obtainMessageOOO()
217 SomeArgs args = SomeArgs.obtain(); in obtainMessageOOOO()
227 SomeArgs args = SomeArgs.obtain(); in obtainMessageOOOOO()
[all …]
/frameworks/base/core/java/android/content/
DContentProviderNative.java449 Parcel data = Parcel.obtain(); in query()
450 Parcel reply = Parcel.obtain(); in query()
498 Parcel data = Parcel.obtain(); in getType()
499 Parcel reply = Parcel.obtain(); in getType()
518 Parcel data = Parcel.obtain(); in getTypeAsync()
536 Parcel data = Parcel.obtain(); in insert()
537 Parcel reply = Parcel.obtain(); in insert()
561 Parcel data = Parcel.obtain(); in bulkInsert()
562 Parcel reply = Parcel.obtain(); in bulkInsert()
586 Parcel data = Parcel.obtain(); in applyBatch()
[all …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java45 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_noUsers()
65 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_zeroUsers()
85 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_pos()
110 Parcel parcel = Parcel.obtain(); in testKeyphraseSoundModelParcelUnparcel_noData()
135 Parcel parcel = Parcel.obtain(); in testKeyphraseSoundModelParcelUnparcel_zeroData()
157 Parcel parcel = Parcel.obtain(); in testKeyphraseSoundModelParcelUnparcel_noKeyphrases()
179 Parcel parcel = Parcel.obtain(); in testKeyphraseSoundModelParcelUnparcel_zeroKeyphrases()
206 Parcel parcel = Parcel.obtain(); in testKeyphraseSoundModelParcelUnparcel_largeData()
226 Parcel parcel = Parcel.obtain(); in testRecognitionEventParcelUnparcel_noData()
243 Parcel parcel = Parcel.obtain(); in testRecognitionEventParcelUnparcel_zeroData()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DAdvertiseDataTest.java42 Parcel parcel = Parcel.obtain(); in testEmptyData()
53 Parcel parcel = Parcel.obtain(); in testEmptyServiceUuid()
64 Parcel parcel = Parcel.obtain(); in testEmptyManufacturerData()
79 Parcel parcel = Parcel.obtain(); in testEmptyServiceData()
94 Parcel parcel = Parcel.obtain(); in testServiceUuid()
110 Parcel parcel = Parcel.obtain(); in testManufacturerData()
131 Parcel parcel = Parcel.obtain(); in testServiceData()
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java468 Message msg = Message.obtain(); in disconnect()
506 Message msg = Message.obtain(); in sendMessage()
519 Message msg = Message.obtain(); in sendMessage()
534 Message msg = Message.obtain(); in sendMessage()
551 Message msg = Message.obtain(); in sendMessage()
566 Message msg = Message.obtain(); in sendMessage()
597 Message msg = Message.obtain(); in replyToMessage()
611 Message msg = Message.obtain(); in replyToMessage()
626 Message msg = Message.obtain(); in replyToMessage()
644 Message msg = Message.obtain(); in replyToMessage()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DConnectionServiceAdapterServant.java387 SomeArgs args = SomeArgs.obtain();
400 SomeArgs args = SomeArgs.obtain();
431 SomeArgs args = SomeArgs.obtain();
467 SomeArgs args = SomeArgs.obtain();
475 SomeArgs args = SomeArgs.obtain();
484 SomeArgs args = SomeArgs.obtain();
499 SomeArgs args = SomeArgs.obtain();
508 SomeArgs args = SomeArgs.obtain();
517 SomeArgs args = SomeArgs.obtain();
532 SomeArgs args = SomeArgs.obtain();
[all …]
/frameworks/base/core/java/android/widget/
DExpandableListConnector.java124 return PositionMetadata.obtain(flPos, ExpandableListPosition.GROUP, flPos, in getUnflattenedPos()
163 return PositionMetadata.obtain(flPos, ExpandableListPosition.GROUP, in getUnflattenedPos()
176 return PositionMetadata.obtain(flPos, ExpandableListPosition.CHILD, in getUnflattenedPos()
243 return PositionMetadata.obtain(flPos, ExpandableListPosition.GROUP, groupPos, -1, in getUnflattenedPos()
274 return PositionMetadata.obtain(pos.groupPos, pos.type, in getFlattenedPos()
304 return PositionMetadata.obtain(midExpGm.flPos, pos.type, in getFlattenedPos()
308 return PositionMetadata.obtain(midExpGm.flPos + pos.childPos in getFlattenedPos()
347 return PositionMetadata.obtain(flPos, pos.type, pos.groupPos, in getFlattenedPos()
361 return PositionMetadata.obtain(flPos, pos.type, pos.groupPos, in getFlattenedPos()
595 ExpandableListPosition elGroupPos = ExpandableListPosition.obtain( in collapseGroup()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityEventTest.java55 AccessibilityEvent event = AccessibilityEvent.obtain(); in testImportantForAccessibiity_getSetWorkAcrossParceling()
66 AccessibilityEvent event = AccessibilityEvent.obtain(); in testSouceNodeId_getSetWorkAcrossParceling()
76 AccessibilityEvent event = AccessibilityEvent.obtain(); in testWindowChanges_getSetWorkAcrossParceling()
94 Parcel parcel = Parcel.obtain(); in copyEventViaParcel()
/frameworks/base/core/tests/benchmarks/src/android/os/
DParcelArrayBenchmark.java40 mWriteParcel = Parcel.obtain(); in setUp()
46 mByteParcel = Parcel.obtain(); in setUp()
48 mIntParcel = Parcel.obtain(); in setUp()
50 mLongParcel = Parcel.obtain(); in setUp()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java89 AccessibilityEvent event = AccessibilityEvent.obtain(); in testOnPopulateEventForVirtualView()
102 AccessibilityEvent event = AccessibilityEvent.obtain(); in testOnPopulateEventForVirtualViewHost()
116 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testOnPopulateNodeForVirtualView()
139 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testNullLayout()
155 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testRtlLayout()
179 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testMultilineLink()
206 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testRtlMultilineLink()
239 AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(); in testBidiMultilineLink()
263 AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_CLICKED); in testMethodDelegation()
287 AccessibilityNodeInfoCompat accessibilityNodeInfo = AccessibilityNodeInfoCompat.obtain(); in testMethodDelegation()

12345678910>>...90