sentence: luzon was split among hindu - buddhist kingdoms , muslim principalities , and ethnoreligious tribes , who had trading connections with borneo , malaya , java , indochina , india , okinawa , japan and china before the spanish established their rule .