Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 152) sorted by relevance

1234567

/packages/apps/Browser/src/com/android/browser/
DUrlSelectionActionMode.java34 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
35 mode.getMenuInflater().inflate(R.menu.url_selection, menu); in onCreateActionMode()
40 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
44 mode.finish(); in onActionItemClicked()
53 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
57 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
DBrowserActivity.java255 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted() argument
256 super.onActionModeStarted(mode); in onActionModeStarted()
257 mController.onActionModeStarted(mode); in onActionModeStarted()
261 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished() argument
262 super.onActionModeFinished(mode); in onActionModeFinished()
263 mController.onActionModeFinished(mode); in onActionModeFinished()
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp227 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) in IsSameKovio()
320 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
321 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies()
322 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies()
323 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) ) in discoverTechnologies()
332 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies()
333 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) || in discoverTechnologies()
334 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies()
335 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) ) in discoverTechnologies()
427 if ( (discovery_ntf.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMessageListItemCoordinates.java125 int mode = NORMAL_MODE; in getMode() local
127 mode = WIDE_MODE; in getMode()
129 return mode; in getMode()
139 private static int getLayoutId(int mode) { in getLayoutId() argument
140 switch (mode) { in getLayoutId()
146 throw new IllegalArgumentException("Unknown conversation header view mode " + mode); in getLayoutId()
164 public static int getHeight(Context context, int mode) { in getHeight() argument
166 (mode == WIDE_MODE) in getHeight()
229 public static int getSubjectLength(Context context, int mode) { in getSubjectLength() argument
234 return SUBJECT_LENGTHS[mode]; in getSubjectLength()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java51 boolean setMode(int mode); in setMode() argument
65 public boolean setMode(int mode) { in setMode() argument
202 public boolean setMode(int mode) { in setMode() argument
209 rc = modeToCounter(mode); in setMode()
214 mMode = mode; in setMode()
220 private ResourceCounter modeToCounter(int mode) { in modeToCounter() argument
221 if (mode == MODE_CPU) { in modeToCounter()
223 } else if (mode == MODE_NETWORK) { in modeToCounter()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DControlPanelLayout.java44 int mode, longSideSize, shortSideSize, specSize; in onMeasure() local
50 mode = MeasureSpec.getMode(widthSpec); in onMeasure()
55 mode = MeasureSpec.getMode(heightSpec); in onMeasure()
61 if (widthSpecSize > 0 && heightSpecSize > 0 && mode == MeasureSpec.AT_MOST) { in onMeasure()
76 if (mode == MeasureSpec.AT_MOST && measuredSize > specSize) { in onMeasure()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java80 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE,
82 if (mode != BluetoothAdapter.ERROR) {
83 handleModeChanged(mode);
250 void handleModeChanged(int mode) { in handleModeChanged() argument
251 Log.d(TAG, "handleModeChanged(): mode = " + mode); in handleModeChanged()
252 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in handleModeChanged()
270 int mode = mLocalAdapter.getScanMode(); in updateCountdownSummary() local
271 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in updateCountdownSummary()
DLocalBluetoothAdapter.java133 void setScanMode(int mode) { in setScanMode() argument
134 mAdapter.setScanMode(mode); in setScanMode()
137 boolean setScanMode(int mode, int duration) { in setScanMode() argument
138 return mAdapter.setScanMode(mode, duration); in setScanMode()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMiscFilesHandler.java84 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
90 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
94 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
128 mode.finish(); in onActionItemClicked()
137 onItemCheckedStateChanged(mode, 1, 0, true); in onActionItemClicked()
160 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
164 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument
168 mode.setTitle(String.format(mNumSelectedFormat, numChecked, mAdapter.getCount())); in onItemCheckedStateChanged()
181 mode.setSubtitle(String.format(mNumBytesSelectedFormat, in onItemCheckedStateChanged()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordActivity.java48 final int mode; in onCreate() local
50 mode = UserDictionaryAddWordContents.MODE_EDIT; in onCreate()
52 mode = UserDictionaryAddWordContents.MODE_INSERT; in onCreate()
62 args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode); in onCreate()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEvent.java265 public int mode = 0; field in OpenWnnEvent
295 public OpenWnnEvent(int code, int mode) { in OpenWnnEvent() argument
297 this.mode = mode; in OpenWnnEvent()
DDefaultSoftKeyboard.java400 protected Keyboard getModeChangeKeyboard(int mode) { in getModeChangeKeyboard() argument
402 … Keyboard[] kbd = mKeyboard[mCurrentLanguage][mDisplayMode][mCurrentKeyboardType][mShiftOn][mode]; in getModeChangeKeyboard()
510 int mode = -1; in processAltKey() local
515 mode = KEYMODE_EN_NUMBER; in processAltKey()
517 mode = KEYMODE_EN_ALPHABET; in processAltKey()
523 mode = KEYMODE_JA_HALF_NUMBER; in processAltKey()
525 mode = KEYMODE_JA_HALF_ALPHABET; in processAltKey()
527 mode = KEYMODE_JA_FULL_NUMBER; in processAltKey()
529 mode = KEYMODE_JA_FULL_ALPHABET; in processAltKey()
537 if (mode >= 0) { in processAltKey()
[all …]
DOpenWnnEN.java266 private void setSymbolMode(String mode) { in setSymbolMode() argument
267 if (mode != null) { in setSymbolMode()
270 mSymbolList.setDictionary(mode); in setSymbolMode()
921 int mode = 0; in updateMetaKeyStateDisplay() local
923 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_OFF; in updateMetaKeyStateDisplay()
925 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_ON_ALT_OFF; in updateMetaKeyStateDisplay()
927 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_LOCK_ALT_OFF; in updateMetaKeyStateDisplay()
929 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_ON; in updateMetaKeyStateDisplay()
931 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_LOCK; in updateMetaKeyStateDisplay()
933 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_ON_ALT_ON; in updateMetaKeyStateDisplay()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactsListFragment.java64 public ContactsListFragment(int mode) { in ContactsListFragment() argument
66 mMode = mode; in ContactsListFragment()
104 public void setMode(int mode) { in setMode() argument
105 boolean reload = mode != mMode; in setMode()
106 mMode = mode; in setMode()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoActionPopup.java74 final Listener listener, int mode) { in createPopupMenu() argument
79 if ((mode & Flags.ALLOW_PRIMARY) > 0) { in createPopupMenu()
84 if ((mode & Flags.REMOVE_PHOTO) > 0) { in createPopupMenu()
89 if ((mode & Flags.TAKE_OR_PICK_PHOTO) > 0) { in createPopupMenu()
90 boolean replace = (mode & Flags.TAKE_OR_PICK_PHOTO_REPLACE_WORDING) > 0; in createPopupMenu()
/packages/apps/Mms/src/com/android/mms/ui/
DAttachmentTypeSelectorAdapter.java43 public AttachmentTypeSelectorAdapter(Context context, int mode) { in AttachmentTypeSelectorAdapter() argument
44 super(context, getData(mode, context)); in AttachmentTypeSelectorAdapter()
52 protected static List<IconListItem> getData(int mode, Context context) { in getData() argument
74 if (mode == MODE_WITH_SLIDESHOW) { in getData()
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DProviderTestCase3.java54 public File getDir(String name, int mode) { in getDir() argument
57 return getContext().getDir("mockcontext2_" + name, mode); in getDir()
66 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() argument
67 return getContext().getSharedPreferences("mockcontext2_" + name, mode); in getSharedPreferences()
/packages/apps/LegacyCamera/src/com/android/camera/
DMenuHelper.java50 public static void addSwitchModeMenuItem(Menu menu, int mode, in addSwitchModeMenuItem() argument
53 switch(mode) { in addSwitchModeMenuItem()
99 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument
101 switch (mode) { in gotoMode()
115 Log.e(TAG, "unknown camera mode:" + mode); in gotoMode()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DFileContentProvider.java50 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile() argument
56 if (!"r".equals(mode)) { in openFile()
57 throw new FileNotFoundException("Bad mode for " + uri + ": " + mode); in openFile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DProfileProvider.java112 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() argument
113 if (mode != null && mode.contains("w")) { in openAssetFile()
118 return mDelegate.openAssetFileLocal(uri, mode); in openAssetFile()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java100 public File getDir(String name, int mode) { in createMockProviderCalls()
149 public File getDir(String name, int mode);
167 public File getDir(String name, int mode) {
168 return mDelegate.getDir(name, mode);
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DDownloadList.java277 @Override public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
283 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
288 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
293 mDownloadList.mActionMode = mode; in onCreateActionMode()
298 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
317 onItemCheckedStateChanged(mode, position, 0, false); in onActionItemClicked()
322 onItemCheckedStateChanged(mode, 1, 0, false); in onActionItemClicked()
332 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument
345 mDownloadList.setActionModeTitle(mode); in onItemCheckedStateChanged()
349 void setActionModeTitle(ActionMode mode) { in setActionModeTitle() argument
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DPyramid.cpp149 int mode) in BorderExpandOdd() argument
177 (mode * ((6 * t1 + in BorderExpandOdd()
180 (mode * ((t1 + t2 + 1) >> 1))); in BorderExpandOdd()
186 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) in BorderExpand() argument
192 if (mode > 0) { in BorderExpand()
200 else if (mode < 0) { in BorderExpand()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp149 int mode) in BorderExpandOdd() argument
171 (mode * ((6 * scr->ptr[j][i] + in BorderExpandOdd()
174 (mode * ((scr->ptr[j][i] + scr->ptr[j][i+1] + 1) >> 1))); in BorderExpandOdd()
180 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) in BorderExpand() argument
186 if (mode > 0) { in BorderExpand()
194 else if (mode < 0) { in BorderExpand()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasTest.java174 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
176 assertEquals(GL10.GL_LINE_STRIP, mode); in glDrawArrays()
218 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
220 assertEquals(GL10.GL_TRIANGLE_STRIP, mode); in glDrawArrays()
287 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument

1234567