Home
last modified time | relevance | path

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

12345678910>>...25

/frameworks/av/media/libmediametrics/
DMediaMetrics.cpp40 Item *item = Item::create(key); in mediametrics_create() local
41 return (mediametrics_handle_t) item; in mediametrics_create()
45 Item *item = (Item *) handle; in mediametrics_delete() local
46 if (item == NULL) return; in mediametrics_delete()
47 delete item; in mediametrics_delete()
51 Item *item = (Item *) handle; in mediametrics_getKey() local
52 if (item == NULL) return NULL; in mediametrics_getKey()
53 return strdup(item->getKey().c_str()); in mediametrics_getKey()
58 Item *item = (Item *) handle; in mediametrics_setUid() local
59 if (item != NULL) item->setUid(uid); in mediametrics_setUid()
[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/module/foundation/
DAMessage.cpp91 for (Item &item : mItems) { in clear()
92 delete[] item.mName; in clear()
93 item.mName = NULL; in clear()
94 freeItemValue(&item); in clear()
99 void AMessage::freeItemValue(Item *item) { in freeItemValue() argument
100 switch (item->mType) { in freeItemValue()
103 delete item->u.stringValue; in freeItemValue()
111 if (item->u.refValue != NULL) { in freeItemValue()
112 item->u.refValue->decStrong(this); in freeItemValue()
120 item->mType = kTypeInt32; // clear type in freeItemValue()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsHistoryIteratorTest.java90 BatteryStats.HistoryItem item; in unconstrainedIteration() local
92 assertThat(item = iterator.next()).isNotNull(); in unconstrainedIteration()
93 assertThat(item.cmd).isEqualTo(BatteryStats.HistoryItem.CMD_RESET); in unconstrainedIteration()
95 assertThat(item = iterator.next()).isNotNull(); in unconstrainedIteration()
96 assertHistoryItem(item, in unconstrainedIteration()
100 assertThat(item = iterator.next()).isNotNull(); in unconstrainedIteration()
101 assertHistoryItem(item, in unconstrainedIteration()
105 assertThat(item = iterator.next()).isNotNull(); in unconstrainedIteration()
106 assertHistoryItem(item, in unconstrainedIteration()
111 assertThat(item = iterator.next()).isNotNull(); in unconstrainedIteration()
[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/base/telephony/java/android/telephony/ims/compat/stub/
DImsConfigImplBase.java75 public int getProvisionedValue(int item) throws RemoteException { in getProvisionedValue() argument
86 public String getProvisionedStringValue(int item) throws RemoteException { in getProvisionedStringValue() argument
99 public int setProvisionedValue(int item, int value) throws RemoteException { in setProvisionedValue() argument
112 public int setProvisionedStringValue(int item, String value) throws RemoteException { in setProvisionedStringValue() argument
179 public final void notifyProvisionedValueChanged(int item, int value) { in notifyProvisionedValueChanged() argument
180 mImsConfigStub.updateCachedValue(item, value, true); in notifyProvisionedValueChanged()
191 public final void notifyProvisionedValueChanged(int item, String value) { in notifyProvisionedValueChanged() argument
192 mImsConfigStub.updateCachedValue(item, value, true); in notifyProvisionedValueChanged()
236 public synchronized int getProvisionedValue(int item) throws RemoteException { in getProvisionedValue() argument
237 if (mProvisionedIntValue.containsKey(item)) { in getProvisionedValue()
[all …]
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp80 const RingBufferItem& item = *it; in pinSelectedBuffer() local
82 cur.mCrop = item.mCrop; in pinSelectedBuffer()
83 cur.mTransform = item.mTransform; in pinSelectedBuffer()
84 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer()
85 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer()
86 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer()
87 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer()
165 void RingBufferConsumer::pinBufferLocked(const BufferItem& item) { in pinBufferLocked() argument
173 if (item.mGraphicBuffer == find.mGraphicBuffer) { in pinBufferLocked()
181 item.mTimestamp, item.mFrameNumber); in pinBufferLocked()
[all …]
/frameworks/av/services/mediametrics/
Dstatsd_drm.cpp49 bool statsd_mediadrm(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediadrm() argument
52 if (item == nullptr) return false; in statsd_mediadrm()
54 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_mediadrm()
55 const std::string package_name = item->getPkgName(); in statsd_mediadrm()
56 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_mediadrm()
60 (void) item->getString("vendor", &vendor); in statsd_mediadrm()
62 (void) item->getString("description", &description); in statsd_mediadrm()
65 (void) item->getString("serialized_metrics", &serialized_metrics); in statsd_mediadrm()
101 bool statsd_drmmanager(const std::shared_ptr<const mediametrics::Item>& item, in statsd_drmmanager() argument
105 if (item == nullptr) return false; in statsd_drmmanager()
[all …]
Dstatsd_audiothread.cpp40 bool statsd_audiothread(const std::shared_ptr<const mediametrics::Item>& item, in statsd_audiothread() argument
43 if (item == nullptr) return false; in statsd_audiothread()
46 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_audiothread()
47 const std::string package_name = item->getPkgName(); in statsd_audiothread()
48 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_audiothread()
60 if (item->getString(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->getString(MM_PREFIX "workMs.hist", &work_millis_hist)) { in statsd_audiothread()
76 if (item->getString(MM_PREFIX "latencyMs.hist", &latency_millis_hist)) { in statsd_audiothread()
[all …]
Dstatsd_recorder.cpp41 bool statsd_recorder(const std::shared_ptr<const mediametrics::Item>& item, in statsd_recorder() argument
44 if (item == nullptr) return false; in statsd_recorder()
47 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_recorder()
48 const std::string package_name = item->getPkgName(); in statsd_recorder()
49 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_recorder()
61 if (item->getString("android.media.mediarecorder.log-session-id", &log_session_id)) { in statsd_recorder()
67 if (item->getString("android.media.mediarecorder.audio.mime", &audio_mime)) { in statsd_recorder()
72 if (item->getString("android.media.mediarecorder.video.mime", &video_mime)) { in statsd_recorder()
77 if (item->getInt32("android.media.mediarecorder.video-encoder-profile", &video_profile)) { in statsd_recorder()
82 if (item->getInt32("android.media.mediarecorder.video-encoder-level", &video_level)) { in statsd_recorder()
[all …]
Dstatsd_nuplayer.cpp44 bool statsd_nuplayer(const std::shared_ptr<const mediametrics::Item>& item, in statsd_nuplayer() argument
47 if (item == nullptr) return false; in statsd_nuplayer()
50 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_nuplayer()
51 const std::string package_name = item->getPkgName(); in statsd_nuplayer()
52 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_nuplayer()
63 std::string whichPlayer = item->getKey(); in statsd_nuplayer()
67 if (item->getString("android.media.mediaplayer.video.mime", &video_mime)) { in statsd_nuplayer()
71 if (item->getString("android.media.mediaplayer.video.codec", &video_codec)) { in statsd_nuplayer()
76 if (item->getInt32("android.media.mediaplayer.width", &width)) { in statsd_nuplayer()
80 if (item->getInt32("android.media.mediaplayer.height", &height)) { in statsd_nuplayer()
[all …]
Dstatsd_codec.cpp179 bool statsd_codec(const std::shared_ptr<const mediametrics::Item>& item, in statsd_codec() argument
182 if (item == nullptr) return false; in statsd_codec()
187 const nsecs_t timestampNanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_codec()
208 if (item->getString("android.media.mediacodec.codec", &codec)) { in statsd_codec()
214 if (item->getString("android.media.mediacodec.mime", &mime)) { in statsd_codec()
220 if (item->getString("android.media.mediacodec.mode", &mode)) { in statsd_codec()
226 if (item->getInt32("android.media.mediacodec.encoder", &isEncoder)) { in statsd_codec()
232 if (item->getInt32("android.media.mediacodec.secure", &isSecure)) { in statsd_codec()
238 item->getInt32("android.media.mediacodec.hardware", &isHardware); in statsd_codec()
242 item->getInt32("android.media.mediacodec.tunneled", &isTunneled); in statsd_codec()
[all …]
Dstatsd_audiorecord.cpp41 bool statsd_audiorecord(const std::shared_ptr<const mediametrics::Item>& item, in statsd_audiorecord() argument
43 if (item == nullptr) return false; in statsd_audiorecord()
46 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_audiorecord()
47 const std::string package_name = item->getPkgName(); in statsd_audiorecord()
48 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_audiorecord()
58 if (item->getString("android.media.audiorecord.encoding", &encoding)) { in statsd_audiorecord()
63 if (item->getString("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_mediaparser.cpp40 bool statsd_mediaparser(const std::shared_ptr<const mediametrics::Item>& item, in statsd_mediaparser() argument
43 if (item == nullptr) return false; in statsd_mediaparser()
45 const nsecs_t timestamp_nanos = MediaMetricsService::roundTime(item->getTimestamp()); in statsd_mediaparser()
46 const std::string package_name = item->getPkgName(); in statsd_mediaparser()
47 const int64_t package_version_code = item->getPkgVersionCode(); in statsd_mediaparser()
50 item->getString("android.media.mediaparser.parserName", &parserName); in statsd_mediaparser()
53 item->getInt32("android.media.mediaparser.createdByName", &createdByName); in statsd_mediaparser()
56 item->getString("android.media.mediaparser.parserPool", &parserPool); in statsd_mediaparser()
59 item->getString("android.media.mediaparser.lastException", &lastException); in statsd_mediaparser()
62 item->getInt64("android.media.mediaparser.resourceByteCount", &resourceByteCount); in statsd_mediaparser()
[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/services/core/java/com/android/server/power/stats/
DPowerStatsAggregator.java83 BatteryStats.HistoryItem item = iterator.next(); in aggregatePowerStats() local
86 mStats.addClockUpdate(item.time, item.currentTime); in aggregatePowerStats()
88 baseTime = item.time; in aggregatePowerStats()
91 } else if (item.cmd == BatteryStats.HistoryItem.CMD_CURRENT_TIME in aggregatePowerStats()
92 || item.cmd == BatteryStats.HistoryItem.CMD_RESET) { in aggregatePowerStats()
93 mStats.addClockUpdate(item.time, item.currentTime); in aggregatePowerStats()
96 lastTime = item.time; in aggregatePowerStats()
99 (item.states & BatteryStats.HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0 in aggregatePowerStats()
104 item.time); in aggregatePowerStats()
109 (item.states & BatteryStats.HistoryItem.STATE_SCREEN_ON_FLAG) != 0 in aggregatePowerStats()
[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/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/tests/coretests/src/android/app/servertransaction/
DTransactionParcelTests.java85 ConfigurationChangeItem item = ConfigurationChangeItem.obtain(config(), 1 /* deviceId */); in testConfigurationChange() local
86 writeAndPrepareForReading(item); in testConfigurationChange()
91 assertEquals(item.hashCode(), result.hashCode()); in testConfigurationChange()
92 assertEquals(item, result); in testConfigurationChange()
101 ActivityConfigurationChangeItem item = ActivityConfigurationChangeItem.obtain( in testActivityConfigChange() local
103 writeAndPrepareForReading(item); in testActivityConfigChange()
109 assertEquals(item.hashCode(), result.hashCode()); in testActivityConfigChange()
110 assertEquals(item, result); in testActivityConfigChange()
119 MoveToDisplayItem item = MoveToDisplayItem.obtain(mActivityToken, 4 /* targetDisplayId */, in testMoveToDisplay() local
121 writeAndPrepareForReading(item); in testMoveToDisplay()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java80 final SettingsItem item = new SettingsItem(overlay, userId, targetPackageName, in init() local
83 insert(item); in init()
84 return item.getOverlayInfo(); in init()
189 final SettingsItem item = mItems.get(i); in forEachMatching() local
190 if (item.getUserId() != userId) { in forEachMatching()
193 if (overlayName != null && !item.mOverlay.getPackageName().equals(overlayName)) { in forEachMatching()
196 if (targetPackageName != null && !item.mTargetPackageName.equals(targetPackageName)) { in forEachMatching()
199 consumer.accept(item.getOverlayInfo()); in forEachMatching()
208 final SettingsItem item = items.get(i); in getOverlaysForUser() local
209 targetInfos.computeIfAbsent(item.mTargetPackageName, (String) -> new ArrayList<>()) in getOverlaysForUser()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DFrameProcessorBase.cpp53 List<RangeListener>::iterator item = mRangeListeners.begin(); in registerListener() local
54 while (item != mRangeListeners.end()) { in registerListener()
55 if (item->minId == minId && in registerListener()
56 item->maxId == maxId && in registerListener()
57 item->listener == listener) { in registerListener()
63 item++; in registerListener()
76 List<RangeListener>::iterator item = mRangeListeners.begin(); in removeListener() local
77 while (item != mRangeListeners.end()) { in removeListener()
78 if (item->minId == minId && in removeListener()
79 item->maxId == maxId && in removeListener()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DParcelling.java47 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument
106 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument
107 dest.writeString(item); in parcel()
119 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument
120 dest.writeStringArray(item); in parcel()
139 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument
140 dest.writeStringList(item); in parcel()
158 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument
159 dest.writeMap(item); in parcel()
175 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java180 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() argument
195 public boolean invokeItem(MenuItemImpl item); in invokeItem() argument
257 final MenuPresenter item = ref.get(); in removeMenuPresenter() local
258 if (item == null || item == presenter) { in removeMenuPresenter()
358 final MenuItem item = getItem(i); in saveActionViewStates() local
359 final View v = item.getActionView(); in saveActionViewStates()
365 if (item.isActionViewExpanded()) { in saveActionViewStates()
366 outStates.putInt(EXPANDED_ACTION_VIEW_ID, item.getItemId()); in saveActionViewStates()
369 if (item.hasSubMenu()) { in saveActionViewStates()
370 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates()
[all …]

12345678910>>...25