Home
last modified time | relevance | path

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

/packages/apps/FMRadio/src/com/android/fmradio/
DFmStation.java94 public static void insertStationToDb(Context context, int frequency, String stationName) { in insertStationToDb() argument
96 values.put(Station.FREQUENCY, frequency); in insertStationToDb()
111 Context context, int frequency, String stationName, String ps, String rt) { in insertStationToDb() argument
113 values.put(Station.FREQUENCY, frequency); in insertStationToDb()
137 public static void updateStationToDb(Context context, int frequency, String stationName) { in updateStationToDb() argument
145 new String[] { String.valueOf(frequency)}); in updateStationToDb()
155 public static void updateStationToDb(Context context, int frequency, ContentValues values) { in updateStationToDb() argument
160 new String[] { String.valueOf(frequency)}); in updateStationToDb()
169 public static void deleteStationInDb(Context context, int frequency) { in deleteStationInDb() argument
173 new String[] { String.valueOf(frequency)}); in deleteStationInDb()
[all …]
DFmMainActivity.java280 float frequency = bundle.getFloat(FmListener.KEY_TUNE_TO_STATION);
281 mCurrentStation = FmUtils.computeStation(frequency);
511 public void onRename(int frequency) { in onCreate()
512 showRenameDialog(frequency); in onCreate()
516 public void onRemoveFavorite(int frequency) { in onCreate()
518 if (FmStation.isFavoriteStation(mContext, frequency)) { in onCreate()
519 FmStation.removeFromFavorite(mContext, frequency); in onCreate()
520 if (mCurrentStation == frequency) { in onCreate()
521 mTextStationName.setText(FmStation.getStationName(mContext, frequency)); in onCreate()
530 public void onPlay(int frequency) { in onCreate()
[all …]
DFmService.java580 public void powerUpAsync(float frequency) { in powerUpAsync() argument
585 bundle.putFloat(FM_FREQUENCY, frequency); in powerUpAsync()
591 private boolean powerUp(float frequency) { in powerUp() argument
612 if (!FmNative.powerUp(frequency)) { in powerUp()
623 private boolean playFrequency(float frequency) { in playFrequency() argument
624 mCurrentStation = FmUtils.computeStation(frequency); in playFrequency()
719 public void tuneStationAsync(float frequency) { in tuneStationAsync() argument
723 bundle.putFloat(FM_FREQUENCY, frequency); in tuneStationAsync()
729 private boolean tuneStation(float frequency) { in tuneStation() argument
732 boolean bRet = FmNative.tune(frequency); in tuneStation()
[all …]
DFmUtils.java119 public static int computeStation(float frequency) { in computeStation() argument
120 return (int) (frequency * CONVERT_RATE); in computeStation()
142 float frequency = (float) station / CONVERT_RATE; in formatStation() local
144 return decimalFormat.format(frequency); in formatStation()
DFmNative.java48 static native boolean powerUp(float frequency); in powerUp() argument
66 static native boolean tune(float frequency); in tune() argument
76 static native float seek(float frequency, boolean isUp); in seek() argument
DFmFavoriteActivity.java133 float frequency = 0; in onCreate()
135 frequency = Float.parseFloat(textView.getText().toString()); in onCreate()
140 intentResult.putExtra(ACTIVITY_RESULT, FmUtils.computeStation(frequency)); in onCreate()
DFmRecordActivity.java92 mFrequency = (TextView) findViewById(R.id.frequency); in onCreate()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DWnnSentence.java43 this.frequency = 0; in WnnSentence()
54 this.frequency = headClause.frequency; in WnnSentence()
69 this.frequency = headClause.frequency; in WnnSentence()
86 this.frequency = clause.frequency; in WnnSentence()
104 this.frequency = prev.frequency + clause.frequency; in WnnSentence()
125 this.frequency = head.frequency; in WnnSentence()
135 this.frequency = head.frequency + tail.frequency; in WnnSentence()
DWnnWord.java32 public int frequency; field in WnnWord
62 public WnnWord(String candidate, String stroke, int frequency) { in WnnWord() argument
63 this(0, candidate, stroke, new WnnPOS(), frequency, 0); in WnnWord()
85 public WnnWord(String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnWord() argument
86 this(0, candidate, stroke, posTag, frequency, 0); in WnnWord()
98 public WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnWord() argument
99 this(id, candidate, stroke, posTag, frequency, 0); in WnnWord()
112 …public WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency, int attribut… in WnnWord() argument
116 this.frequency = frequency; in WnnWord()
DWnnClause.java34 public WnnClause(String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnClause() argument
38 frequency); in WnnClause()
52 stem.frequency, in WnnClause()
68 stem.frequency, in WnnClause()
DOpenWnnDictionaryImpl.java655 result.frequency = mFrequencyOffsetOfUserDictionary; in getNextWord()
657 result.frequency = mFrequencyOffsetOfLearnDictionary; in getNextWord()
686 … result.frequency = OpenWnnDictionaryImplJni.getFrequency( this.mWnnWork ); in getNextWord()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnClauseConverterJAJP.java178 … if (sentence[idx].frequency > sentence[start-1].frequency + CLAUSE_COST + FREQ_LEARN) { in consecutiveClauseConvert()
183 if (sentence[idx].frequency > CLAUSE_COST + FREQ_LEARN) { in consecutiveClauseConvert()
213 ws.frequency += CLAUSE_COST; in consecutiveClauseConvert()
216 if (sentence[idx] == null || (sentence[idx].frequency < ws.frequency)) { in consecutiveClauseConvert()
295 if (all || stem.frequency > max) { in singleClauseConvert()
301 max = stem.frequency; in singleClauseConvert()
351 if (best.frequency < clause.frequency) { in addClause()
361 if (clausei.frequency < clause.frequency) { in addClause()
506 if (word.frequency < 400) { in getIndependentWords()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java297 public void addUnigramEntry(final String word, final int frequency, in addUnigramEntry() argument
302 addUnigramLocked(word, frequency, isNotAWord, isPossiblyOffensive, timestamp); in addUnigramEntry()
307 protected void addUnigramLocked(final String word, final int frequency, in addUnigramLocked() argument
309 if (!mBinaryDictionary.addUnigramEntry(word, frequency, in addUnigramLocked()
341 final int frequency, final int timestamp) { in addNgramEntry() argument
350 addNgramEntryLocked(ngramContext, word, frequency, timestamp); in addNgramEntry()
356 final int frequency, final int timestamp) { in addNgramEntryLocked() argument
357 if (!mBinaryDictionary.addNgramEntry(ngramContext, word, frequency, timestamp)) { in addNgramEntryLocked()
DUserBinaryDictionary.java203 final int frequency = cursor.getInt(indexFrequency); in addWordsLocked() local
204 final int adjustedFrequency = scaleFrequencyFromDefaultToLatinIme(frequency); in addWordsLocked()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java167 int frequency = cursor.getInt(COLUMN_FREQUENCY); in getDictionary() local
173 String out = name + SEPARATOR + frequency + SEPARATOR + locale + SEPARATOR + appId in getDictionary()
226 final String frequency = st.nextToken(); in restoreDictionary() local
235 int frequencyInt = Integer.parseInt(frequency); in restoreDictionary()
247 || TextUtils.isEmpty(frequency) || TextUtils.isEmpty(word)) { in restoreDictionary()
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined21 # starting with a `shortcut' entry and having at least a `f' frequency
26 # `bigram' entry containing the following word whose frequency should
27 # override the unigram frequency when following the word this bigram is
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java283 final int frequency = info.getFrequency(); in WifiConfigController() local
286 if (frequency >= AccessPoint.LOWER_FREQ_24GHZ in WifiConfigController()
287 && frequency < AccessPoint.HIGHER_FREQ_24GHZ) { in WifiConfigController()
289 } else if (frequency >= AccessPoint.LOWER_FREQ_5GHZ in WifiConfigController()
290 && frequency < AccessPoint.HIGHER_FREQ_5GHZ) { in WifiConfigController()
293 Log.e(TAG, "Unexpected frequency " + frequency); in WifiConfigController()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java198 CharSequence frequency = ProcStatsPackageEntry.getFrequency(duration in createDetails() local
200 findPreference(KEY_FREQUENCY).setSummary(frequency); in createDetails()
257 CharSequence frequency = ProcStatsPackageEntry.getFrequency(duration in fillProcessesSection() local
260 getString(R.string.memory_use_running_format, memoryString, frequency)); in fillProcessesSection()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java578 final int frequency; in makeBigramFlags() local
583 frequency = unigramFrequency; in makeBigramFlags()
585 frequency = bigramFrequency; in makeBigramFlags()
587 bigramFlags += getBigramFrequencyDiff(unigramFrequency, frequency) in makeBigramFlags()
DPendingAttribute.java28 public PendingAttribute(final int frequency, final int address) { in PendingAttribute() argument
29 mFrequency = frequency; in PendingAttribute()
/packages/apps/FMRadio/src/com/android/fmradio/views/
DFmScroller.java977 private void showPopupMenu(View anchor, final int frequency) { in showPopupMenu() argument
988 mEventListener.onRemoveFavorite(frequency); in showPopupMenu()
993 mEventListener.onRename(frequency); in showPopupMenu()
1046 void onRemoveFavorite(int frequency); in onRemoveFavorite() argument
1053 void onRename(int frequency); in onRename() argument
1060 void onPlay(int frequency); in onPlay() argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DPersonalDictionaryLookupTest.java82 private Uri addWord(final String word, final Locale locale, int frequency, String shortcut) { in addWord() argument
84 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale); in addWord()