Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38c26dd0 authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Move dicnode to AOSP

Bug: 8187060

Change-Id: I72398fa45b12683bd46d23c5ca69e6bcd5ca2b7e
parent c1dec87a
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,10 @@ include $(CLEAR_VARS)
LATIN_IME_SRC_DIR := src
LATIN_IME_SRC_DIR := src
LATIN_IME_SRC_FULLPATH_DIR := $(LOCAL_PATH)/$(LATIN_IME_SRC_DIR)
LATIN_IME_SRC_FULLPATH_DIR := $(LOCAL_PATH)/$(LATIN_IME_SRC_DIR)


LOCAL_C_INCLUDES += $(LATIN_IME_SRC_FULLPATH_DIR) $(LATIN_IME_SRC_FULLPATH_DIR)/suggest
LOCAL_C_INCLUDES += \
    $(LATIN_IME_SRC_FULLPATH_DIR) \
    $(LATIN_IME_SRC_FULLPATH_DIR)/suggest \
    $(LATIN_IME_SRC_FULLPATH_DIR)/suggest/core/dicnode


LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-align \
LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-align \
    -Wwrite-strings -Wfloat-equal -Wpointer-arith -Winit-self -Wredundant-decls -Wno-system-headers
    -Wwrite-strings -Wfloat-equal -Wpointer-arith -Winit-self -Wredundant-decls -Wno-system-headers
@@ -59,6 +62,8 @@ LATIN_IME_CORE_SRC_FILES := \
    proximity_info_state_utils.cpp \
    proximity_info_state_utils.cpp \
    unigram_dictionary.cpp \
    unigram_dictionary.cpp \
    words_priority_queue.cpp \
    words_priority_queue.cpp \
    suggest/core/dicnode/dic_node.cpp \
    suggest/core/dicnode/dic_node_utils.cpp \
    suggest/gesture_suggest.cpp \
    suggest/gesture_suggest.cpp \
    suggest/typing_suggest.cpp
    suggest/typing_suggest.cpp


+44 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "dic_node.h"

namespace latinime {

DicNode::DicNode(const DicNode &dicNode)
        :
#if DEBUG_DICT
          mProfiler(dicNode.mProfiler),
#endif
          mDicNodeProperties(dicNode.mDicNodeProperties), mDicNodeState(dicNode.mDicNodeState),
          mIsCachedForNextSuggestion(dicNode.mIsCachedForNextSuggestion), mIsUsed(dicNode.mIsUsed),
          mReleaseListener(0) {
    /* empty */
}

DicNode &DicNode::operator=(const DicNode &dicNode) {
#if DEBUG_DICT
    mProfiler = dicNode.mProfiler;
#endif
    mDicNodeProperties = dicNode.mDicNodeProperties;
    mDicNodeState = dicNode.mDicNodeState;
    mIsCachedForNextSuggestion = dicNode.mIsCachedForNextSuggestion;
    mIsUsed = dicNode.mIsUsed;
    mReleaseListener = dicNode.mReleaseListener;
    return *this;
}

} // namespace latinime
+572 −0

File added.

Preview size limit exceeded, changes collapsed.

+213 −0

File added.

Preview size limit exceeded, changes collapsed.

+181 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading