/packages/services/Telephony/src/com/android/services/telephony/ |
D | DisconnectCauseUtil.java | 333 Integer resourceId = null; in getLabelFromDisconnectCause() local 336 resourceId = R.string.callFailed_userBusy; in getLabelFromDisconnectCause() 340 resourceId = R.string.callFailed_NetworkBusy; in getLabelFromDisconnectCause() 344 resourceId = R.string.callFailed_NetworkCongested; in getLabelFromDisconnectCause() 348 resourceId = R.string.callFailed_congestion; in getLabelFromDisconnectCause() 352 resourceId = R.string.callFailed_timedOut; in getLabelFromDisconnectCause() 356 resourceId = R.string.callFailed_server_unreachable; in getLabelFromDisconnectCause() 360 resourceId = R.string.callFailed_number_unreachable; in getLabelFromDisconnectCause() 364 resourceId = R.string.callFailed_invalid_credentials; in getLabelFromDisconnectCause() 368 resourceId = R.string.callFailed_server_error; in getLabelFromDisconnectCause() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecService.java | 425 void removeSpiRecord(int resourceId) { in removeSpiRecord() argument 426 mSpiRecords.remove(resourceId); in removeSpiRecord() 429 void removeTransformRecord(int resourceId) { in removeTransformRecord() argument 430 mTransformRecords.remove(resourceId); in removeTransformRecord() 433 void removeTunnelInterfaceRecord(int resourceId) { in removeTunnelInterfaceRecord() argument 434 mTunnelInterfaceRecords.remove(resourceId); in removeTunnelInterfaceRecord() 437 void removeEncapSocketRecord(int resourceId) { in removeEncapSocketRecord() argument 438 mEncapSocketRecords.remove(resourceId); in removeEncapSocketRecord() 514 OwnedResourceRecord(int resourceId) { in OwnedResourceRecord() argument 516 if (resourceId == INVALID_RESOURCE_ID) { in OwnedResourceRecord() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/widget/ |
D | EmptyContentView.java | 74 public void setDescription(int resourceId) { in setDescription() argument 75 if (resourceId == NO_LABEL) { in setDescription() 79 descriptionView.setText(resourceId); in setDescription() 84 public void setImage(int resourceId) { in setImage() argument 85 if (resourceId == NO_LABEL) { in setImage() 89 imageView.setImageResource(resourceId); in setImage() 94 public void setActionLabel(@StringRes int resourceId) { in setActionLabel() argument 95 actionLabel = resourceId; in setActionLabel() 96 if (resourceId == NO_LABEL) { in setActionLabel() 100 actionView.setText(resourceId); in setActionLabel()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SoundPlayer.java | 56 public void loadSound(int resourceId) { in loadSound() argument 57 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound() 58 mResourceToSoundId.put(resourceId, soundId); in loadSound() 65 public void play(int resourceId, float volume) { in play() argument 66 Integer soundId = mResourceToSoundId.get(resourceId); in play() 76 public void unloadSound(int resourceId) { in unloadSound() argument 77 Integer soundId = mResourceToSoundId.get(resourceId); in unloadSound()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiStringResourceWrapper.java | 80 int resourceId = mResources.getIdentifier(name, "string", in getString() local 82 if (resourceId == 0) return null; in getString() 93 return mResources.getString(resourceId, args); in getString() 106 int resourceId = mResources.getIdentifier(name, "integer", in getInt() local 108 if (resourceId == 0) return defaultValue; in getInt() 121 return mResources.getInteger(resourceId); in getInt() 130 int resourceId = mResources.getIdentifier(name, "bool", in getBoolean() local 132 if (resourceId == 0) return defaultValue; in getBoolean() 146 return mResources.getBoolean(resourceId); in getBoolean()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 287 mIpSecService.releaseSecurityParameterIndex(spiResp.resourceId); in testReleaseSecurityParameterIndex() 303 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testReleaseSecurityParameterIndex() 321 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testSecurityParameterIndexBinderDeath() 338 userRecord.mSpiRecords.getRefcountedResourceOrThrow(spiResp.resourceId); in testSecurityParameterIndexBinderDeath() 354 return spi.resourceId; in getNewSpiResourceId() 368 private void addEncapSocketToIpSecConfig(int resourceId, IpSecConfig config) throws Exception { in addEncapSocketToIpSecConfig() argument 370 config.setEncapSocketResourceId(resourceId); in addEncapSocketToIpSecConfig() 445 addEncapSocketToIpSecConfig(udpSock.resourceId, ipSecConfig); in testCreateTransportModeTransformWithEncap() 471 addEncapSocketToIpSecConfig(udpSock.resourceId, ipSecConfig); in testCreateTunnelModeTransformWithEncap() 507 mIpSecService.deleteTransform(createTransformResp.resourceId); in testCreateTwoTransformsWithSameSpis() [all …]
|
D | IpSecServiceTest.java | 183 mIpSecService.closeUdpEncapsulationSocket(udpEncapResp.resourceId); in testOpenAndCloseUdpEncapsulationSocket() 191 userRecord.mEncapSocketRecords.getRefcountedResourceOrThrow(udpEncapResp.resourceId); in testOpenAndCloseUdpEncapsulationSocket() 207 udpEncapResp.resourceId); in testUdpEncapsulationSocketBinderDeath() 214 userRecord.mEncapSocketRecords.getRefcountedResourceOrThrow(udpEncapResp.resourceId); in testUdpEncapsulationSocketBinderDeath() 229 mIpSecService.closeUdpEncapsulationSocket(udpEncapResp.resourceId); in testOpenUdpEncapsulationSocketAfterClose() 259 mIpSecService.closeUdpEncapsulationSocket(udpEncapResp.resourceId); in testUdpEncapPortNotReleased() 269 mIpSecService.closeUdpEncapsulationSocket(udpEncapResp.resourceId); in testOpenUdpEncapsulationSocketOnRandomPort() 300 mIpSecService.closeUdpEncapsulationSocket(udpEncapResp.resourceId); in testOpenUdpEncapsulationSocketTwice() 496 mIpSecService.closeUdpEncapsulationSocket(openUdpEncapSockets.get(0).resourceId); in testSocketResourceTrackerLimitation() 508 mIpSecService.closeUdpEncapsulationSocket(openSocket.resourceId); in testSocketResourceTrackerLimitation() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | MessageBuilder.java | 85 int resourceId; in generateListMessage() local 89 resourceId = R.plurals.copy_converted_warning_content; in generateListMessage() 95 resourceId = R.plurals.copy_failure_alert_content; in generateListMessage() 98 resourceId = R.plurals.compress_failure_alert_content; in generateListMessage() 101 resourceId = R.plurals.extract_failure_alert_content; in generateListMessage() 104 resourceId = R.plurals.delete_failure_alert_content; in generateListMessage() 107 resourceId = R.plurals.move_failure_alert_content; in generateListMessage() 132 return mContext.getResources().getQuantityString(resourceId, totalItems, list.toString()); in generateListMessage()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/ |
D | ClassifierInputManager.java | 173 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getAppResource() argument 179 return getLocalAppResource(packageManager, applicationInfo, resourceId); in getAppResource() 182 return getEnglishAppResource(packageManager, applicationInfo, resourceId); in getAppResource() 187 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getEnglishAppResource() argument 193 .getString(resourceId); in getEnglishAppResource() 197 LogUtil.e("Resource not found by packageManager - resourceId: %d", resourceId); in getEnglishAppResource() 203 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getLocalAppResource() argument 205 return packageManager.getResourcesForApplication(applicationInfo).getString(resourceId); in getLocalAppResource() 209 LogUtil.e("Resource not found by packageManager - resourceId: %d", resourceId); in getLocalAppResource()
|
/packages/apps/ThemePicker/src/com/android/customization/model/ |
D | ResourcesApkProvider.java | 49 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemStringFromStub() local 51 return mStubApkResources.getString(resourceId); in getItemStringFromStub() 55 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemDrawableFromStub() local 57 return mStubApkResources.getDrawable(resourceId, null); in getItemDrawableFromStub() 62 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemColorFromStub() local 64 return mStubApkResources.getColor(resourceId, null); in getItemColorFromStub()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | IpSecTransformResponse.java | 30 public final int resourceId; field in IpSecTransformResponse 42 out.writeInt(resourceId); in writeToParcel() 50 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTransformResponse() 55 resourceId = inResourceId; in IpSecTransformResponse() 60 resourceId = in.readInt(); in IpSecTransformResponse()
|
D | IpSecSpiResponse.java | 30 public final int resourceId; field in IpSecSpiResponse 43 out.writeInt(resourceId); in writeToParcel() 49 resourceId = inResourceId; in IpSecSpiResponse() 58 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecSpiResponse() 64 resourceId = in.readInt(); in IpSecSpiResponse()
|
D | IpSecTunnelInterfaceResponse.java | 30 public final int resourceId; field in IpSecTunnelInterfaceResponse 43 out.writeInt(resourceId); in writeToParcel() 52 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTunnelInterfaceResponse() 58 resourceId = inResourceId; in IpSecTunnelInterfaceResponse() 64 resourceId = in.readInt(); in IpSecTunnelInterfaceResponse()
|
D | IpSecUdpEncapResponse.java | 34 public final int resourceId; field in IpSecUdpEncapResponse 54 out.writeInt(resourceId); in writeToParcel() 64 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecUdpEncapResponse() 75 resourceId = inResourceId; in IpSecUdpEncapResponse() 82 resourceId = in.readInt(); in IpSecUdpEncapResponse()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryTipsCardPreference.java | 74 public void setIconResourceId(int resourceId) { in setIconResourceId() argument 75 if (mIconResourceId != resourceId) { in setIconResourceId() 76 mIconResourceId = resourceId; in setIconResourceId() 84 public void setButtonColorResourceId(int resourceId) { in setButtonColorResourceId() argument 85 if (mButtonColorResourceId != resourceId) { in setButtonColorResourceId() 86 mButtonColorResourceId = resourceId; in setButtonColorResourceId()
|
D | AnomalyEventWrapper.java | 66 private int getResourceId(int resourceId, int resourceIndex, String defType) { in getResourceId() argument 67 final String key = getStringFromArrayResource(resourceId, resourceIndex); in getResourceId() 76 int resourceId, in getString() argument 79 return (!TextUtils.isEmpty(string) || resourceId <= 0) in getString() 81 : getStringFromArrayResource(resourceId, resourceIndex); in getString() 84 private String getStringFromArrayResource(int resourceId, int resourceIndex) { in getStringFromArrayResource() argument 85 if (resourceId <= 0 || resourceIndex < 0) { in getStringFromArrayResource() 88 final String[] stringArray = mContext.getResources().getStringArray(resourceId); in getStringFromArrayResource()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | PhotoStoreTest.java | 128 public void runStorageTestForResource(int resourceId, int expectedWidth, in runStorageTestForResource() argument 130 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResource() 138 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO); in runStorageTestForResource() 158 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth, in runStorageTestForResourceWithCrop() argument 160 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResourceWithCrop() 204 for (int resourceId : resourceIds) { in testCleanup() 206 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL), in testCleanup() 208 resourceIdToPhotoMap.put(resourceId, photoFileId); in testCleanup()
|
D | PhotoLoadingTestCase.java | 89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { in loadPhotoFromResource() argument 90 PhotoEntry entry = photoResourceCache.get(resourceId); in loadPhotoFromResource() 93 InputStream is = resources.openRawResource(resourceId); in loadPhotoFromResource() 96 photoResourceCache.put(resourceId, entry); in loadPhotoFromResource()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/ |
D | AttributeResolver.kt | 33 val resourceId = getResource(context, attribute) in getNullableDrawable() constant 34 if (resourceId == Resources.ID_NULL) { in getNullableDrawable() 37 return AppCompatResources.getDrawable(context, resourceId) in getNullableDrawable() 42 return outValue.resourceId in getResource()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | PlayerAdapter.java | 100 int resourceId; in handleStateChange() local 103 resourceId = R.string.player_started; in handleStateChange() 106 resourceId = R.string.player_delayed; in handleStateChange() 109 resourceId = R.string.player_paused; in handleStateChange() 114 resourceId = R.string.player_stopped; in handleStateChange() 116 mStatusTextView.setText(resourceId); in handleStateChange()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | Bots.java | 99 protected UiObject findObject(String resourceId) { in findObject() argument 100 final UiSelector object = new UiSelector().resourceId(resourceId); in findObject() 106 .resourceId(parentResourceId) in findObject() 107 .childSelector(new UiSelector().resourceId(childResourceId)); in findObject()
|
D | SidebarBot.java | 60 final UiSelector rootsList = new UiSelector().resourceId( in findRoot() 62 new UiSelector().resourceId(mRootListId)); in findRoot() 79 final UiSelector rootsList = new UiSelector().resourceId( in openDrawer() 81 new UiSelector().resourceId(mRootListId)); in openDrawer() 86 final UiSelector hamburger = new UiSelector().resourceId( in openDrawer()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ResourcesProvider.java | 127 final Integer resourceId = RESOURCES.get(docId); in openDocument() local 128 if (resourceId == null) { in openDocument() 131 return mTestUtils.getSeekableDescriptor(resourceId); in openDocument() 135 final Integer resourceId = RESOURCES.get(documentId); in includeDocument() local 136 if (resourceId == null) { in includeDocument() 142 fd = getContext().getResources().openRawResourceFd(resourceId); in includeDocument()
|
/packages/modules/Wifi/framework/java/android/net/wifi/util/ |
D | WifiResourceCache.java | 44 public boolean getBoolean(int resourceId, String resourceName) { in getBoolean() argument 46 v -> mContext.getResources().getBoolean(resourceId)); in getBoolean() 52 public int getInteger(int resourceId, String resourceName) { in getInteger() argument 54 v -> mContext.getResources().getInteger(resourceId)); in getInteger()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | AppsUtil.java | 56 int resourceId) in getResourceUri() argument 61 String resPkg = resources.getResourcePackageName(resourceId); in getResourceUri() 62 String type = resources.getResourceTypeName(resourceId); in getResourceUri() 63 return makeResourceUri(appInfo.packageName, resPkg, type, resourceId); in getResourceUri() 75 @NonNull String appPkg, @NonNull String resPkg, @NonNull String type, int resourceId) { in makeResourceUri() argument 87 uriBuilder.appendEncodedPath(resPkg + ":" + resourceId); in makeResourceUri() 89 uriBuilder.appendEncodedPath(String.valueOf(resourceId)); in makeResourceUri()
|