/development/tools/findunused/ |
D | find_unused_resources.rb | 96 findAllOccurrences(re, line).each { |id| 97 @@globalJavaIdUses[id] = FilePosition.new(filename, file.lineno) 115 findAllOccurrences(@@stringIdPattern, line).each {|id| 116 strings[id] = FilePosition.new(filename, file.lineno) 118 findAllOccurrences(@@layoutIdPattern, line).each {|id| 119 layouts[id] = FilePosition.new(filename, file.lineno) 122 findAllOccurrences(re, line).each {|id| 123 xmlIdUses[id] = FilePosition.new(filename, file.lineno) 135 findAllOccurrences(re, line).each {|id| 136 xmlIdUses[id] = FilePosition.new(filename, file.lineno) [all …]
|
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
D | SimpleGeofenceStore.java | 54 public SimpleGeofence getGeofence(String id) { in getGeofence() argument 57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), in getGeofence() 59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), in getGeofence() 61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), in getGeofence() 64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION), in getGeofence() 66 int transitionType = mPrefs.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE), in getGeofence() 74 return new SimpleGeofence(id, lat, lng, radius, expirationDuration, transitionType); in getGeofence() 84 public void setGeofence(String id, SimpleGeofence geofence) { in setGeofence() argument 89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude()); in setGeofence() 90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude()); in setGeofence() [all …]
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
D | HelloEffects.java | 63 mEffectView = (GLSurfaceView) findViewById(R.id.effectsview); in onCreate() 67 mCurrentEffect = R.id.none; in onCreate() 99 case R.id.none: in initEffect() 102 case R.id.autofix: in initEffect() 108 case R.id.bw: in initEffect() 115 case R.id.brightness: in initEffect() 121 case R.id.contrast: in initEffect() 127 case R.id.crossprocess: in initEffect() 132 case R.id.documentary: in initEffect() 137 case R.id.duotone: in initEffect() [all …]
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | Tracking.java | 65 int id = activity.getTaskId(); in onResume() local 66 Task task = getOrCreateTask(mTaskOverView, id); in onResume() 96 mTaskOverView.remove(task.id); in onDestroy() 116 if (activity.getTaskId() != task.id) { in checkForMovedActivities() 130 int id = activity.getTaskId(); in moveActivitiesInOrder() local 131 if (id != task.id) { in moveActivitiesInOrder() 132 Task target = mTaskOverView.get(id); in moveActivitiesInOrder() 135 Task newTask = Task.newTask(id); in moveActivitiesInOrder() 136 mTaskOverView.put(id, newTask); in moveActivitiesInOrder() 183 private static Task getOrCreateTask(Map<Integer, Task> map, int id) { in getOrCreateTask() argument [all …]
|
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
D | MediaEffectsFragment.java | 69 mEffectView = (GLSurfaceView) view.findViewById(R.id.effectsview); in onViewCreated() 76 setCurrentEffect(R.id.none); in onViewCreated() 118 if (mCurrentEffect != R.id.none) { in onDrawFrame() 156 case R.id.none: in initEffect() 159 case R.id.autofix: in initEffect() 164 case R.id.bw: in initEffect() 170 case R.id.brightness: in initEffect() 175 case R.id.contrast: in initEffect() 180 case R.id.crossprocess: in initEffect() 184 case R.id.documentary: in initEffect() [all …]
|
/development/tools/repo_diff/service/repodiff/repositories/ |
D | source_test.go | 39 id, err := sourceRepo.getOrCreateURLBranchID(url, branch) 41 assert.True(t, id > 0, "ID should be non-zero") 44 assert.Equal(t, id, idSecondFetch, "Retrieved ID values should be identical") 54 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch) 55 assert.Equal(t, int16(1), id, "ID should be 1 since it's first row") 60 id, _ = sourceRepo.getOrCreateURLBranchID(nextURL, nextBranch) 61 assert.Equal(t, int16(1), id, "ID should be 1 since it's first row") 63 id, _ = sourceRepo.getOrCreateURLBranchID(url, branch) 64 assert.Equal(t, int16(1), id, "ID should be 1 since it hit the cache") 73 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch) [all …]
|
D | source.go | 24 id, ok := cacheSingleton.Get(cacheKey(url, branch)) 26 return id.(int16), nil 37 id, err := s.getIDByURLBranch(url, branch) 39 return id, nil 62 var id *int16 66 id = new(int16) 67 row.Scan(id) 73 if id == nil { 76 return *id, nil 79 func (s source) GetURLBranchByID(id int16) (string, string, error) { [all …]
|
/development/apps/Development/src/com/android/development/ |
D | Connectivity.java | 397 addRequestableNetwork(NET_CAPABILITY_MMS, R.id.request_mms, R.id.release_mms, in Connectivity() 398 R.id.mms_progress); in Connectivity() 399 addRequestableNetwork(NET_CAPABILITY_SUPL, R.id.request_supl, R.id.release_supl, in Connectivity() 400 R.id.supl_progress); in Connectivity() 401 addRequestableNetwork(NET_CAPABILITY_INTERNET, R.id.request_cell, R.id.release_cell, in Connectivity() 402 R.id.cell_progress); in Connectivity() 411 R.id.request_wifi, R.id.release_wifi, R.id.wifi_progress)); in Connectivity() 430 findViewById(R.id.enableWifi).setOnClickListener(mClickListener); in onCreate() 431 findViewById(R.id.disableWifi).setOnClickListener(mClickListener); in onCreate() 432 findViewById(R.id.acquireWifiMulticastLock).setOnClickListener(mClickListener); in onCreate() [all …]
|
D | AccountsTester.java | 83 mAccountTypesSpinner = (Spinner) findViewById(R.id.accounts_tester_account_types_spinner); in onCreate() 84 mAccountsListView = (ListView) findViewById(R.id.accounts_tester_accounts_list); in onCreate() 87 findViewById(R.id.accounts_tester_get_all_accounts).setOnClickListener(buttonClickListener); in onCreate() 88 findViewById(R.id.accounts_tester_get_accounts_by_type).setOnClickListener( in onCreate() 90 findViewById(R.id.accounts_tester_add_account).setOnClickListener(buttonClickListener); in onCreate() 91 findViewById(R.id.accounts_tester_edit_properties).setOnClickListener(buttonClickListener); in onCreate() 92 findViewById(R.id.accounts_tester_get_auth_token_by_type_and_feature).setOnClickListener( in onCreate() 95 (EditText) findViewById(R.id.accounts_tester_desired_authtokentype); in onCreate() 96 mDesiredFeaturesEditText = (EditText) findViewById(R.id.accounts_tester_desired_features); in onCreate() 129 R.id.accounts_tester_account_name); in getView() [all …]
|
D | PackageSummary.java | 69 mPackage = (TextView)findViewById(R.id.packageView); in onCreate() 70 mIconImage = (ImageView)findViewById(R.id.icon); in onCreate() 71 mClass = (TextView)findViewById(R.id.classView); in onCreate() 72 mLabel = (TextView)findViewById(R.id.label); in onCreate() 73 mDisabled = findViewById(R.id.disabled); in onCreate() 74 mSystem = findViewById(R.id.system); in onCreate() 75 mDebuggable = findViewById(R.id.debuggable); in onCreate() 76 mNoCode = findViewById(R.id.nocode); in onCreate() 77 mPersistent = findViewById(R.id.persistent); in onCreate() 78 mRestart = (Button)findViewById(R.id.restart); in onCreate() [all …]
|
D | PermissionDetails.java | 129 holder.pkgName = (TextView) convertView.findViewById(R.id.pkg_name); in getView() 148 ListView listView = (ListView)findViewById(android.R.id.list); in createAppList() 150 ListView lv= (ListView) findViewById(android.R.id.list); in createAppList() 200 setTextView(R.id.perm_name, pInfo.name); in onCreate() 201 setTextView(R.id.perm_desc, pInfo.descriptionRes); in onCreate() 202 setTextView(R.id.perm_group, pInfo.group); in onCreate() 203 setProtectionLevel(R.id.perm_protection, pInfo.protectionLevel); in onCreate() 204 setTextView(R.id.perm_source, pInfo.packageName); in onCreate() 209 setTextView(R.id.source_uid, uidStr); in onCreate() 214 LinearLayout sharedPanel = (LinearLayout) findViewById(R.id.shared_pkgs_panel); in onCreate() [all …]
|
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/ |
D | NfcProvisioningFragment.java | 76 mEditPackageName = (EditText) view.findViewById(R.id.package_name); in onViewCreated() 77 mEditLocale = (EditText) view.findViewById(R.id.locale); in onViewCreated() 78 mEditTimezone = (EditText) view.findViewById(R.id.timezone); in onViewCreated() 79 mEditWifiSsid = (EditText) view.findViewById(R.id.wifi_ssid); in onViewCreated() 80 mEditWifiSecurityType = (EditText) view.findViewById(R.id.wifi_security_type); in onViewCreated() 81 mEditWifiPassword = (EditText) view.findViewById(R.id.wifi_password); in onViewCreated() 83 mEditPackageName.addTextChangedListener(new TextWatcherWrapper(R.id.package_name, this)); in onViewCreated() 84 mEditLocale.addTextChangedListener(new TextWatcherWrapper(R.id.locale, this)); in onViewCreated() 85 mEditTimezone.addTextChangedListener(new TextWatcherWrapper(R.id.timezone, this)); in onViewCreated() 86 mEditWifiSsid.addTextChangedListener(new TextWatcherWrapper(R.id.wifi_ssid, this)); in onViewCreated() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | ActionBarDisplayOptions.java | 46 findViewById(R.id.toggle_home_as_up).setOnClickListener(this); in onCreate() 47 findViewById(R.id.toggle_show_home).setOnClickListener(this); in onCreate() 48 findViewById(R.id.toggle_use_logo).setOnClickListener(this); in onCreate() 49 findViewById(R.id.toggle_show_title).setOnClickListener(this); in onCreate() 50 findViewById(R.id.toggle_show_custom).setOnClickListener(this); in onCreate() 51 findViewById(R.id.cycle_custom_gravity).setOnClickListener(this); in onCreate() 52 findViewById(R.id.toggle_visibility).setOnClickListener(this); in onCreate() 53 findViewById(R.id.toggle_system_ui).setOnClickListener(this); in onCreate() 55 ((Spinner) findViewById(R.id.toggle_navigation)).setOnItemSelectedListener(this); in onCreate() 86 case R.id.toggle_home_as_up: in onClick() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ActivityTransition.java | 55 R.id.ball, 56 R.id.block, 57 R.id.ducky, 58 R.id.jellies, 59 R.id.mug, 60 R.id.pencil, 61 R.id.scissors, 62 R.id.woot, 76 public static int getIdForKey(String id) { in getIdForKey() argument 77 return IDS[getIndexForKey(id)]; in getIdForKey() [all …]
|
D | Transitions.java | 44 mSceneRoot = (ViewGroup) findViewById(R.id.sceneRoot); in onCreate() 62 case R.id.scene1: in selectScene() 65 case R.id.scene2: in selectScene() 68 case R.id.scene3: in selectScene() 71 case R.id.scene4: in selectScene() 76 setNewSize(R.id.view1, 150, 25); in selectScene() 77 setNewSize(R.id.view2, 150, 25); in selectScene() 78 setNewSize(R.id.view3, 150, 25); in selectScene() 79 setNewSize(R.id.view4, 150, 25); in selectScene() 84 private void setNewSize(int id, int width, int height) { in setNewSize() argument [all …]
|
/development/samples/ControllerSample/src/com/example/inputmanagercompat/ |
D | InputManagerV9.java | 68 int id = imv.mDevices.keyAt(i); in handleMessage() local 69 if (null == InputDevice.getDevice(id)) { in handleMessage() 71 imv.notifyListeners(ON_DEVICE_REMOVED, id); in handleMessage() 72 imv.mDevices.remove(id); in handleMessage() 98 public InputDevice getInputDevice(int id) { in getInputDevice() argument 99 return InputDevice.getDevice(id); in getInputDevice() 108 for ( int id : activeDevices ) { in getInputDeviceIds() 109 long[] lastContact = mDevices.get(id); in getInputDeviceIds() 112 mDevices.put(id, new long[] { time }); in getInputDeviceIds() 154 static DeviceEvent getDeviceEvent(int messageType, int id, in getDeviceEvent() argument [all …]
|
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/ |
D | MainActivity.java | 69 final Button getAllRequestingApps = (Button) findViewById(R.id.getallrequestingapps); in onCreate() 70 final TextView getAllRequesting3pUids = (TextView) findViewById(R.id.requestingapps); in onCreate() 72 final RadioGroup accountChooser = (RadioGroup) findViewById(R.id.accountGroup); in onCreate() 73 final RadioGroup optionChooser = (RadioGroup) findViewById(R.id.optionsGroup); in onCreate() 74 final RadioGroup packagesChooser = (RadioGroup) findViewById(R.id.packagesChooser); in onCreate() 75 final Button selectOption = (Button) findViewById(R.id.selectoptionbutton); in onCreate() 76 final TextView authStatus = (TextView) findViewById(R.id.authenticatorstatus); in onCreate() 150 if (checkedAccount == R.id.terrabutton) { in onCreate() 152 } else if (checkedAccount == R.id.aquabutton) { in onCreate() 154 } else if (checkedAccount == R.id.ventusbutton) { in onCreate() [all …]
|
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/ |
D | TouchDisplayView.java | 152 int id = event.getPointerId(0); in onTouchEvent() local 163 mTouches.put(id, data); in onTouchEvent() 182 int id = event.getPointerId(index); in onTouchEvent() local 186 data.label = "id: " + id; in onTouchEvent() 194 mTouches.put(id, data); in onTouchEvent() 210 int id = event.getPointerId(0); in onTouchEvent() local 211 TouchHistory data = mTouches.get(id); in onTouchEvent() 212 mTouches.remove(id); in onTouchEvent() 232 int id = event.getPointerId(index); in onTouchEvent() local 234 TouchHistory data = mTouches.get(id); in onTouchEvent() [all …]
|
/development/samples/SampleSyncAdapter/samplesyncadapter_server/ |
D | dashboard.py | 102 id = int(self.request.get('id')) 103 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 104 self.send_form('Edit Contact', '/edit_contact', id, contact.handle, 108 id = int(self.request.get('id')) 109 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 119 self.send_form('Edit Contact', '/edit_contact', id, contact.handle, data) 125 id = int(self.request.get('id')) 126 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) 142 id = int(self.request.get('id')) 143 contact = datastore.Contact.get(db.Key.from_path('Contact', id)) [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | SystemUIModes.java | 195 mImage = (IV) findViewById(R.id.image); in onCreate() 204 mCheckControls[0] = (CheckBox) findViewById(R.id.modeLowProfile); in onCreate() 205 mCheckControls[1] = (CheckBox) findViewById(R.id.modeFullscreen); in onCreate() 206 mCheckControls[2] = (CheckBox) findViewById(R.id.modeHideNavigation); in onCreate() 207 mCheckControls[3] = (CheckBox) findViewById(R.id.modeImmersive); in onCreate() 208 mCheckControls[4] = (CheckBox) findViewById(R.id.modeImmersiveSticky); in onCreate() 209 mCheckControls[5] = (CheckBox) findViewById(R.id.layoutStable); in onCreate() 210 mCheckControls[6] = (CheckBox) findViewById(R.id.layoutFullscreen); in onCreate() 211 mCheckControls[7] = (CheckBox) findViewById(R.id.layoutHideNavigation); in onCreate() 215 ((CheckBox) findViewById(R.id.windowFullscreen)).setOnCheckedChangeListener( in onCreate() [all …]
|
D | SecureViewOverlay.java | 53 spoofLayout(findViewById(R.id.secure_view_overlay_description), in onLayout() 54 mActivity.findViewById(R.id.secure_view_description)); in onLayout() 55 spoofLayout(findViewById(R.id.secure_view_overlay_button1), in onLayout() 56 mActivity.findViewById(R.id.secure_view_unsecure_button)); in onLayout() 57 spoofLayout(findViewById(R.id.secure_view_overlay_button2), in onLayout() 58 mActivity.findViewById(R.id.secure_view_builtin_secure_button)); in onLayout() 59 spoofLayout(findViewById(R.id.secure_view_overlay_button3), in onLayout() 60 mActivity.findViewById(R.id.secure_view_custom_secure_button)); in onLayout()
|
/development/samples/MultiWindow/src/com/example/android/multiwindow/ |
D | LaunchingAdjacentActivity.java | 36 findViewById(R.id.launch_settings_adjacent).setOnClickListener(this); in onCreate() 37 findViewById(R.id.launch_new_task_single).setOnClickListener(this); in onCreate() 38 findViewById(R.id.launch_new_task_multiple).setOnClickListener(this); in onCreate() 39 findViewById(R.id.launch_new_task_adjacent).setOnClickListener(this); in onCreate() 45 ((TextView) findViewById(R.id.instance_number)) in onCreate() 52 case R.id.launch_settings_adjacent: { in onClick() 59 case R.id.launch_new_task_single: { in onClick() 65 case R.id.launch_new_task_multiple: { in onClick() 71 case R.id.launch_new_task_adjacent: { in onClick()
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
D | Alarm.java | 32 public int id; field in Alarm 43 public Alarm(int id, int month, int date, int hour, int minute) { in Alarm() argument 44 this.id = id; in Alarm() 62 jsonObject.put("id", id); in toJson() 84 alarm.id = jsonObject.getInt("id"); in fromJson() 99 "id=" + id + in toString() 116 return id == alarm.id && in equals() 125 return Objects.hash(id, month, date, hour, minute); in hashCode()
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | RecipeActivity.java | 62 mTitleTextView = (TextView) findViewById(R.id.recipeTextTitle); in onCreate() 63 mSummaryTextView = (TextView) findViewById(R.id.recipeTextSummary); in onCreate() 64 mImageView = (ImageView) findViewById(R.id.recipeImageView); in onCreate() 65 mIngredientsTextView = (TextView) findViewById(R.id.textIngredients); in onCreate() 66 mStepsLayout = (LinearLayout) findViewById(R.id.layoutSteps); in onCreate() 79 case R.id.action_cook: in onOptionsItemSelected() 108 findViewById(R.id.ingredientsHeader).setAnimation(fadeIn); in displayRecipe() 109 findViewById(R.id.ingredientsHeader).setVisibility(View.VISIBLE); in displayRecipe() 110 findViewById(R.id.stepsHeader).setAnimation(fadeIn); in displayRecipe() 112 findViewById(R.id.stepsHeader).setVisibility(View.VISIBLE); in displayRecipe() [all …]
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | DeviceDetailFragment.java | 69 mContentView.findViewById(R.id.btn_connect).setOnClickListener(new View.OnClickListener() { in onCreateView() 94 mContentView.findViewById(R.id.btn_disconnect).setOnClickListener( in onCreateView() 103 mContentView.findViewById(R.id.btn_start_client).setOnClickListener( in onCreateView() 125 TextView statusText = (TextView) mContentView.findViewById(R.id.status_text); in onActivityResult() 146 TextView view = (TextView) mContentView.findViewById(R.id.group_owner); in onConnectionInfoAvailable() 152 view = (TextView) mContentView.findViewById(R.id.device_info); in onConnectionInfoAvailable() 159 new FileServerAsyncTask(getActivity(), mContentView.findViewById(R.id.status_text)) in onConnectionInfoAvailable() 164 mContentView.findViewById(R.id.btn_start_client).setVisibility(View.VISIBLE); in onConnectionInfoAvailable() 165 ((TextView) mContentView.findViewById(R.id.status_text)).setText(getResources() in onConnectionInfoAvailable() 170 mContentView.findViewById(R.id.btn_connect).setVisibility(View.GONE); in onConnectionInfoAvailable() [all …]
|