Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/frameworks/av/media/libmediametrics/
DMediaMetrics.cpp37 android::MediaAnalyticsItem *item = android::MediaAnalyticsItem::create(key); in mediametrics_create() local
38 return (mediametrics_handle_t) item; in mediametrics_create()
42 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_delete() local
43 if (item == NULL) return; in mediametrics_delete()
44 delete item; in mediametrics_delete()
48 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_getKey() local
49 if (item == NULL) return NULL; in mediametrics_getKey()
50 return strdup(item->getKey().c_str()); in mediametrics_getKey()
55 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_setUid() local
56 if (item != NULL) item->setUid(uid); in mediametrics_setUid()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DObjectPoolTests.java67 ActivityConfigurationChangeItem item = ActivityConfigurationChangeItem.obtain(config()); in testRecycleActivityConfigurationChangeItem() local
68 assertNotSame(item, emptyItem); in testRecycleActivityConfigurationChangeItem()
69 assertFalse(item.equals(emptyItem)); in testRecycleActivityConfigurationChangeItem()
71 item.recycle(); in testRecycleActivityConfigurationChangeItem()
72 assertEquals(item, emptyItem); in testRecycleActivityConfigurationChangeItem()
75 assertSame(item, item2); in testRecycleActivityConfigurationChangeItem()
82 ActivityResultItem item = ActivityResultItem.obtain(resultInfoList()); in testRecycleActivityResultItem() local
83 assertNotSame(item, emptyItem); in testRecycleActivityResultItem()
84 assertFalse(item.equals(emptyItem)); in testRecycleActivityResultItem()
86 item.recycle(); in testRecycleActivityResultItem()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemTest.java67 Item item = new Item(); in testOnBindView() local
68 item.setTitle("TestTitle"); in testOnBindView()
69 item.setSummary("TestSummary"); in testOnBindView()
72 item.setIcon(icon); in testOnBindView()
79 item.onBindView(view); in testOnBindView()
91 Item item = new Item(); in testSingleLineItem() local
92 item.setTitle("TestTitle"); in testSingleLineItem()
95 item.onBindView(view); in testSingleLineItem()
104 Item item = new Item(); in testProperties() local
105 item.registerObserver(mObserver); in testProperties()
[all …]
DButtonBarItemTest.java54 ButtonBarItem item = new ButtonBarItem(); in testFindItemById() local
55 item.setId(888); in testFindItemById()
60 item.addChild(mChild1); in testFindItemById()
61 item.addChild(mChild2); in testFindItemById()
62 item.addChild(mChild3); in testFindItemById()
64 assertEquals("Finding 123 should return child1", mChild1, item.findItemById(123)); in testFindItemById()
65 assertEquals("Finding 456 should return child2", mChild2, item.findItemById(456)); in testFindItemById()
66 assertEquals("Finding 789 should return child3", mChild3, item.findItemById(789)); in testFindItemById()
68 assertEquals("Finding 888 should return ButtonBarItem itself", item, item.findItemById(888)); in testFindItemById()
70 assertNull("Finding 999 should return null", item.findItemById(999)); in testFindItemById()
[all …]
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp38 Item item; in allocStringArray() local
39 item.mType = TYPE_STRING_ARRAY; in allocStringArray()
40 item.mObj = NULL; in allocStringArray()
41 item.mPtr = new hidl_string[size]; in allocStringArray()
42 mItems.push_back(item); in allocStringArray()
44 return static_cast<hidl_string *>(item.mPtr); in allocStringArray()
48 Item item; in allocTemporaryStorage() local
49 item.mType = TYPE_STORAGE; in allocTemporaryStorage()
50 item.mObj = NULL; in allocTemporaryStorage()
51 item.mPtr = malloc(size); in allocTemporaryStorage()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp90 Item *item = &mItems[i]; in clear() local
91 delete[] item->mName; in clear()
92 item->mName = NULL; in clear()
93 freeItemValue(item); in clear()
98 void AMessage::freeItemValue(Item *item) { in freeItemValue() argument
99 switch (item->mType) { in freeItemValue()
102 delete item->u.stringValue; in freeItemValue()
110 if (item->u.refValue != NULL) { in freeItemValue()
111 item->u.refValue->decStrong(this); in freeItemValue()
119 item->mType = kTypeInt32; // clear type in freeItemValue()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsConfigImplBase.java104 public synchronized int getConfigInt(int item) throws RemoteException { in getConfigInt() argument
105 if (mProvisionedIntValue.containsKey(item)) { in getConfigInt()
106 return mProvisionedIntValue.get(item); in getConfigInt()
108 int retVal = getImsConfigImpl().getConfigInt(item); in getConfigInt()
110 updateCachedValue(item, retVal, false); in getConfigInt()
125 public synchronized String getConfigString(int item) throws RemoteException { in getConfigString() argument
126 if (mProvisionedIntValue.containsKey(item)) { in getConfigString()
127 return mProvisionedStringValue.get(item); in getConfigString()
129 String retVal = getImsConfigImpl().getConfigString(item); in getConfigString()
131 updateCachedValue(item, retVal, false); in getConfigString()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/compat/stub/
DImsConfigImplBase.java74 public int getProvisionedValue(int item) throws RemoteException { in getProvisionedValue() argument
85 public String getProvisionedStringValue(int item) throws RemoteException { in getProvisionedStringValue() argument
98 public int setProvisionedValue(int item, int value) throws RemoteException { in setProvisionedValue() argument
111 public int setProvisionedStringValue(int item, String value) throws RemoteException { in setProvisionedStringValue() argument
178 public final void notifyProvisionedValueChanged(int item, int value) { in notifyProvisionedValueChanged() argument
179 mImsConfigStub.updateCachedValue(item, value, true); in notifyProvisionedValueChanged()
190 public final void notifyProvisionedValueChanged(int item, String value) { in notifyProvisionedValueChanged() argument
191 mImsConfigStub.updateCachedValue(item, value, true); in notifyProvisionedValueChanged()
235 public synchronized int getProvisionedValue(int item) throws RemoteException { in getProvisionedValue() argument
236 if (mProvisionedIntValue.containsKey(item)) { in getProvisionedValue()
[all …]
/frameworks/av/services/mediaanalytics/
Dstatsd_audiothread.cpp40 bool statsd_audiothread(MediaAnalyticsItem *item) in statsd_audiothread() argument
42 if (item == NULL) return false; in statsd_audiothread()
45 nsecs_t timestamp = item->getTimestamp(); in statsd_audiothread()
46 std::string pkgName = item->getPkgName(); in statsd_audiothread()
47 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_audiothread()
60 if (item->getCString(MM_PREFIX "type", &mytype)) { in statsd_audiothread()
64 if (item->getInt32(MM_PREFIX "framecount", &framecount)) { in statsd_audiothread()
68 if (item->getInt32(MM_PREFIX "samplerate", &samplerate)) { in statsd_audiothread()
72 if (item->getCString(MM_PREFIX "workMs.hist", &workhist)) { in statsd_audiothread()
76 if (item->getCString(MM_PREFIX "latencyMs.hist", &latencyhist)) { in statsd_audiothread()
[all …]
Dstatsd_recorder.cpp40 bool statsd_recorder(MediaAnalyticsItem *item) in statsd_recorder() argument
42 if (item == NULL) return false; in statsd_recorder()
45 nsecs_t timestamp = item->getTimestamp(); in statsd_recorder()
46 std::string pkgName = item->getPkgName(); in statsd_recorder()
47 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_recorder()
60 if (item->getCString("android.media.mediarecorder.audio.mime", &audio_mime)) { in statsd_recorder()
65 if (item->getCString("android.media.mediarecorder.video.mime", &video_mime)) { in statsd_recorder()
70 if (item->getInt32("android.media.mediarecorder.video-encoder-profile", &videoProfile)) { in statsd_recorder()
75 if (item->getInt32("android.media.mediarecorder.video-encoder-level", &videoLevel)) { in statsd_recorder()
80 if (item->getInt32("android.media.mediarecorder.width", &width)) { in statsd_recorder()
[all …]
Dstatsd_nuplayer.cpp44 bool statsd_nuplayer(MediaAnalyticsItem *item) in statsd_nuplayer() argument
46 if (item == NULL) return false; in statsd_nuplayer()
49 nsecs_t timestamp = item->getTimestamp(); in statsd_nuplayer()
50 std::string pkgName = item->getPkgName(); in statsd_nuplayer()
51 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_nuplayer()
63 metrics_proto.set_whichplayer(item->getKey().c_str()); in statsd_nuplayer()
66 if (item->getCString("android.media.mediaplayer.video.mime", &video_mime)) { in statsd_nuplayer()
70 if (item->getCString("android.media.mediaplayer.video.codec", &video_codec)) { in statsd_nuplayer()
75 if (item->getInt32("android.media.mediaplayer.width", &width)) { in statsd_nuplayer()
79 if (item->getInt32("android.media.mediaplayer.height", &height)) { in statsd_nuplayer()
[all …]
Dstatsd_codec.cpp40 bool statsd_codec(MediaAnalyticsItem *item) in statsd_codec() argument
42 if (item == NULL) return false; in statsd_codec()
45 nsecs_t timestamp = item->getTimestamp(); in statsd_codec()
46 std::string pkgName = item->getPkgName(); in statsd_codec()
47 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_codec()
59 if (item->getCString("android.media.mediacodec.codec", &codec)) { in statsd_codec()
64 if (item->getCString("android.media.mediacodec.mime", &mime)) { in statsd_codec()
69 if ( item->getCString("android.media.mediacodec.mode", &mode)) { in statsd_codec()
74 if ( item->getInt32("android.media.mediacodec.encoder", &encoder)) { in statsd_codec()
79 if ( item->getInt32("android.media.mediacodec.secure", &secure)) { in statsd_codec()
[all …]
Dstatsd_audiorecord.cpp40 bool statsd_audiorecord(MediaAnalyticsItem *item) in statsd_audiorecord() argument
42 if (item == NULL) return false; in statsd_audiorecord()
45 nsecs_t timestamp = item->getTimestamp(); in statsd_audiorecord()
46 std::string pkgName = item->getPkgName(); in statsd_audiorecord()
47 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_audiorecord()
58 if (item->getCString("android.media.audiorecord.encoding", &encoding)) { in statsd_audiorecord()
63 if (item->getCString("android.media.audiorecord.source", &source)) { in statsd_audiorecord()
68 if (item->getInt32("android.media.audiorecord.latency", &latency)) { in statsd_audiorecord()
73 if (item->getInt32("android.media.audiorecord.samplerate", &samplerate)) { in statsd_audiorecord()
78 if (item->getInt32("android.media.audiorecord.channels", &channels)) { in statsd_audiorecord()
[all …]
Dstatsd_audiotrack.cpp40 bool statsd_audiotrack(MediaAnalyticsItem *item) in statsd_audiotrack() argument
42 if (item == NULL) return false; in statsd_audiotrack()
45 nsecs_t timestamp = item->getTimestamp(); in statsd_audiotrack()
46 std::string pkgName = item->getPkgName(); in statsd_audiotrack()
47 int64_t pkgVersionCode = item->getPkgVersionCode(); in statsd_audiotrack()
61 if (item->getCString("android.media.audiotrack.streamtype", &streamtype)) { in statsd_audiotrack()
68 if (item->getCString("android.media.audiotrack.type", &contenttype)) { in statsd_audiotrack()
75 if (item->getCString("android.media.audiotrack.usage", &trackusage)) { in statsd_audiotrack()
82 if (item->getInt32("android.media.audiotrack.samplerate", &samplerate)) { in statsd_audiotrack()
89 if (item->getInt64("android.media.audiotrack.channelmask", &channelMask)) { in statsd_audiotrack()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java59 ButtonItem item = new ButtonItem(); in testDefaultItem() local
61 assertThat(item.isEnabled()).named("enabled").isTrue(); in testDefaultItem()
62 assertThat(item.getCount()).named("count").isEqualTo(0); in testDefaultItem()
63 assertThat(item.getLayoutResource()).named("layout resource").isEqualTo(0); in testDefaultItem()
64 assertThat(item.getTheme()).named("theme").isEqualTo(R.style.SuwButtonItem); in testDefaultItem()
65 assertThat(item.getText()).named("text").isNull(); in testDefaultItem()
70 ButtonItem item = new ButtonItem(); in testOnBindView() local
73 item.onBindView(new View(context)); in testOnBindView()
82 TestButtonItem item = new TestButtonItem(); in testCreateButton() local
83 final Button button = item.createButton(parent); in testCreateButton()
[all …]
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp90 BufferItem item; in getBufferItem() local
96 return item; in getBufferItem()
101 status_t err = mConsumer->acquireBuffer(&item, 0); in getBufferItem()
105 item.mSlot = -1; in getBufferItem()
106 return item; in getBufferItem()
109 item.mSlot = -1; in getBufferItem()
110 return item; in getBufferItem()
114 err = item.mFence->waitForever("GraphicBufferListener::getBufferItem"); in getBufferItem()
122 if (item.mGraphicBuffer != NULL) { in getBufferItem()
123 ALOGV("setting mBufferSlot %d", item.mSlot); in getBufferItem()
[all …]
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp79 const RingBufferItem& item = *it; in pinSelectedBuffer() local
81 cur.mCrop = item.mCrop; in pinSelectedBuffer()
82 cur.mTransform = item.mTransform; in pinSelectedBuffer()
83 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer()
84 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer()
85 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer()
86 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer()
164 void RingBufferConsumer::pinBufferLocked(const BufferItem& item) { in pinBufferLocked() argument
172 if (item.mGraphicBuffer == find.mGraphicBuffer) { in pinBufferLocked()
180 item.mTimestamp, item.mFrameNumber); in pinBufferLocked()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer_unittest.cc1034 protobuf_unittest::TestDiffMessage::Item* item = msg1.add_item(); in TEST() local
1035 item->add_ra(1); item->add_ra(2); item->add_ra(3); in TEST()
1036 item = msg1.add_item(); in TEST()
1037 item->add_ra(5); item->add_ra(6); in TEST()
1038 item = msg1.add_item(); in TEST()
1039 item->add_ra(1); item->add_ra(3); in TEST()
1040 item = msg1.add_item(); in TEST()
1041 item->add_ra(6); item->add_ra(7); item->add_ra(8); in TEST()
1043 item = msg2.add_item(); in TEST()
1044 item->add_ra(6); item->add_ra(5); in TEST()
[all …]
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/
DSwitchItemTest.java54 SwitchItem item = new SwitchItem(); in defaultLayout_baselineAligned_shouldBeFalse() local
55 LinearLayout layout = (LinearLayout) inflater.inflate(item.getDefaultLayoutResource(), null); in defaultLayout_baselineAligned_shouldBeFalse()
63 SwitchItem item = in verboseLayout_clipPadding_shouldBeFalse() local
69 ViewGroup layout = (ViewGroup) inflater.inflate(item.getLayoutResource(), null); in verboseLayout_clipPadding_shouldBeFalse()
75 SwitchItem item = new SwitchItem(); in testChecked() local
76 item.setTitle("TestTitle"); in testChecked()
77 item.setSummary("TestSummary"); in testChecked()
80 item.setChecked(true); in testChecked()
82 item.onBindView(view); in testChecked()
89 SwitchItem item = new SwitchItem(); in testNotChecked() local
[all …]
/frameworks/base/core/java/android/app/slice/
DSliceQuery.java40 for (SliceItem item : slice.getItems()) { in getPrimaryIcon()
41 if (Objects.equals(item.getFormat(), SliceItem.FORMAT_IMAGE)) { in getPrimaryIcon()
42 return item; in getPrimaryIcon()
44 if (!(compareTypes(item, SliceItem.FORMAT_SLICE) in getPrimaryIcon()
45 && item.hasHint(Slice.HINT_LIST)) in getPrimaryIcon()
46 && !item.hasHint(Slice.HINT_ACTIONS) in getPrimaryIcon()
47 && !item.hasHint(Slice.HINT_LIST_ITEM) in getPrimaryIcon()
48 && !compareTypes(item, SliceItem.FORMAT_ACTION)) { in getPrimaryIcon()
49 SliceItem icon = SliceQuery.find(item, SliceItem.FORMAT_IMAGE); in getPrimaryIcon()
75 private static boolean contains(SliceItem container, SliceItem item) { in contains() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java162 AppOpItem item = appOpList.get(i); in getAppOpItem() local
163 if (item.getCode() == code && item.getUid() == uid in getAppOpItem()
164 && item.getPackageName().equals(packageName)) { in getAppOpItem()
165 return item; in getAppOpItem()
173 AppOpItem item = getAppOpItem(mActiveItems, code, uid, packageName); in updateActives() local
174 if (item == null && active) { in updateActives()
175 item = new AppOpItem(code, uid, packageName, System.currentTimeMillis()); in updateActives()
176 mActiveItems.add(item); in updateActives()
177 if (DEBUG) Log.w(TAG, "Added item: " + item.toString()); in updateActives()
179 } else if (item != null && !active) { in updateActives()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DSimpleItemAnimator.java277 public final void dispatchRemoveFinished(ViewHolder item) { in dispatchRemoveFinished() argument
278 onRemoveFinished(item); in dispatchRemoveFinished()
279 dispatchAnimationFinished(item); in dispatchRemoveFinished()
291 public final void dispatchMoveFinished(ViewHolder item) { in dispatchMoveFinished() argument
292 onMoveFinished(item); in dispatchMoveFinished()
293 dispatchAnimationFinished(item); in dispatchMoveFinished()
301 public final void dispatchAddFinished(ViewHolder item) { in dispatchAddFinished() argument
302 onAddFinished(item); in dispatchAddFinished()
303 dispatchAnimationFinished(item); in dispatchAddFinished()
316 public final void dispatchChangeFinished(ViewHolder item, boolean oldItem) { in dispatchChangeFinished() argument
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java179 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument
194 public boolean invokeItem(MenuItemImpl item); in invokeItem() argument
256 final MenuPresenter item = ref.get(); in removeMenuPresenter() local
257 if (item == null || item == presenter) { in removeMenuPresenter()
357 final MenuItem item = getItem(i); in saveActionViewStates() local
358 final View v = item.getActionView(); in saveActionViewStates()
364 if (item.isActionViewExpanded()) { in saveActionViewStates()
365 outStates.putInt(EXPANDED_ACTION_VIEW_ID, item.getItemId()); in saveActionViewStates()
368 if (item.hasSubMenu()) { in saveActionViewStates()
369 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DFrameProcessorBase.cpp51 List<RangeListener>::iterator item = mRangeListeners.begin(); in registerListener() local
52 while (item != mRangeListeners.end()) { in registerListener()
53 if (item->minId == minId && in registerListener()
54 item->maxId == maxId && in registerListener()
55 item->listener == listener) { in registerListener()
61 item++; in registerListener()
74 List<RangeListener>::iterator item = mRangeListeners.begin(); in removeListener() local
75 while (item != mRangeListeners.end()) { in removeListener()
76 if (item->minId == minId && in removeListener()
77 item->maxId == maxId && in removeListener()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java74 final SettingsItem item = in init() local
79 item.setEnabled(true); in init()
90 mItems.add(item); in init()
92 mItems.add(pos, item); in init()
95 mItems.add(item); in init()
213 final SettingsItem item = mItems.get(i); in removeUser() local
214 if (item.getUserId() == userId) { in removeUser()
216 Slog.d(TAG, "Removing overlay " + item.mPackageName + " for user " + userId in removeUser()
269 final SettingsItem item = mItems.get(idx); in setLowestPriority() local
270 mItems.remove(item); in setLowestPriority()
[all …]

12345678910>>...18