Home
last modified time | relevance | path

Searched refs:getId (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/frameworks/minikin/tests/unittest/
DFontLanguageListCacheTest.cpp28 TEST(LocaleListCacheTest, getId) { in TEST() argument
33 EXPECT_EQ(0UL, LocaleListCache::getId("")); in TEST()
35 EXPECT_EQ(LocaleListCache::getId("en"), LocaleListCache::getId("en")); in TEST()
36 EXPECT_NE(LocaleListCache::getId("en"), LocaleListCache::getId("jp")); in TEST()
38 EXPECT_EQ(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en,zh-Hans")); in TEST()
39 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("zh-Hans,en")); in TEST()
40 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("jp")); in TEST()
41 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en")); in TEST()
42 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en,zh-Hant")); in TEST()
46 uint32_t enLangId = LocaleListCache::getId("en"); in TEST()
[all …]
/frameworks/base/core/java/android/printservice/
DPrintJob.java60 mDocument = new PrintDocument(mCachedInfo.getId(), client, in PrintJob()
70 public PrintJobId getId() { in getId() method in PrintJob
72 return mCachedInfo.getId(); in getId()
93 info = mPrintServiceClient.getPrintJobInfo(mCachedInfo.getId()); in getInfo()
95 Log.e(LOG_TAG, "Couldn't get info for job: " + mCachedInfo.getId(), re); in getInfo()
320 mPrintServiceClient.setProgress(mCachedInfo.getId(), progress); in setProgress()
322 Log.e(LOG_TAG, "Error setting progress for job: " + mCachedInfo.getId(), re); in setProgress()
340 mPrintServiceClient.setStatus(mCachedInfo.getId(), status); in setStatus()
342 Log.e(LOG_TAG, "Error setting status for job: " + mCachedInfo.getId(), re); in setStatus()
359 mPrintServiceClient.setStatusRes(mCachedInfo.getId(), statusResId, in setStatus()
[all …]
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp63 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources1); in addResource()
67 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources11); in addResource()
73 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in addResource()
77 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources3); in addResource()
80 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources3); in addResource()
88 … expectEqResourceInfo(infos1.valueFor(getId(mTestClient1)), kTestUid1, mTestClient1, resources1); in addResource()
94 … expectEqResourceInfo(infos2.valueFor(getId(mTestClient2)), kTestUid2, mTestClient2, resources2); in addResource()
95 … expectEqResourceInfo(infos2.valueFor(getId(mTestClient3)), kTestUid2, mTestClient3, resources3); in addResource()
103 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources1); in testCombineResourceWithNegativeValues()
115 … expectEqResourceInfo(infos1.valueFor(getId(mTestClient1)), kTestUid1, mTestClient1, expected); in testCombineResourceWithNegativeValues()
[all …]
DResourceObserverService_test.cpp237 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources); in TEST_F()
244 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources); in TEST_F()
252 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources); in TEST_F()
260 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources); in TEST_F()
286 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources); in TEST_F()
304 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources); in TEST_F()
309 mService->removeResource(kTestPid1, getId(mTestClient1), resources); in TEST_F()
314 mService->removeResource(kTestPid1, getId(mTestClient1), resources); in TEST_F()
319 mService->removeClient(kTestPid1, getId(mTestClient1)); in TEST_F()
326 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources); in TEST_F()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java312 assertEquals(expected.getId(), actual.getId()); in compareChannels()
344 assertEquals(parent.getId(), actual.getParentChannelId()); in compareChannelsParentChild()
349 assertEquals(expected.getId(), actual.getId()); in compareGroups()
361 if (channel.getId().equals(id)) { in findChannel()
414 mHelper.getNotificationChannel(package10, uid10, channel10.getId(), false)); in testWriteXml_onlyBackupsTargetUser()
415 assertNull(mHelper.getNotificationChannel(package0, uid0, channel0.getId(), false)); in testWriteXml_onlyBackupsTargetUser()
440 mHelper.getNotificationChannel(package0, expectedUid, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser()
441 assertNull(mHelper.getNotificationChannel(package0, uid0, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser()
460 channel2.setGroup(ncg.getId()); in testChannelXml()
475 UserHandle.USER_ALL, channel1.getId(), channel2.getId(), in testChannelXml()
[all …]
/frameworks/base/core/java/android/print/
DPrintJob.java49 public @Nullable PrintJobId getId() { in getId() method in PrintJob
50 return mCachedInfo.getId(); in getId()
67 PrintJobInfo info = mPrintManager.getPrintJobInfo(mCachedInfo.getId()); in getInfo()
89 mPrintManager.cancelPrintJob(mCachedInfo.getId()); in cancel()
101 mPrintManager.restartPrintJob(mCachedInfo.getId()); in restart()
198 return Objects.equals(mCachedInfo.getId(), other.mCachedInfo.getId()); in equals()
203 PrintJobId printJobId = mCachedInfo.getId(); in hashCode()
/frameworks/base/core/java/com/android/internal/logging/
DUiEventLoggerImpl.java34 final int eventID = event.getId(); in log()
47 final int eventID = event.getId(); in logWithInstanceId()
53 /* instance_id = 4 */ instance.getId()); in logWithInstanceId()
61 final int eventID = event.getId(); in logWithPosition()
74 final int eventID = event.getId(); in logWithInstanceIdAndPosition()
79 /* instance_id = 3 */ instance.getId(), in logWithInstanceIdAndPosition()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
DNavigationBarContextTest.java120 int id = mBtn2.getId() + 1; in testSetButtonVisibilityUnaddedButton()
133 mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton()
138 mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton()
139 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton()
140 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton()
141 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn2.getId())); in testSetHigherPriorityButton()
157 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton()
158 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton()
159 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn2.getId())); in testSetHigherPriorityButton()
193 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetSamePriorityButton()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureEventTest.java63 assertThat(event.getId()).isNull(); in testSetAutofillId_null()
72 assertThat(event.getId()).isNull(); in testSetAutofillIds_null()
81 assertThat(event.getId()).isNull(); in testAddAutofillId_null()
91 assertThat(event.getId()).isEqualTo(id); in testSetAutofillId()
103 assertThat(event.getId()).isNull(); in testSetAutofillIds()
113 assertThat(event.getId()).isNull(); in testAddAutofillId()
118 assertThat(event.getId()).isNull(); in testAddAutofillId()
128 assertThat(event.getId()).isEqualTo(id1); in testAddAutofillId_afterSetId()
133 assertThat(event.getId()).isNull(); in testAddAutofillId_afterSetId()
145 assertThat(event.getId()).isNull(); in testAddAutofillId_afterSetIds()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DShareTargetPredictorTest.java179 assertEquals("sc3", res.get(0).getId().getId()); in testPredictTargets()
183 assertEquals("sc2", res.get(1).getId().getId()); in testPredictTargets()
187 assertEquals("sc1", res.get(2).getId().getId()); in testPredictTargets()
191 assertEquals("sc4", res.get(3).getId().getId()); in testPredictTargets()
244 assertEquals("sc6", res.get(0).getId().getId()); in testPredictTargets_reachTargetsLimit()
248 assertEquals("sc5", res.get(1).getId().getId()); in testPredictTargets_reachTargetsLimit()
252 assertEquals("sc4", res.get(2).getId().getId()); in testPredictTargets_reachTargetsLimit()
256 assertEquals("sc3", res.get(3).getId().getId()); in testPredictTargets_reachTargetsLimit()
260 assertEquals("sc2", res.get(4).getId().getId()); in testPredictTargets_reachTargetsLimit()
300 assertEquals("sc4", res.get(0).getId().getId()); in testPredictTargets_noSharingHistoryRankedByShortcutRank()
[all …]
/frameworks/native/libs/gui/
DStreamSplitter.cpp135 bufferItem.mGraphicBuffer->getId()); in onFrameAvailable()
142 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable()
161 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
176 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
185 bufferItem.mGraphicBuffer->getId(), output->get()); in onFrameAvailable()
208 buffer->getId(), from.get()); in onBufferReleasedByOutput()
210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput()
218 ALOGV("buffer %#" PRIx64 " reference count %zu (of %zu)", buffer->getId(), in onBufferReleasedByOutput()
227 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput()
242 ALOGV("released buffer %#" PRIx64 " to input", buffer->getId()); in onBufferReleasedByOutput()
[all …]
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java516 actual.add(s.getId()); in assertShortcutIds()
529 actual.add(s.getId()); in assertShortcutIdsOrdered()
538 assertNotNull("ID " + s.getId(), s.getIntent()); in assertAllHaveIntents()
546 assertNull("ID " + s.getId(), s.getIntent()); in assertAllNotHaveIntents()
554 assertNotNull("ID " + s.getId(), s.getShortLabel()); in assertAllHaveTitle()
562 assertNull("ID " + s.getId(), s.getShortLabel()); in assertAllNotHaveTitle()
570 assertTrue("ID " + s.getId(), s.hasKeyFieldsOnly()); in assertAllKeyFieldsOnly()
578 assertFalse("ID " + s.getId(), s.hasKeyFieldsOnly()); in assertAllNotKeyFieldsOnly()
585 assertTrue("ID " + s.getId(), s.isDynamic()); in assertAllDynamic()
592 assertTrue("ID " + s.getId(), s.isPinned()); in assertAllPinned()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDeviceUtils.java33 public static String getId(CachedBluetoothDevice cachedDevice) { in getId() method in MediaDeviceUtils
46 public static String getId(BluetoothDevice bluetoothDevice) { in getId() method in MediaDeviceUtils
56 public static String getId(MediaRoute2Info route) { in getId() method in MediaDeviceUtils
57 return route.getId(); in getId()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java108 when(mRouteInfo1.getId()).thenReturn(TEST_DEVICE_ID_1); in setUp()
110 when(mRouteInfo2.getId()).thenReturn(TEST_DEVICE_ID_2); in setUp()
141 when(device.getId()).thenReturn(TEST_DEVICE_ID_1); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
142 when(currentDevice.getId()).thenReturn(TEST_CURRENT_DEVICE_ID); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice()
183 when(device.getId()).thenReturn(TEST_DEVICE_ID_1); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice()
201 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
202 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
207 assertThat(device.getId()).isEqualTo(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
217 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idNotExist_shouldReturnNull()
218 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idNotExist_shouldReturnNull()
[all …]
DMediaDeviceUtilsTest.java57 final String id = MediaDeviceUtils.getId(mCachedDevice); in getId_returnCachedBluetoothDeviceAddress()
66 final String id = MediaDeviceUtils.getId(mBluetoothDevice); in getId_returnBluetoothDeviceAddress()
73 when(mRouteInfo.getId()).thenReturn(TEST_ROUTE_ID); in getId_returnRouteInfoId()
75 final String id = MediaDeviceUtils.getId(mRouteInfo); in getId_returnRouteInfoId()
/frameworks/base/tools/powerstats/
DPowerStatsServiceProtoParser.java32 csvHeader += "Index,Timestamp,Duration," + energyMeterInfo.getId() in printEnergyMeterInfo()
50 csvRow += energyMeasurement.getId() + "," in printEnergyMeasurements()
66 csvHeader += "Index,Timestamp," + energyConsumer.getId() + "/" in printEnergyConsumer()
86 csvRow += energyConsumerResult.getId() + "," in printEnergyConsumerResults()
107 csvHeader += powerEntity.getId() + "," + powerEntity.getName() + ","; in printPowerEntityInfo()
110 csvHeader += state.getId() + "," + state.getName() + ","; in printPowerEntityInfo()
121 csvRow += stateResidencyResult.getId() + ","; in printStateResidencyResult()
125 csvRow += stateResidency.getId() + "," in printStateResidencyResult()
/frameworks/base/media/java/android/media/
DMediaRouter2.java288 mRoutes.put(route.getId(), route); in MediaRouter2()
321 if (TextUtils.equals(routeId, info.getId())) { in checkRouteListContainsRouteId()
595 routeFound = mRoutes.containsKey(route.getId()); in transferTo()
603 if (controller.getRoutingSessionInfo().getTransferableRoutes().contains(route.getId())) { in transferTo()
709 if (TextUtils.equals(id, controller.getId())) { in getController()
787 List<String> currentRoutesIds = currentRoutes.stream().map(MediaRoute2Info::getId) in syncRoutesOnHandler()
801 if (mRoutes.containsKey(route.getId())) { in syncRoutesOnHandler()
802 if (!route.equals(mRoutes.get(route.getId()))) { in syncRoutesOnHandler()
819 mRoutes.put(route.getId(), route); in syncRoutesOnHandler()
846 mRoutes.put(route.getId(), route); in addRoutesOnHandler()
[all …]
DMediaRouter2Manager.java262 || sessionInfo.getSelectedRoutes().contains(route.getId()) in getAvailableRoutes()
263 || sessionInfo.getTransferableRoutes().contains(route.getId())) { in getAvailableRoutes()
295 if (sessionInfo.getTransferableRoutes().contains(route.getId())) { in getTransferableRoutes()
344 || sessionInfo.getSelectedRoutes().contains(route.getId()) in filterRoutesForPackage()
345 || sessionInfo.getTransferableRoutes().contains(route.getId())) { in filterRoutesForPackage()
488 if (!mRoutes.containsKey(route.getId())) { in transfer()
489 Log.w(TAG, "transfer: Ignoring an unknown route id=" + route.getId()); in transfer()
495 if (sessionInfo.getTransferableRoutes().contains(route.getId())) { in transfer()
557 client, requestId, sessionInfo.getId(), volume); in setSessionVolume()
567 mRoutes.put(route.getId(), route); in addRoutesOnHandler()
[all …]
/frameworks/base/core/java/android/os/
DSystemVibratorManager.java217 .addVibrator(mVibratorInfo.getId(), effect) in setAlwaysOnEffect()
227 .addVibrator(mVibratorInfo.getId(), vibe) in vibrate()
245 Log.w(TAG, "Failed to check status of vibrator " + mVibratorInfo.getId() in isVibrating()
250 return mService.isVibrating(mVibratorInfo.getId()); in isVibrating()
275 "Failed to add vibrate state listener to vibrator " + mVibratorInfo.getId() in addVibratorStateListener()
288 if (!mService.registerVibratorStateListener(mVibratorInfo.getId(), delegate)) { in addVibratorStateListener()
290 + mVibratorInfo.getId()); in addVibratorStateListener()
305 + mVibratorInfo.getId() + "; no vibrator service."); in removeVibratorStateListener()
313 if (!mService.unregisterVibratorStateListener(mVibratorInfo.getId(), in removeVibratorStateListener()
316 + mVibratorInfo.getId()); in removeVibratorStateListener()
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java806 Log.i("DefaultContextFactory", "tid=" + Thread.currentThread().getId()); in destroyContext()
1026 Log.w("EglHelper", "start() tid=" + Thread.currentThread().getId()); in start()
1067 … Log.w("EglHelper", "createContext " + mEglContext + " tid=" + Thread.currentThread().getId()); in start()
1081 Log.w("EglHelper", "createSurface() tid=" + Thread.currentThread().getId()); in createSurface()
1178 Log.w("EglHelper", "destroySurface() tid=" + Thread.currentThread().getId()); in destroySurface()
1198 Log.w("EglHelper", "finish() tid=" + Thread.currentThread().getId()); in finish()
1220 Log.e("EglHelper", "throwEglException tid=" + Thread.currentThread().getId() + " " in throwEglException()
1266 setName("GLThread " + getId()); in run()
1268 Log.i("GLThread", "starting tid=" + getId()); in run()
1342 … Log.i("GLThread", "mPaused is now " + mPaused + " tid=" + getId()); in guardedRun()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DNetworkEventTest.java87 .that(events.get(i).getId()).isEqualTo(expectedId); in testNetworkEventId_monotonicallyIncreasing()
109 .that(events.get(i).getId()).isEqualTo(expectedId); in testNetworkEventId_wrapsAround()
114 .that(events.get(gap).getId()).isEqualTo(Long.MAX_VALUE); in testNetworkEventId_wrapsAround()
115 assertWithMessage("Event id was not reset.").that(events.get(gap + 1).getId()).isEqualTo(0); in testNetworkEventId_wrapsAround()
120 .that(events.get(i).getId()).isEqualTo(expectedId); in testNetworkEventId_wrapsAround()
168 assertThat(unparceledEvent.getId()).isEqualTo(event.getId()); in testConnectEventParceling()
193 assertThat(unparceledEvent.getId()).isEqualTo(event.getId()); in testDnsEventParceling()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java67 assertEquals("Wrong view in first position", 0, newFirstChild.getId()); in testNoScroll()
84 assertEquals("Wrong view in first position", 0, newFirstChild.getId()); in testShortScroll()
118 firstId = firstChild.getId(); in testManyScrolls()
125 lastChild.getId()); in testManyScrolls()
137 firstId = firstChild.getId(); in testManyScrolls()
142 assertEquals("Grid is not scrolled to the top", 0, firstChild.getId()); in testManyScrolls()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivityLoggerImpl.java42 /* event_id = 1 */ SharesheetStartedEvent.SHARE_STARTED.getId(), in logShareStarted()
44 /* instance_id = 3 */ getInstanceId().getId(), in logShareStarted()
56 /* event_id = 1 */ SharesheetTargetSelectedEvent.fromTargetType(targetType).getId(), in logShareTargetSelected()
58 /* instance_id = 3 */ getInstanceId().getId(), in logShareTargetSelected()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java214 params.addRule(rule, getId(ID_NAV_BAR)); in createContentFrame()
218 below = getId(ID_APP_COMPAT_ACTION_BAR); in createContentFrame()
220 below = getId(ID_FRAMEWORK_BAR); in createContentFrame()
222 below = getId(ID_STATUS_BAR); in createContentFrame()
273 params.addRule(RelativeLayout.START_OF, getId(ID_NAV_BAR)); in createStatusBar()
276 statusBar.setId(getId(ID_STATUS_BAR)); in createStatusBar()
294 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar()
305 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_FRAMEWORK_BAR)); in createActionBar()
307 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar()
313 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java80 action -> Integer.bitCount(action.getId()) == 1 in testStandardActions_serializationFlagIsValid()
81 && action.getId() <= AccessibilityNodeInfo.LAST_LEGACY_STANDARD_ACTION in testStandardActions_serializationFlagIsValid()
82 && action.getId() != action.mSerializationFlag); in testStandardActions_serializationFlagIsValid()
87 + Integer.toHexString(brokenStandardAction.getId()) in testStandardActions_serializationFlagIsValid()
97 int id = actions.valueAt(i).getId(); in testStandardActions_idsAreUnique()
98 if (id == actions.valueAt(j).getId()) { in testStandardActions_idsAreUnique()

12345678910>>...37