/packages/modules/DnsResolver/ |
D | sethostent.cpp | 71 size_t len, num, i; in _hf_gethtbyname2() local 94 for (num = 0; num < MAXADDRS; /**/) { in _hf_gethtbyname2() 115 if (num == 0) { in _hf_gethtbyname2() 128 if (num >= MAXADDRS) goto nospc; in _hf_gethtbyname2() 129 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr, len); in _hf_gethtbyname2() 131 num++; in _hf_gethtbyname2() 135 if (num == 0) { in _hf_gethtbyname2() 151 HENT_ARRAY(hp->h_addr_list, num, ptr, len); in _hf_gethtbyname2() 153 for (i = 0; i < num; i++) { in _hf_gethtbyname2() 161 hp->h_addr_list[num] = NULL; in _hf_gethtbyname2()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTip.java | 62 final int num = mRestrictAppList.size(); in getTitle() local 63 final CharSequence appLabel = num > 0 ? Utils.getApplicationLabel(context, in getTitle() 68 ? resources.getQuantityString(R.plurals.battery_tip_restrict_handled_title, num, in getTitle() 69 appLabel, num) in getTitle() 70 : resources.getQuantityString(R.plurals.battery_tip_restrict_title, num, num); in getTitle() 75 final int num = mRestrictAppList.size(); in getSummary() local 76 final CharSequence appLabel = num > 0 ? Utils.getApplicationLabel(context, in getSummary() 81 return context.getResources().getQuantityString(resId, num, appLabel, num); in getSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/ |
D | RestrictAppTip.java | 62 final int num = mRestrictAppList.size(); in getTitle() local 63 final CharSequence appLabel = num > 0 ? Utils.getApplicationLabel(context, in getTitle() 68 ? resources.getQuantityString(R.plurals.battery_tip_restrict_handled_title, num, in getTitle() 69 appLabel, num) in getTitle() 70 : resources.getQuantityString(R.plurals.battery_tip_restrict_title, num, num); in getTitle() 75 final int num = mRestrictAppList.size(); in getSummary() local 76 final CharSequence appLabel = num > 0 ? Utils.getApplicationLabel(context, in getSummary() 81 return context.getResources().getQuantityString(resId, num, appLabel, num); in getSummary()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterpriseInstalledPackagesPreferenceController.java | 44 (num) -> { in updateState() 46 if (num == 0) { in updateState() 51 R.plurals.enterprise_privacy_number_packages_lower_bound, num, in updateState() 52 num)); in updateState() 73 (num) -> haveEnterpriseInstalledPackages[0] = num > 0); in isAvailable()
|
D | AdminGrantedPermissionsPreferenceControllerBase.java | 50 (num) -> { in updateState() 51 if (num == 0) { in updateState() 56 num, num)); in updateState() 79 false /* async */, (num) -> haveAppsWithAdminGrantedPermissions[0] = num > 0); in isAvailable()
|
D | EnterpriseSetDefaultAppsPreferenceController.java | 46 final int num = getNumberOfEnterpriseSetDefaultApps(); in updateState() local 48 R.plurals.enterprise_privacy_number_packages, num, num)); in updateState() 62 int num = 0; in getNumberOfEnterpriseSetDefaultApps() local 65 num += mApplicationFeatureProvider in getNumberOfEnterpriseSetDefaultApps() 70 return num; in getNumberOfEnterpriseSetDefaultApps()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | EnterpriseInstalledPackagesPreferenceController.java | 44 (num) -> { in updateState() 46 if (num == 0) { in updateState() 51 R.plurals.enterprise_privacy_number_packages_lower_bound, num, in updateState() 52 num)); in updateState() 73 (num) -> haveEnterpriseInstalledPackages[0] = num > 0); in isAvailable()
|
D | AdminGrantedPermissionsPreferenceControllerBase.java | 50 (num) -> { in updateState() 51 if (num == 0) { in updateState() 56 num, num)); in updateState() 79 false /* async */, (num) -> haveAppsWithAdminGrantedPermissions[0] = num > 0); in isAvailable()
|
D | EnterpriseSetDefaultAppsPreferenceController.java | 46 final int num = getNumberOfEnterpriseSetDefaultApps(); in updateState() local 48 R.plurals.enterprise_privacy_number_packages, num, num)); in updateState() 62 int num = 0; in getNumberOfEnterpriseSetDefaultApps() local 65 num += mApplicationFeatureProvider in getNumberOfEnterpriseSetDefaultApps() 70 return num; in getNumberOfEnterpriseSetDefaultApps()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryManagerPreferenceController.java | 58 final int num = BatteryTipUtils.getRestrictedAppsList(mAppOpsManager, mUserManager).size(); in updateState() local 65 updateSummary(preference, featureOn, num); in updateState() 69 void updateSummary(Preference preference, boolean featureOn, int num) { in updateSummary() argument 70 if (num > 0) { in updateSummary() 72 R.plurals.battery_manager_app_restricted, num, num)); in updateSummary()
|
D | BatteryTipDialogFragment.java | 102 final int num = restrictedAppList.size(); in onCreateDialog() local 108 R.plurals.battery_tip_restrict_app_dialog_title, num, num)) in onCreateDialog() 111 if (num == 1) { in onCreateDialog() 114 } else if (num <= 5) { in onCreateDialog()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryManagerPreferenceController.java | 58 final int num = BatteryTipUtils.getRestrictedAppsList(mAppOpsManager, mUserManager).size(); in updateState() local 65 updateSummary(preference, featureOn, num); in updateState() 69 void updateSummary(Preference preference, boolean featureOn, int num) { in updateSummary() argument 70 if (num > 0) { in updateSummary() 72 R.plurals.battery_manager_app_restricted, num, num)); in updateSummary()
|
D | BatteryTipDialogFragment.java | 102 final int num = restrictedAppList.size(); in onCreateDialog() local 108 R.plurals.battery_tip_restrict_app_dialog_title, num, num)) in onCreateDialog() 111 if (num == 1) { in onCreateDialog() 114 } else if (num <= 5) { in onCreateDialog()
|
/packages/services/Telephony/src/com/android/phone/ |
D | ADNList.java | 176 String num = cursor.getString(NUMBER_COLUMN); in newAdapter() 177 if (num != null) { in newAdapter() 179 num = bf.unicodeWrap(num, TextDirectionHeuristics.LTR, true); in newAdapter() 182 ((TextView) view).setText(num); in newAdapter()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictAppPreferenceController.java | 70 final int num = mAppInfos.size(); in updateState() local 72 preference.setVisible(num > 0); in updateState() 74 mContext.getResources().getQuantityString(R.plurals.restricted_app_summary, num, in updateState() 75 num)); in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | RestrictAppPreferenceController.java | 70 final int num = mAppInfos.size(); in updateState() local 72 preference.setVisible(num > 0); in updateState() 74 mContext.getResources().getQuantityString(R.plurals.restricted_app_summary, num, in updateState() 75 num)); in updateState()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestData.java | 23 public static List<String> create(int num) { in create() argument 24 List<String> items = new ArrayList<String>(num); in create() 25 for (int i = 0; i < num; ++i) { in create()
|
/packages/apps/Nfc/nci/jni/ |
D | RouteDataSet.cpp | 52 unsigned int num = 0; in AidBuffer() local 60 num = 0; in AidBuffer() 62 sscanf(aid.substr(pos1).c_str(), "%x", &num); in AidBuffer() 63 mBuffer[mBufferLen] = (uint8_t)num; in AidBuffer() 67 sscanf(aid.substr(pos1, pos2 - pos1 + 1).c_str(), "%x", &num); in AidBuffer() 68 mBuffer[mBufferLen] = (uint8_t)num; in AidBuffer()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | IoUtils.java | 50 int num; in readFromStream() local 52 while ((num = inputStream.read(buf, 0, buf.length)) >= 0) { in readFromStream() 53 buffer.write(buf, 0, num); in readFromStream()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 179 protected void onCountComplete(int num) { in onCountComplete() argument 180 mCallback.onNumberOfAppsResult(num); in onCountComplete() 197 protected void onCountComplete(int num) { in onCountComplete() argument 198 mCallback.onNumberOfAppsResult(num); in onCountComplete()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ApplicationFeatureProviderImpl.java | 179 protected void onCountComplete(int num) { in onCountComplete() argument 180 mCallback.onNumberOfAppsResult(num); in onCountComplete() 197 protected void onCountComplete(int num) { in onCountComplete() argument 198 mCallback.onNumberOfAppsResult(num); in onCountComplete()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/ |
D | WidgetsListAdapterTest.java | 126 private ArrayList<WidgetListRowEntry> generateSampleMap(int num) { in generateSampleMap() argument 128 if (num <= 0) return result; in generateSampleMap() 141 if (newMap.size() == num) { in generateSampleMap()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpInfo.java | 151 private static String decodeWscale(byte num) { in decodeWscale() argument 152 return String.valueOf((num >> 4) & 0x0f) + ":" + String.valueOf(num & 0x0f); in decodeWscale()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | CSite.h | 58 inline void setNumNeighbors(int num) { numNeighbors = num; } in setNumNeighbors() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 117 mProvider.calculateNumberOfPolicyInstalledApps(async, (num) -> mAppCount = num); in verifyCalculateNumberOfPolicyInstalledApps() 169 (num) -> mAppCount = num); in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
|