/frameworks/minikin/tests/unittest/ |
D | FontLanguageListCacheTest.cpp | 28 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/ |
D | PrintJob.java | 59 mDocument = new PrintDocument(mCachedInfo.getId(), client, in PrintJob() 69 public PrintJobId getId() { in getId() method in PrintJob 71 return mCachedInfo.getId(); in getId() 92 info = mPrintServiceClient.getPrintJobInfo(mCachedInfo.getId()); in getInfo() 94 Log.e(LOG_TAG, "Couldn't get info for job: " + mCachedInfo.getId(), re); in getInfo() 319 mPrintServiceClient.setProgress(mCachedInfo.getId(), progress); in setProgress() 321 Log.e(LOG_TAG, "Error setting progress for job: " + mCachedInfo.getId(), re); in setProgress() 339 mPrintServiceClient.setStatus(mCachedInfo.getId(), status); in setStatus() 341 Log.e(LOG_TAG, "Error setting status for job: " + mCachedInfo.getId(), re); in setStatus() 358 mPrintServiceClient.setStatusRes(mCachedInfo.getId(), statusResId, in setStatus() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 215 assertEquals(expected.getId(), actual.getId()); in compareChannels() 231 assertEquals(expected.getId(), actual.getId()); in compareGroups() 243 if (channel.getId().equals(id)) { in findChannel() 288 mHelper.getNotificationChannel(package10, uid10, channel10.getId(), false)); in testWriteXml_onlyBackupsTargetUser() 289 assertNull(mHelper.getNotificationChannel(package0, uid0, channel0.getId(), false)); in testWriteXml_onlyBackupsTargetUser() 314 mHelper.getNotificationChannel(package0, expectedUid, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser() 315 assertNull(mHelper.getNotificationChannel(package0, uid0, channel0.getId(), false)); in testReadXml_onlyRestoresTargetUser() 334 channel2.setGroup(ncg.getId()); in testChannelXml() 347 UserHandle.USER_ALL, channel1.getId(), channel2.getId(), in testChannelXml() 357 mHelper.getNotificationChannel(PKG_N_MR1, UID_N_MR1, channel1.getId(), false)); in testChannelXml() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrintJob.java | 49 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/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 32 static int64_t getId(const sp<IResourceManagerClient>& client) { in getId() function 224 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources1); in addResource() 228 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources11); in addResource() 234 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in addResource() 238 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources3); in addResource() 241 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient3), mTestClient3, resources3); in addResource() 249 … expectEqResourceInfo(infos1.valueFor(getId(mTestClient1)), kTestUid1, mTestClient1, resources1); in addResource() 255 … expectEqResourceInfo(infos2.valueFor(getId(mTestClient2)), kTestUid2, mTestClient2, resources2); in addResource() 256 … expectEqResourceInfo(infos2.valueFor(getId(mTestClient3)), kTestUid2, mTestClient3, resources3); in addResource() 294 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources1); in testCombineResource() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarContextTest.java | 99 int id = mBtn2.getId() + 1; in testSetButtonVisibilityUnaddedButton() 112 mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton() 117 mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton() 118 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton() 119 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton() 120 assertTrue(mGroup.isButtonVisibleWithinGroup(mBtn2.getId())); in testSetHigherPriorityButton() 136 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetHigherPriorityButton() 137 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn1.getId())); in testSetHigherPriorityButton() 138 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn2.getId())); in testSetHigherPriorityButton() 172 assertFalse(mGroup.isButtonVisibleWithinGroup(mBtn0.getId())); in testSetSamePriorityButton() [all …]
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 453 actual.add(s.getId()); in assertShortcutIds() 466 actual.add(s.getId()); in assertShortcutIdsOrdered() 475 assertNotNull("ID " + s.getId(), s.getIntent()); in assertAllHaveIntents() 483 assertNull("ID " + s.getId(), s.getIntent()); in assertAllNotHaveIntents() 491 assertNotNull("ID " + s.getId(), s.getShortLabel()); in assertAllHaveTitle() 499 assertNull("ID " + s.getId(), s.getShortLabel()); in assertAllNotHaveTitle() 507 assertTrue("ID " + s.getId(), s.hasKeyFieldsOnly()); in assertAllKeyFieldsOnly() 515 assertFalse("ID " + s.getId(), s.hasKeyFieldsOnly()); in assertAllNotKeyFieldsOnly() 522 assertTrue("ID " + s.getId(), s.isDynamic()); in assertAllDynamic() 529 assertTrue("ID " + s.getId(), s.isPinned()); in assertAllPinned() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaDevice.java | 56 getId()); in initDeviceRecord() 84 public abstract String getId(); in getId() method in MediaDevice 95 ConnectionRecordManager.getInstance().setConnectionRecord(mContext, getId(), in setConnectedRecord() 156 if (TextUtils.equals(lastSelectedDevice, getId())) { in compareTo() 158 } else if (TextUtils.equals(lastSelectedDevice, another.getId())) { in compareTo() 191 return otherDevice.getId().equals(getId()); in equals()
|
D | MediaDeviceUtils.java | 34 public static String getId(CachedBluetoothDevice cachedDevice) { in getId() method in MediaDeviceUtils 44 public static String getId(BluetoothDevice bluetoothDevice) { in getId() method in MediaDeviceUtils 54 public static String getId(MediaRouter.RouteInfo route) { in getId() method in MediaDeviceUtils 55 return route.getId(); in getId()
|
D | BluetoothMediaManager.java | 160 MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(cachedDevice)); in addMediaDevice() 225 && MediaDeviceUtils.getId(cachedDevice) == mLastAddedDevice.getId()) { in dispatchDeviceAdded() 239 final MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(cachedDevice)); in removeMediaDevice() 249 && MediaDeviceUtils.getId(cachedDevice) == mLastRemovedDevice.getId()) { in dispatchDeviceRemoved() 268 if (findMediaDevice(MediaDeviceUtils.getId(cachedDevice)) != null) { in updateMediaDeviceListIfNecessary() 288 dispatchConnectedDeviceChanged(MediaDeviceUtils.getId(activeDevice)); in onActiveDeviceChanged() 298 ? PhoneMediaDevice.ID : activeHearingAidDevice.getId() in onActiveDeviceChanged() 299 : MediaDeviceUtils.getId(activeDevice); in onActiveDeviceChanged() 311 return findMediaDevice(MediaDeviceUtils.getId(btDevice)); in findActiveHearingAidDevice()
|
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/ |
D | ContentCaptureEventTest.java | 63 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/native/libs/gui/ |
D | StreamSplitter.cpp | 135 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | LocalMediaManagerTest.java | 104 when(device.getId()).thenReturn(TEST_DEVICE_ID_1); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice() 105 when(currentDevice.getId()).thenReturn(TEST_CURRENT_DEVICE_ID); in connectDevice_deviceNotEqualCurrentConnectedDevice_connectDevice() 122 when(device.getId()).thenReturn(TEST_DEVICE_ID_1); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice() 140 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 141 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 146 assertThat(device.getId()).isEqualTo(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 156 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idNotExist_shouldReturnNull() 157 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idNotExist_shouldReturnNull() 216 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList() 217 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList() [all …]
|
D | MediaDeviceUtilsTest.java | 58 final String id = MediaDeviceUtils.getId(mCachedDevice); in getId_returnCachedBluetoothDeviceAddress() 67 final String id = MediaDeviceUtils.getId(mBluetoothDevice); in getId_returnBluetoothDeviceAddress() 74 when(mRouteInfo.getId()).thenReturn(TEST_ROUTE_ID); in getId_returnRouteInfoId() 76 final String id = MediaDeviceUtils.getId(mRouteInfo); in getId_returnRouteInfoId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | NetworkEventTest.java | 81 events.get(i).getId()); in testNetworkEventId_monotonicallyIncreasing() 101 events.get(i).getId()); in testNetworkEventId_wrapsAround() 106 events.get(gap).getId()); in testNetworkEventId_wrapsAround() 107 assertEquals("Event id was not reset.", 0, events.get(gap + 1).getId()); in testNetworkEventId_wrapsAround() 112 events.get(i).getId()); in testNetworkEventId_wrapsAround() 159 assertEquals(event.getId(), unparceledEvent.getId()); in testConnectEventParceling() 181 assertEquals(event.getId(), unparceledEvent.getId()); in testDnsEventParceling()
|
D | SecurityEventTest.java | 21 assertEquals(ID, event.getId()); in testSecurityEventId() 23 assertEquals(20, event.getId()); in testSecurityEventId() 39 assertEquals(event.getId(), unparceledEvent.getId()); in testSecurityEventParceling()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 806 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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 213 params.addRule(rule, getId(ID_NAV_BAR)); in createContentFrame() 217 below = getId(ID_APP_COMPAT_ACTION_BAR); in createContentFrame() 219 below = getId(ID_FRAMEWORK_BAR); in createContentFrame() 221 below = getId(ID_STATUS_BAR); in createContentFrame() 271 params.addRule(RelativeLayout.START_OF, getId(ID_NAV_BAR)); in createStatusBar() 274 statusBar.setId(getId(ID_STATUS_BAR)); in createStatusBar() 292 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar() 303 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_FRAMEWORK_BAR)); in createActionBar() 305 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar() 311 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchVerticalSpacingTest.java | 67 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()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 74 newLastChild.getId()); in testNoScroll() 96 newLastChild.getId()); in testShortScroll() 134 firstId = firstChild.getId(); in testManyScrolls() 140 assertEquals("View scrolled to wrong position", 0, firstChild.getId()); in testManyScrolls() 152 firstId = firstChild.getId(); in testManyScrolls() 158 lastChild.getId()); in testManyScrolls()
|
D | GridTouchStackFromBottomTest.java | 63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp() 80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown() 97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast() 114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityNodeInfoTest.java | 80 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()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConnectionManager.java | 79 a.getConnectionService().conference(a.getId(), b.getId(), null /*Session.Info*/); in conferenceRemoteConnections() 84 a.getConnectionService(), a.getId(), in conferenceRemoteConnections() 85 b.getConnectionService(), b.getId()); in conferenceRemoteConnections()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | CompatConfig.java | 80 mChanges.put(change.getId(), change); in addChange() 99 disabled.add(c.getId()); in getDisabledChanges() 298 mOverrideValidator.getOverrideAllowedState(change.getId(), in removePackageOverrides() 300 allowedState.enforce(change.getId(), packageName); in removePackageOverrides() 325 mOverrideValidator.getOverrideAllowedState(change.getId(), in getAllowedChangesAfterTargetSdkForPackage() 328 allowed.add(change.getId()); in getAllowedChangesAfterTargetSdkForPackage() 424 enabled.add(c.getId()); in getAppConfig() 426 disabled.add(c.getId()); in getAppConfig() 443 changeInfos[i] = new CompatibilityChangeInfo(change.getId(), in dumpChanges()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 252 mNotificationManager.notifyAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 257 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskScannedInternal() 268 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK, in onDiskDestroyedInternal() 325 mNotificationManager.notifyAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC, in onPublicVolumeStateChangedInternal() 328 mNotificationManager.cancelAsUser(vol.getId(), SystemMessage.NOTE_STORAGE_PUBLIC, in onPublicVolumeStateChangedInternal() 598 intent.putExtra(DiskInfo.EXTRA_DISK_ID, disk.getId()); in buildInitPendingIntent() 600 final int requestKey = disk.getId().hashCode(); in buildInitPendingIntent() 614 intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, vol.getId()); in buildInitPendingIntent() 616 final int requestKey = vol.getId().hashCode(); in buildInitPendingIntent() 626 intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, vol.getId()); in buildUnmountPendingIntent() [all …]
|