This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.media.api; | |
import java.nio.ByteBuffer; | |
import android.media.MediaCodec; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.util.Log; | |
import android.view.Surface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.media.api; | |
import java.nio.ByteBuffer; | |
import android.media.MediaCodec; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.util.Log; | |
import android.view.Surface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.AfterClass; | |
import org.junit.BeforeClass; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Suite; | |
import org.junit.runners.Suite.SuiteClasses; | |
@RunWith(Suite.class) | |
@SuiteClasses({Test1.class,Test2.class}) | |
public class ITTestSuite{ | |
private static final String IT_PERSISTANCE_UNIT = "it-persistence-unit"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> | |
<persistence-unit name="it-persistence-unit" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> | |
<!--provider>org.hibernate.ejb.HibernatePersistence</provider--> | |
<class>com.some.Entity</class> | |
<properties> | |
<!--property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /--> | |
<!--property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/Students_DB" /--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.AfterClass; | |
import org.junit.BeforeClass; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Suite; | |
import org.junit.runners.Suite.SuiteClasses; | |
@RunWith(Suite.class) | |
@SuiteClasses({Test1.class,Test2.class}) | |
public class ITTestSuite{ | |
private static final String IT_PERSISTANCE_UNIT = "it-persistence-unit"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> | |
<persistence-unit name="it-persistence-unit" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> | |
<!--provider>org.hibernate.ejb.HibernatePersistence</provider--> | |
<class>com.some.Entity</class> | |
<properties> | |
<!--property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /--> | |
<!--property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/Students_DB" /--> | |
<property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:testDB;create=true"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<persistence version=“1.0” xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> | |
<persistence-unit name="integration" transaction-type="RESOURCE_LOCAL"> | |
<class>com.some.Entity</class> | |
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |
<properties> | |
<property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:testDB;create=true"/> | |
<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/> | |
<property name="javax.persistence.jdbc.user" value="" /> | |
<property name="javax.persistence.jdbc.password" value="" /> | |
<!-- vendor specific parameters --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<persistence version=“1.0” xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> | |
<persistence-unit name="integration" transaction-type="RESOURCE_LOCAL"> | |
<class>com.abien.testing.oracle.entity.Prediction</class> | |
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |
<properties> | |
<property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:testDB;create=true"/> | |
<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/> | |
<property name="javax.persistence.jdbc.user" value="" /> | |
<property name="javax.persistence.jdbc.password" value="" /> | |
<!-- vendor specific parameters --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -D__STDC_CONSTANT_MACROS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" { | |
#include <libavutil/avutil.h> | |
#include <libavcodec/avcodec.h> | |
#include <libavformat/avformat.h> | |
#include <libswscale/swscale.h> | |
} |