Home
last modified time | relevance | path

Searched refs:components (Results 1 – 25 of 218) sorted by relevance

123456789

/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java146 List<CharSequence> components = new ArrayList<>(); in buildSecondaryTextListForEntries() local
149 components.add(context.getText(R.string.new_call_log_secondary_blocked)); in buildSecondaryTextListForEntries()
152 components.add(context.getText(R.string.new_call_log_secondary_spam)); in buildSecondaryTextListForEntries()
155 components.add(getNumberTypeLabel(context, row)); in buildSecondaryTextListForEntries()
157 components.add( in buildSecondaryTextListForEntries()
160 return components; in buildSecondaryTextListForEntries()
205 List<CharSequence> components = new ArrayList<>(); in buildSecondaryTextForBottomSheet() local
208 components.add(context.getText(R.string.new_call_log_secondary_blocked)); in buildSecondaryTextForBottomSheet()
211 components.add(context.getText(R.string.new_call_log_secondary_spam)); in buildSecondaryTextForBottomSheet()
214 components.add(getNumberTypeLabel(context, row)); in buildSecondaryTextForBottomSheet()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DPowerComponentUtilUnitTest.java118 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, in testPowerComponentsToStrings() local
126 List<String> componentStrings = powerComponentsToStrings(components); in testPowerComponentsToStrings()
128 assertComponentStringsMatchExpected(components, componentStrings); in testPowerComponentsToStrings()
133 List<Integer> components = new ArrayList<>(); in testPowerComponentsToStrings_empty() local
135 List<String> componentStrings = powerComponentsToStrings(components); in testPowerComponentsToStrings_empty()
143 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, 42); in testPowerComponentsToStrings_unknownComponent() local
145 List<String> componentStrings = powerComponentsToStrings(components); in testPowerComponentsToStrings_unknownComponent()
147 assertComponentStringsMatchExpected(components, componentStrings); in testPowerComponentsToStrings_unknownComponent()
152 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, in testPowerComponentsToStrings_customComponent() local
155 List<String> componentStrings = powerComponentsToStrings(components); in testPowerComponentsToStrings_customComponent()
[all …]
/packages/modules/adb/
Dservices.cpp161 std::vector<std::string> components = android::base::Split(spec, "-"); in wait_service() local
162 if (components.size() < 2) { in wait_service()
168 if (components[0] == "local") { in wait_service()
170 } else if (components[0] == "usb") { in wait_service()
172 } else if (components[0] == "any") { in wait_service()
180 for (size_t i = 1; i < components.size(); ++i) { in wait_service()
181 if (components[i] == "device") { in wait_service()
183 } else if (components[i] == "recovery") { in wait_service()
185 } else if (components[i] == "rescue") { in wait_service()
187 } else if (components[i] == "sideload") { in wait_service()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/power/
DPowerComponentUtil.java97 boolean filter(int[] components); in filter() argument
116 int[] components = filter.getComponents(); in hasComponents() local
117 for (int i = 0; i < components.length; i++) { in hasComponents()
118 filterSet.put(components[i], true); in hasComponents()
244 public static List<String> powerComponentsToStrings(Iterable<Integer> components) { in powerComponentsToStrings() argument
246 Iterator<Integer> componentsIterator = components.iterator(); in powerComponentsToStrings()
259 public static String powerComponentsToString(Iterable<Integer> components) { in powerComponentsToString() argument
261 Iterator<Integer> componentsIterator = components.iterator(); in powerComponentsToString()
277 public static Iterable<Integer> toPowerComponents(Iterable<String> components, boolean prefix) { in toPowerComponents() argument
279 Iterator<String> componentsIterator = components.iterator(); in toPowerComponents()
DCarPowerPolicyFilter.java60 @NonNull int[] components) { in CarPowerPolicyFilter()
61 this.mComponents = components; in CarPowerPolicyFilter()
98 int[] components = in.createIntArray(); in CarPowerPolicyFilter() local
100 this.mComponents = components; in CarPowerPolicyFilter()
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java273 SparseBooleanArray components = new SparseBooleanArray(); in definePowerPolicy() local
274 int status = parseComponents(enabledComponents, true, components); in definePowerPolicy()
278 status = parseComponents(disabledComponents, false, components); in definePowerPolicy()
282 CarPowerPolicy policy = new CarPowerPolicy(policyId, toIntArray(components, true), in definePowerPolicy()
283 toIntArray(components, false)); in definePowerPolicy()
633 ArrayMap<String, Boolean> components = new ArrayMap<>(); in parsePolicy() local
644 components.put(powerComponent, true); in parsePolicy()
647 components.put(powerComponent, false); in parsePolicy()
686 return new IntermediateCarPowerPolicy(policyId, components, behavior); in parsePolicy()
692 SparseBooleanArray components = new SparseBooleanArray(); in toCarPowerPolicy() local
[all …]
DPowerComponentHandler.java205 int[] components = filter.getComponents(); in isComponentChanged() local
206 for (int i = 0; i < components.length; i++) { in isComponentChanged()
207 if (mLastModifiedComponents.get(components[i], false)) { in isComponentChanged()
383 public void registerCustomComponents(Integer[] components) { in registerCustomComponents() argument
385 for (int i = 0; i < components.length; i++) { in registerCustomComponents()
386 int componentId = components[i]; in registerCustomComponents()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java164 void dump(ArrayList<ComponentInfo> components) { in dump() argument
165 for (ComponentInfo component : components) { in dump()
180 ArrayList<ComponentInfo> components = new ArrayList<ComponentInfo>(); in generateComponentsList() local
187 parseComponentInfo(pm, resolveInfo, components); in generateComponentsList()
197 dump(components); in generateComponentsList()
200 ArrayList<ComponentInfo> newComponents = new ArrayList<>(components); in generateComponentsList()
203 removedComponents.removeAll(components); in generateComponentsList()
211 mComponents = components; in generateComponentsList()
216 ArrayList<ComponentInfo> components) throws XmlPullParserException, IOException { in parseComponentInfo() argument
227 parser, info, components); in parseComponentInfo() local
[all …]
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp55 bool hasComponent(const std::vector<PowerComponent>& components, PowerComponent component) { in hasComponent() argument
57 std::find(components.cbegin(), components.cend(), component); in hasComponent()
58 return it != components.cend(); in hasComponent()
138 const auto& components = getComponentsOfInterest(); in connectToDaemon() local
141 filter.components = components; in connectToDaemon()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DTextStorageRepositoryTest.kt88 val components = in <lambda>() constant
94 storageRepository.persistData(components) in <lambda>()
102 val components = in <lambda>() constant
108 storageRepository.persistData(components) in <lambda>()
119 val components = in <lambda>() constant
121 storageRepository.persistData(components) in <lambda>()
/packages/services/Car/cpp/powerpolicy/server/src/
DPowerComponentHandler.cpp96 auto findComponent = [componentId](const std::vector<T> components) -> bool { in getComponentState() argument
97 return std::find(components.begin(), components.end(), componentId) != components.end(); in getComponentState()
136 auto printComponents = [fd](const auto& components, auto toStringFunc) { in dump() argument
138 for (const auto component : components) { in dump()
/packages/apps/Settings/src/com/android/settings/utils/
DZenServiceListing.java74 List<ComponentInfo> components = new ArrayList<>(); in reloadApprovedServices() local
75 getServices(mConfig, components, mContext.getPackageManager()); in reloadApprovedServices()
76 getActivities(mConfig, components, mContext.getPackageManager()); in reloadApprovedServices()
77 for (ComponentInfo componentInfo : components) { in reloadApprovedServices()
137 void onComponentsReloaded(Set<ComponentInfo> components); in onComponentsReloaded() argument
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DResolverListAdapterTest.kt508 val components = it.arguments[0] as MutableList<ResolvedComponentInfo> in test_resultsSorted_appearInSortedOrderInAdapter() constant
509 components[0] = components[1].also { components[1] = components[0] } in test_resultsSorted_appearInSortedOrderInAdapter()
566 val components = it.arguments[0] as MutableList<ResolvedComponentInfo> in test_ineligibleActivityFilteredOut_filteredComponentNotPresentInAdapter() constant
567 val original = ArrayList(components) in test_ineligibleActivityFilteredOut_filteredComponentNotPresentInAdapter()
568 components.removeAt(1) in test_ineligibleActivityFilteredOut_filteredComponentNotPresentInAdapter()
621 val components = it.arguments[0] as MutableList<ResolvedComponentInfo> in test_baseResolveList_excludedFromIneligibleActivityFiltering() constant
622 val original = ArrayList(components) in test_baseResolveList_excludedFromIneligibleActivityFiltering()
623 components.clear() in test_baseResolveList_excludedFromIneligibleActivityFiltering()
676 val components = it.arguments[0] as MutableList<ResolvedComponentInfo> in test_lowPriorityComponentFilteredOut_filteredComponentNotPresentInAdapter() constant
677 val original = ArrayList(components) in test_lowPriorityComponentFilteredOut_filteredComponentNotPresentInAdapter()
[all …]
/packages/modules/Bluetooth/system/stack/fuzzers/
DREADME.md12 in this directory focuses on the components under `system/stack`.
24 and L2CAP components. A couple post authentication components such as BNEP,
28 According to Bluetooth spec and the source code, most of the components we care
40 4. Many Bluetooth components work in both server mode and client mode with
69 component and minimium number of other Bluetooth components. This means any
70 dependencies from other Bluetooth components need to be mocked. The mocks are
94 most of the stack components. With the mocks and design patterns it
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DReverseGeocodeTask.java76 JSONArray components = topResult.optJSONArray(JSON_KEY_ADDRESS_COMPONENTS); in doInBackground() local
77 if (components != null) { in doInBackground()
79 for (int i = 0; !stripped && i < components.length(); i++) { in doInBackground()
80 JSONObject component = components.optJSONObject(i); in doInBackground()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp71 const int components = (static_cast<int>(format) & 0xff); in setup() local
74 switch (components) { in setup()
81 mScanlineUnformattedBuflen = mInfo.output_width * components; in setup()
96 mScanlineBuflen = mInfo.output_width * components; in setup()
Djpeg_writer.cpp75 const int components = (static_cast<int>(format) & 0xff); in setup() local
76 switch (components) { in setup()
103 mScanlineBuflen = width * components; in setup()
/packages/modules/Virtualization/
DREADME.md9 userspace components of AVF.
14 For in-depth explanations about individual topics and components, visit the following links.
16 AVF components:
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DModule.kt6 import dagger.hilt.android.components.ActivityComponent
7 import dagger.hilt.components.SingletonComponent
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerPolicyFilter.cpp29 CarPowerPolicyFilter::CarPowerPolicyFilter(const std::vector<int32_t>& components) : in CarPowerPolicyFilter() argument
30 mComponents(components) {} in CarPowerPolicyFilter()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/platform/
DFakeSettingsModule.kt21 import dagger.hilt.components.SingletonComponent
26 @TestInstallIn(components = [SingletonComponent::class], replaces = [SettingsModule::class])
/packages/apps/WallpaperPicker2/tests/robotests/common/src/com/android/wallpaper/testing/
DFakeDisplaysProviderModule.kt23 import dagger.hilt.components.SingletonComponent
28 @TestInstallIn(components = [SingletonComponent::class], replaces = [DisplaysProviderModule::class])
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/di/modules/
DTestActivityRetainedModule.kt24 import dagger.hilt.components.SingletonComponent
29 components = [SingletonComponent::class],
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/logging/
DTestEventLogModule.kt24 import dagger.hilt.android.components.ActivityRetainedComponent
30 @TestInstallIn(components = [ActivityRetainedComponent::class], replaces = [EventLogModule::class])
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DParameterParser.java106 String[] components = input.split(" "); in parseList() local
107 String className = components[0]; in parseList()
121 return Arrays.stream(components).skip(1) in parseList()

123456789