aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/gesture/impl
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/src/gesture/impl')
-rw-r--r--native/jni/src/gesture/impl/gesture_decoder_impl.cpp40
-rw-r--r--native/jni/src/gesture/impl/gesture_decoder_impl.h41
-rw-r--r--native/jni/src/gesture/impl/header/nothing.h23
-rw-r--r--native/jni/src/gesture/impl/incremental_decoder_impl.cpp40
-rw-r--r--native/jni/src/gesture/impl/incremental_decoder_impl.h46
-rw-r--r--native/jni/src/gesture/impl/token_beam_impl.cpp20
-rw-r--r--native/jni/src/gesture/impl/token_beam_impl.h29
-rw-r--r--native/jni/src/gesture/impl/token_impl.cpp20
-rw-r--r--native/jni/src/gesture/impl/token_impl.h29
9 files changed, 0 insertions, 288 deletions
diff --git a/native/jni/src/gesture/impl/gesture_decoder_impl.cpp b/native/jni/src/gesture/impl/gesture_decoder_impl.cpp
deleted file mode 100644
index 035850ead..000000000
--- a/native/jni/src/gesture/impl/gesture_decoder_impl.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * 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 "gesture_decoder_impl.h"
-#include "incremental_decoder_interface.h"
-
-namespace latinime {
-
-// A factory method for GestureDecoderImpl
-static IncrementalDecoderInterface *getDecoderInstance(int maxWordLength, int maxWords) {
- return new GestureDecoderImpl(maxWordLength, maxWords);
-}
-
-// An ad-hoc internal class to register the factory method defined above
-class GestureDecoderFactoryRegisterer {
- public:
- GestureDecoderFactoryRegisterer() {
- IncrementalDecoderInterface::setGestureDecoderFactoryMethod(getDecoderInstance);
- }
- private:
- DISALLOW_COPY_AND_ASSIGN(GestureDecoderFactoryRegisterer);
-};
-
-// To invoke the GestureDecoderFactoryRegisterer constructor in the global constructor
-// Not sure, but can be static?
-GestureDecoderFactoryRegisterer gestureDecoderFactoryRegisterer;
-} // namespace latinime
diff --git a/native/jni/src/gesture/impl/gesture_decoder_impl.h b/native/jni/src/gesture/impl/gesture_decoder_impl.h
deleted file mode 100644
index 6de807b39..000000000
--- a/native/jni/src/gesture/impl/gesture_decoder_impl.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * 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.
- */
-
-#ifndef LATINIME_GESTURE_DECODER_IMPL_H
-#define LATINIME_GESTURE_DECODER_IMPL_H
-
-#include "defines.h"
-#include "incremental_decoder_impl.h"
-
-namespace latinime {
-
-class GestureDecoderImpl : public IncrementalDecoderImpl {
- public:
- GestureDecoderImpl(int maxWordLength, int maxWords) :
- IncrementalDecoderImpl(maxWordLength, maxWords) {
- }
-
- int getSuggestions(ProximityInfo *pInfo, int *inputXs, int *inputYs, int *times,
- int *pointerIds, int *codes, int inputSize, int commitPoint,
- unsigned short *outWords, int *frequencies, int *outputIndices) {
- return 0;
- }
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(GestureDecoderImpl);
-};
-} // namespace latinime
-#endif // LATINIME_GESTURE_DECODER_IMPL_H
diff --git a/native/jni/src/gesture/impl/header/nothing.h b/native/jni/src/gesture/impl/header/nothing.h
deleted file mode 100644
index c9d8645c9..000000000
--- a/native/jni/src/gesture/impl/header/nothing.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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.
- */
-
-#ifndef LATINIME_NOTHING_H
-#define LATINIME_NOTHING_H
-
-namespace latinime {
-} // namespace latinime
-
-#endif // LATINIME_NOTHING_H
diff --git a/native/jni/src/gesture/impl/incremental_decoder_impl.cpp b/native/jni/src/gesture/impl/incremental_decoder_impl.cpp
deleted file mode 100644
index f2b76ed26..000000000
--- a/native/jni/src/gesture/impl/incremental_decoder_impl.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * 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 "incremental_decoder_impl.h"
-#include "incremental_decoder_interface.h"
-
-namespace latinime {
-
-// A factory method for IncrementalDecoderImpl
-static IncrementalDecoderInterface *getDecoderInstance(int maxWordLength, int maxWords) {
- return new IncrementalDecoderImpl(maxWordLength, maxWords);
-}
-
-// An ad-hoc internal class to register the factory method defined above
-class IncrementalDecoderFactoryRegisterer {
- public:
- IncrementalDecoderFactoryRegisterer() {
- IncrementalDecoderInterface::setIncrementalDecoderFactoryMethod(getDecoderInstance);
- }
- private:
- DISALLOW_COPY_AND_ASSIGN(IncrementalDecoderFactoryRegisterer);
-};
-
-// To invoke the IncrementalDecoderFactoryRegisterer constructor in the global constructor
-// Not sure, but can be static?
-IncrementalDecoderFactoryRegisterer incrementalDecoderFactoryRegisterer;
-} // namespace latinime
diff --git a/native/jni/src/gesture/impl/incremental_decoder_impl.h b/native/jni/src/gesture/impl/incremental_decoder_impl.h
deleted file mode 100644
index 50ed14303..000000000
--- a/native/jni/src/gesture/impl/incremental_decoder_impl.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.
- */
-
-#ifndef LATINIME_INCREMENTAL_DECODER_IMPL_H
-#define LATINIME_INCREMENTAL_DECODER_IMPL_H
-
-#include "defines.h"
-#include "incremental_decoder_interface.h"
-
-namespace latinime {
-
-class UnigramDictionary;
-class BigramDictionary;
-
-class IncrementalDecoderImpl : public IncrementalDecoderInterface {
- public:
- IncrementalDecoderImpl(int maxWordLength, int maxWords) { };
- void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
- const uint8_t *dictRoot, int rootPos) { };
- void setPrevWord(const int32_t *prevWord, int prevWordLength) { };
- void reset() { };
-
- int getSuggestions(ProximityInfo *pInfo, int *inputXs, int *inputYs, int *times,
- int *pointerIds, int *codes, int inputSize, int commitPoint,
- unsigned short *outWords, int *frequencies, int *outputIndices) {
- return 0;
- }
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalDecoderImpl);
-};
-} // namespace latinime
-#endif // LATINIME_INCREMENTAL_DECODER_IMPL_H
diff --git a/native/jni/src/gesture/impl/token_beam_impl.cpp b/native/jni/src/gesture/impl/token_beam_impl.cpp
deleted file mode 100644
index ffac4dd39..000000000
--- a/native/jni/src/gesture/impl/token_beam_impl.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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 "token_beam_impl.h"
-
-namespace latinime {
-} // namespace latinime
diff --git a/native/jni/src/gesture/impl/token_beam_impl.h b/native/jni/src/gesture/impl/token_beam_impl.h
deleted file mode 100644
index 50de9258b..000000000
--- a/native/jni/src/gesture/impl/token_beam_impl.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.
- */
-
-#ifndef LATINIME_TOKEN_BEAM_IMPL_H
-#define LATINIME_TOKEN_BEAM_IMPL_H
-
-#include "defines.h"
-
-namespace latinime {
-
-class TokenBeamImpl {
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(TokenBeamImpl);
-};
-} // namespace latinime
-#endif // LATINIME_TOKEN_BEAM_IMPL_H
diff --git a/native/jni/src/gesture/impl/token_impl.cpp b/native/jni/src/gesture/impl/token_impl.cpp
deleted file mode 100644
index fa667f03a..000000000
--- a/native/jni/src/gesture/impl/token_impl.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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 "token_impl.h"
-
-namespace latinime {
-} // namespace latinime
diff --git a/native/jni/src/gesture/impl/token_impl.h b/native/jni/src/gesture/impl/token_impl.h
deleted file mode 100644
index 5f2368a93..000000000
--- a/native/jni/src/gesture/impl/token_impl.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.
- */
-
-#ifndef LATINIME_TOKEN_IMPL_H
-#define LATINIME_TOKEN_IMPL_H
-
-#include "defines.h"
-
-namespace latinime {
-
-struct TokenImpl {
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(TokenImpl);
-};
-} // namespace latinime
-#endif // LATINIME_TOKEN_IMPL_H