Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 67) sorted by relevance

123

/packages/modules/DnsResolver/
Dsethostent.cpp71 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/
DRestrictAppTip.java62 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/
DRestrictAppTip.java62 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/
DEnterpriseInstalledPackagesPreferenceController.java44 (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()
DAdminGrantedPermissionsPreferenceControllerBase.java50 (num) -> { in updateState()
51 if (num == 0) { in updateState()
56 num, num)); in updateState()
79 false /* async */, (num) -> haveAppsWithAdminGrantedPermissions[0] = num > 0); in isAvailable()
DEnterpriseSetDefaultAppsPreferenceController.java46 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/
DEnterpriseInstalledPackagesPreferenceController.java44 (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()
DAdminGrantedPermissionsPreferenceControllerBase.java50 (num) -> { in updateState()
51 if (num == 0) { in updateState()
56 num, num)); in updateState()
79 false /* async */, (num) -> haveAppsWithAdminGrantedPermissions[0] = num > 0); in isAvailable()
DEnterpriseSetDefaultAppsPreferenceController.java46 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/
DBatteryManagerPreferenceController.java58 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()
DBatteryTipDialogFragment.java102 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/
DBatteryManagerPreferenceController.java58 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()
DBatteryTipDialogFragment.java102 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/
DADNList.java176 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/
DRestrictAppPreferenceController.java70 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/
DRestrictAppPreferenceController.java70 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/
DTestData.java23 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/
DRouteDataSet.cpp52 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/
DIoUtils.java50 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/
DApplicationFeatureProviderImpl.java179 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/
DApplicationFeatureProviderImpl.java179 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/
DWidgetsListAdapterTest.java126 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/
DTcpInfo.java151 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/
DCSite.h58 inline void setNumNeighbors(int num) { numNeighbors = num; } in setNumNeighbors() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java117 mProvider.calculateNumberOfPolicyInstalledApps(async, (num) -> mAppCount = num); in verifyCalculateNumberOfPolicyInstalledApps()
169 (num) -> mAppCount = num); in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()

123