Home
last modified time | relevance | path

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

12345678

/packages/apps/Nfc/nci/jni/
DNfcTag.cpp230 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) in IsSameKovio()
323 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
324 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies()
325 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies()
326 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) ) in discoverTechnologies()
335 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies()
336 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) || in discoverTechnologies()
337 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies()
338 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) ) in discoverTechnologies()
430 if ( (discovery_ntf.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java90 private void updateSelectedTitle(ActionMode mode) { in updateSelectedTitle() argument
92 mode.setTitle(mContext.getResources().getQuantityString( in updateSelectedTitle()
108 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument
110 updateSelectedTitle(mode); in onItemCheckedStateChanged()
128 updateActionItemVisibilities(mode.getMenu(), in onItemCheckedStateChanged()
151 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
153 mActionMode = mode; in onCreateActionMode()
154 MenuInflater inflater = mode.getMenuInflater(); in onCreateActionMode()
159 updateSelectedTitle(mode); in onCreateActionMode()
164 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
[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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
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 …]
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 …]
DOpenWnnJAJP.java742 changeEngineMode(ev.mode); in onEvent()
743 if (!(ev.mode == ENGINE_MODE_SYMBOL || ev.mode == ENGINE_MODE_EISU_KANA)) { in onEvent()
2053 private void changeEngineMode(int mode) { in changeEngineMode() argument
2056 switch (mode) { in changeEngineMode()
2101 switch (mode) { in changeEngineMode()
2303 private void setDictionary(int mode) { in setDictionary() argument
2304 int target = mode; in setDictionary()
2338 switch (mode) { in setDictionary()
2341 mPrevDictionarySet = mode; in setDictionary()
2592 int mode = 0; in updateMetaKeyStateDisplay() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestActivity.java110 private void updateSelectedTitle(ActionMode mode) {
112 mode.setTitle(getResources().getQuantityString(
117 public void onItemCheckedStateChanged(ActionMode mode, int position, long id,
155 updateSelectedTitle(mode);
159 public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
164 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
165 MenuInflater inflater = mode.getMenuInflater();
167 updateSelectedTitle(mode);
168 mActiveActionMode = mode;
175 public void onDestroyActionMode(ActionMode mode) {
[all …]
/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/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/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/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()
/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/Gallery2/tests/src/com/android/gallery3d/glrenderer/
DGLStub.java161 int mode in glCullFace() argument
202 int mode, in glDrawArrays() argument
208 int mode, in glDrawElements() argument
261 int mode in glFrontFace() argument
313 int mode in glHint() argument
458 int mode in glMatrixMode() argument
614 int mode in glShadeModel() argument
820 int mode, in glDrawElements() argument
1270 int mode in glBlendEquation() argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DDefaultSoftKeyboardJAJP.java391 int mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() local
396 mode = OpenWnnEvent.Mode.DEFAULT; in changeKeyMode()
402 mode = OpenWnnEvent.Mode.NO_LV1_CONV; in changeKeyMode()
405 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode()
411 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode()
417 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode()
423 mode = OpenWnnJAJP.ENGINE_MODE_FULL_KATAKANA; in changeKeyMode()
428 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode()
433 mode = OpenWnnJAJP.ENGINE_MODE_HALF_KATAKANA; in changeKeyMode()
442 mWnn.onEvent(new OpenWnnEvent(OpenWnnEvent.CHANGE_MODE, mode)); in changeKeyMode()
[all …]
/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/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/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/Gallery2/jni_mosaic/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/Mms/src/com/android/mms/
DTempFileProvider.java63 private ParcelFileDescriptor getTempStoreFd(String mode) { in getTempStoreFd() argument
79 if (mode.equals("r")) { in getTempStoreFd()
100 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile() argument
108 Log.d(TAG, "openFile: uri=" + uri + ", mode=" + mode); in openFile()
113 fd = getTempStoreFd(mode); in openFile()
/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/VideoEditor/src/com/android/videoeditor/widgets/
DAudioTrackLinearLayout.java98 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
99 mAudioTrackActionMode = mode; in onCreateActionMode()
101 mode.getMenuInflater().inflate(R.menu.audio_mode_menu, menu); in onCreateActionMode()
105 mode.setCustomView(titleBarView); in onCreateActionMode()
120 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
127 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
168 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoActionPopup.java76 final Listener listener, int mode) { in createPopupMenu() argument
81 if ((mode & Flags.ALLOW_PRIMARY) > 0) { in createPopupMenu()
86 if ((mode & Flags.REMOVE_PHOTO) > 0) { in createPopupMenu()
91 if ((mode & Flags.TAKE_OR_PICK_PHOTO) > 0) { in createPopupMenu()
92 boolean replace = (mode & Flags.TAKE_OR_PICK_PHOTO_REPLACE_WORDING) > 0; in createPopupMenu()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hid.cpp76 …t_protocol_mode_callback(bt_bdaddr_t *bd_addr, bthh_status_t hh_status,bthh_protocol_mode_t mode) { in get_protocol_mode_callback() argument
94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, addr, (jint) mode); in get_protocol_mode_callback()
344 bthh_protocol_mode_t mode; in setProtocolModeNative() local
347 mode = BTHH_REPORT_MODE; in setProtocolModeNative()
350 mode = BTHH_BOOT_MODE; in setProtocolModeNative()
356 if ( (status = sBluetoothHidInterface->set_protocol((bt_bdaddr_t *) addr, mode)) != in setProtocolModeNative()
/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()

12345678