1/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.inputmethod.latin.personalization;
18
19import com.android.inputmethod.latin.Dictionary;
20import com.android.inputmethod.latin.ExpandableBinaryDictionary;
21
22import android.content.Context;
23import android.content.SharedPreferences;
24
25public class PersonalizationPredictionDictionary extends DecayingExpandableBinaryDictionaryBase {
26    private static final String NAME = PersonalizationPredictionDictionary.class.getSimpleName();
27
28    /* package */ PersonalizationPredictionDictionary(final Context context, final String locale,
29            final SharedPreferences sp) {
30        super(context, locale, sp, Dictionary.TYPE_PERSONALIZATION_PREDICTION_IN_JAVA,
31                getDictionaryFileName(locale));
32    }
33
34    private static String getDictionaryFileName(final String locale) {
35        return NAME + "." + locale + ExpandableBinaryDictionary.DICT_FILE_EXTENSION;
36    }
37}
38