Searched defs:mode (Results 26 - 50 of 109) sorted by relevance

12345

/packages/apps/Browser/src/com/android/browser/
H A DXLargeUi.java197 // action mode callbacks
200 public void onActionModeStarted(ActionMode mode) { argument
/packages/apps/Browser/src/com/android/browser/stub/
H A DNullController.java111 public void onActionModeStarted(ActionMode mode) { argument
115 public void onActionModeFinished(ActionMode mode) { argument
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorEditText.java225 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument
230 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument
232 // Prevents the selection action mode on double tap.
237 public void onDestroyActionMode(ActionMode mode) {} argument
240 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DDbTestUtils.java74 public SharedPreferences getSharedPreferences(String name, int mode) { argument
78 return super.getSharedPreferences(name, mode);
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DPyramid.cpp149 int mode)
177 (mode * ((6 * t1 +
180 (mode * ((t1 + t2 + 1) >> 1)));
186 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) argument
192 if (mode > 0) {
200 else if (mode < 0) {
148 BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode) argument
/packages/apps/Camera/src/com/android/camera/
H A DModePicker.java36 * A widget that includes three mode selections {@code RotateImageView}'s and
37 * a current mode indicator.
45 // Total mode number
92 // The current mode frame is for Phone UI only.
125 // There is a new activity created when changing mode. Fade-in animation at
126 // old activity would be interrupted and new mode picker appears.
174 // Set the selected mode as the current one and switch to it.
194 public void setCurrentMode(int mode) { argument
195 mCurrentMode = mode;
208 public boolean onModeChanged(int mode) { argument
[all...]
/packages/apps/Email/src/com/android/email/activity/
H A DMessageListItemCoordinates.java110 * Returns the mode of the header view (Wide/Normal/Narrow) given the its
124 // Choose the correct mode based on view width.
125 int mode = NORMAL_MODE;
127 mode = WIDE_MODE;
129 return mode;
137 * Returns the layout id to be inflated in this mode.
139 private static int getLayoutId(int mode) { argument
140 switch (mode) {
146 throw new IllegalArgumentException("Unknown conversation header view mode " + mode);
164 getHeight(Context context, int mode) argument
229 getSubjectLength(Context context, int mode) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DDBTestHelper.java173 public File getDir(String name, int mode) { argument
174 return mBaseContext.getDir("mockcontext2_" + name, mode);
206 public SharedPreferences getSharedPreferences(String name, int mode) { argument
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMockFolder.java111 public void open(OpenMode mode) { argument
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
H A DCalendarSyncAdapterTests.java80 public File getDir(String name, int mode) { argument
83 return getContext().getDir("mockcontext2_" + name, mode);
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DCalendarSyncAdapterTests.java80 public File getDir(String name, int mode) { argument
83 return getContext().getDir("mockcontext2_" + name, mode);
/packages/apps/Gallery/src/com/android/camera/
H A DHighlightView.java171 public void setMode(ModifyMode mode) { argument
172 if (mode != mMode) {
173 mMode = mode;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DManageCachePage.java270 // We will always be in selection mode in this page.
395 public void onSelectionModeChange(int mode) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
H A DGalleryProvider.java199 public ParcelFileDescriptor openFile(Uri uri, String mode) argument
203 if (mode.contains("w")) {
212 return PicasaSource.openFile(getContext(), object, mode);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DActionModeHandler.java111 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument
167 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument
168 MenuInflater inflater = mode.getMenuInflater();
184 public void onDestroyActionMode(ActionMode mode) { argument
188 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
199 // This happens when starting selection mode from overflow menu
H A DSelectionManager.java48 public void onSelectionModeChange(int mode); argument
59 // Whether we will leave selection mode automatically once the number of
137 // Convert to inverse selection mode if everything is selected.
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DThreadPool.java48 boolean setMode(int mode); argument
62 public boolean setMode(int mode) { argument
120 // A job is in CPU mode by default. setMode returns false
186 public boolean setMode(int mode) { argument
193 rc = modeToCounter(mode);
198 mMode = mode;
204 private ResourceCounter modeToCounter(int mode) { argument
205 if (mode == MODE_CPU) {
207 } else if (mode == MODE_NETWORK) {
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
H A DPicasaSource.java129 public static ParcelFileDescriptor openFile(Context context, MediaObject image, String mode) argument
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasTest.java167 // GL_LINE_STRIP mode to draw the line and the input coordinates are used
174 public void glDrawArrays(int mode, int first, int count) { argument
176 assertEquals(GL10.GL_LINE_STRIP, mode);
211 // GL_TRIANGLE_STRIP mode to draw the line and the input coordinates
218 public void glDrawArrays(int mode, int first, int count) { argument
220 assertEquals(GL10.GL_TRIANGLE_STRIP, mode);
287 public void glDrawArrays(int mode, int first, int count) { argument
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DPyramid.cpp149 int mode)
171 (mode * ((6 * scr->ptr[j][i] +
174 (mode * ((scr->ptr[j][i] + scr->ptr[j][i+1] + 1) >> 1)));
180 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) argument
186 if (mode > 0) {
194 else if (mode < 0) {
148 BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode) argument
/packages/apps/LegacyCamera/src/com/android/camera/
H A DModePicker.java36 * A widget that includes three mode selections {@code RotateImageView}'s and
37 * a current mode indicator.
46 // Total mode number
51 // Returns true if the listener agrees that the mode can be changed.
94 // The current mode frame is for Phone UI only.
163 // Set the selected mode as the current one and switch to it.
182 public void setCurrentMode(int mode) { argument
183 mCurrentMode = mode;
187 public boolean onModeChanged(int mode) { argument
188 setCurrentMode(mode);
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DBrightnessPreference.java145 int mode = getBrightnessMode(0);
147 if (false && mode == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC) {
253 private void setMode(int mode) { argument
254 mAutomaticMode = mode == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC;
256 Settings.System.SCREEN_BRIGHTNESS_MODE, mode);
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDiscoverableEnabler.java75 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE,
77 if (mode != BluetoothAdapter.ERROR) {
78 handleModeChanged(mode);
240 void handleModeChanged(int mode) { argument
241 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
259 int mode = mLocalAdapter.getScanMode();
260 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
268 // We're still in discoverable mode, but maybe there isn't a timeout.
H A DLocalBluetoothAdapter.java133 void setScanMode(int mode) { argument
134 mAdapter.setScanMode(mode);
137 boolean setScanMode(int mode, int duration) { argument
138 return mAdapter.setScanMode(mode, duration);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DMiscFilesHandler.java84 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument
90 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
94 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument
128 mode.finish();
137 onItemCheckedStateChanged(mode, 1, 0, true);
160 public void onDestroyActionMode(ActionMode mode) { argument
164 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, argument
168 mode.setTitle(String.format(mNumSelectedFormat, numChecked, mAdapter.getCount()));
181 mode.setSubtitle(String.format(mNumBytesSelectedFormat,

Completed in 1616 milliseconds

12345