Home
last modified time | relevance | path

Searched refs:fragments (Results 1 – 25 of 40) sorted by relevance

12

/packages/modules/Connectivity/framework/src/android/net/
DNetworkConfig.java65 String fragments[] = init.split(","); in NetworkConfig() local
66 name = fragments[0].trim().toLowerCase(Locale.ROOT); in NetworkConfig()
67 type = Integer.parseInt(fragments[1]); in NetworkConfig()
68 radio = Integer.parseInt(fragments[2]); in NetworkConfig()
69 priority = Integer.parseInt(fragments[3]); in NetworkConfig()
70 restoreTime = Integer.parseInt(fragments[4]); in NetworkConfig()
71 dependencyMet = Boolean.parseBoolean(fragments[5]); in NetworkConfig()
/packages/modules/adb/
Dsocket_spec.cpp129 std::vector<std::string> fragments = android::base::Split(spec_str, ":"); in get_host_socket_spec_port() local
130 if (fragments.size() != 2) { in get_host_socket_spec_port()
134 if (!android::base::ParseInt(fragments[1], &port)) { in get_host_socket_spec_port()
241 std::vector<std::string> fragments = android::base::Split(spec_str, ":"); in socket_spec_connect() local
243 if (fragments.size() != 2 && fragments.size() != 3) { in socket_spec_connect()
250 if (!android::base::ParseUint(fragments[1], &cid)) { in socket_spec_connect()
256 if (fragments.size() == 3 && !android::base::ParseUint(fragments[2], &port_value)) { in socket_spec_connect()
362 std::vector<std::string> fragments = android::base::Split(spec_str, ":"); local
363 if (fragments.size() != 2) {
368 if (!android::base::ParseInt(fragments[1], &port)) {
/packages/modules/SdkExtensions/derive_classpath/
Dderive_classpath.cpp72 bool GlobClasspathFragments(Filepaths* fragments, const std::string& pattern) { in GlobClasspathFragments() argument
88 if (std::find(fragments->begin(), fragments->end(), path) == fragments->end()) { in GlobClasspathFragments()
89 fragments->push_back(path); in GlobClasspathFragments()
158 Filepaths fragments; in ParseFragments() local
160 if (!GlobClasspathFragments(&fragments, globPatternPrefix + pattern)) { in ParseFragments()
165 for (const auto& fragment_path : fragments) { in ParseFragments()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java134 ArrayList<Pair<String, Fragment>> fragments = activity.getFragments(); in testMedicalInfoSet() local
135 assertThat(fragments).hasSize(1); in testMedicalInfoSet()
137 (ViewEmergencyInfoFragment) fragments.get(0).second; in testMedicalInfoSet()
155 ArrayList<Pair<String, Fragment>> fragments = activity.getFragments(); in testEmergencyContactsSet() local
156 assertThat(fragments).hasSize(1); in testEmergencyContactsSet()
158 (ViewEmergencyContactsFragment) fragments.get(0).second; in testEmergencyContactsSet()
183 ArrayList<Pair<String, Fragment>> fragments = activity.getFragments(); in testMedicalInfoAndEmergencyContactsSet() local
184 assertThat(fragments).hasSize(2); in testMedicalInfoAndEmergencyContactsSet()
186 (ViewEmergencyInfoFragment) fragments.get(0).second; in testMedicalInfoAndEmergencyContactsSet()
189 (ViewEmergencyContactsFragment) fragments.get(1).second; in testMedicalInfoAndEmergencyContactsSet()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsActivityTest.java104 final List<Fragment> fragments = new ArrayList<>(); in onActivityResult_shouldDelegateToListener() local
105 fragments.add(new Fragment()); in onActivityResult_shouldDelegateToListener()
106 fragments.add(new ListenerFragment()); in onActivityResult_shouldDelegateToListener()
110 when(manager.getFragments()).thenReturn(fragments); in onActivityResult_shouldDelegateToListener()
114 assertThat(((ListenerFragment) fragments.get(1)).mOnActivityResultCalled).isTrue(); in onActivityResult_shouldDelegateToListener()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DDialtactsPagerAdapter.java53 private final List<Fragment> fragments = new ArrayList<>(); field in DialtactsPagerAdapter
67 fragments.addAll(Collections.nCopies(TAB_COUNT_WITH_VOICEMAIL, null)); in DialtactsPagerAdapter()
125 fragments.set(position, fragment); in instantiateItem()
138 return !hasActiveVoicemailProvider && fragments.indexOf(object) == TAB_INDEX_VOICEMAIL in getItemPosition()
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewInfoActivity.java201 ArrayList<Pair<String, Fragment>> fragments = new ArrayList<>(2); in setUpFragments() local
204 fragments.add(Pair.create(getResources().getString(R.string.tab_title_info), in setUpFragments()
208 fragments.add(Pair.create(getResources().getString(R.string.tab_title_contacts), in setUpFragments()
211 return fragments; in setUpFragments()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/wifi/
DWifiSettings2ActivityTest.java95 List<Fragment> fragments = activity.getSupportFragmentManager().getFragments(); in test_connect_to_wifi() local
96 Log.d(TAG, "fragment class is " + fragments.get(0).getClass()); in test_connect_to_wifi()
97 button[0] = fragments.get(0).getView().findViewById(R.id.button3); in test_connect_to_wifi()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java149 final List<Fragment> fragments = getSupportFragmentManager().getFragments(); in onFragmentDismissed() local
150 if (fragments.size() == 1 && fragments.get(0) == simDialogFragment) { in onFragmentDismissed()
/packages/apps/Settings/src/com/android/settings/applications/intentpicker/
DSupportedLinksDialogFragment.java127 final List<Fragment> fragments = getActivity().getSupportFragmentManager().getFragments(); in displaySelectedItem() local
128 for (Fragment fragment : fragments) { in displaySelectedItem()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DTopLevelMenuFragment.java167 List<Fragment> fragments = activity.getSupportFragmentManager().getFragments(); in clearBackStack() local
168 for (Fragment fragment : fragments) { in clearBackStack()
/packages/apps/Settings/src/com/android/settings/
DSettingsActivity.java365 final List<Fragment> fragments = getSupportFragmentManager().getFragments(); in onActivityResult() local
366 if (fragments != null) { in onActivityResult()
367 for (Fragment fragment : fragments) { in onActivityResult()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoPageAdapter.java24 import com.android.ex.photo.fragments.PhotoViewFragment;
DBuglePhotoViewFragment.java24 import com.android.ex.photo.fragments.PhotoViewFragment;
/packages/services/Car/service/res/raw/
Dvertical_blur_fragment_shader.glsl14 * This shader sets the colour of each fragment to be the weighted average of the uRadius fragments
Dhorizontal_blur_fragment_shader.glsl14 * This shader sets the colour of each fragment to be the weighted average of the uRadius fragments
/packages/modules/SdkExtensions/
DAndroid.bp71 fragments: [
/packages/providers/MediaProvider/apex/
DAndroid.bp55 fragments: [
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/
DMainActivity.java26 import com.google.android.car.networking.preferenceupdater.fragments.ManagerFragment;
/packages/modules/Scheduling/apex/
DAndroid.bp41 fragments: [
/packages/modules/IPsec/apex/
DAndroid.bp60 fragments: [
/packages/modules/Permission/
DAndroid.bp72 fragments: [
/packages/modules/Connectivity/Tethering/apex/
DAndroid.bp79 fragments: [
/packages/modules/Wifi/apex/
DAndroid.bp82 fragments: [
/packages/modules/StatsD/apex/
DAndroid.bp111 fragments: [

12